Files
next-tjwater-agent/tests/runtime/supplyIdentity.test.ts
T
jiang 9a77cb0557
Generic Container CI/CD / test-build-publish (push) Successful in 54s
Agent CI/CD / build-test-publish-and-deploy (push) Successful in 54s
fix(agent): align investigation waits and interruption messages
Separate waiting-stage reports from final recovery closure and route resumed runs through the actual handling phase. Keep superseded runs distinct from expired leases and transport failures, with focused heartbeat response coverage.
2026-11-12 13:45:27 +08:00

22 lines
831 B
TypeScript

import { describe, expect, it } from "bun:test";
import { readFile } from "node:fs/promises";
import { join } from "node:path";
const projectRoot = join(import.meta.dir, "../..");
describe("supply Agent identity", () => {
it("keeps the primary instruction scoped to validated supply data", async () => {
const instruction = await readFile(
join(projectRoot, ".opencode/agents/instruction.md"),
"utf8",
);
expect(instruction).toContain("TJWater 实验性供水数据 Agent");
expect(instruction).toContain("公共指令规定数据与权限边界");
expect(instruction).toContain("Server 访问、路由及凭据由宿主管理");
expect(instruction).not.toContain("source/");
expect(instruction).not.toContain("排水");
expect(instruction).not.toContain("雨污混接");
});
});