完善 readiness、发布追溯与敏感治理(07-15-production-trust-closeout-cleanup)
这个提交包含在:
@@ -0,0 +1,27 @@
|
||||
const path = require("node:path");
|
||||
const { pathToFileURL } = require("node:url");
|
||||
|
||||
let governance;
|
||||
|
||||
describe("Trellis context manifest governance", () => {
|
||||
beforeAll(async () => {
|
||||
const scriptPath = path.resolve(__dirname, "../../../../scripts/qa/check-trellis-governance.mjs");
|
||||
governance = await import(pathToFileURL(scriptPath).href);
|
||||
});
|
||||
|
||||
it("does not require sub-agent manifests in Codex inline mode", () => {
|
||||
expect(governance.contextManifestPolicy("inline")).toEqual({
|
||||
required: false,
|
||||
requireRealEntries: false,
|
||||
rejectSeedRows: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps strict manifest validation for sub-agent dispatch", () => {
|
||||
expect(governance.contextManifestPolicy("sub-agent")).toEqual({
|
||||
required: true,
|
||||
requireRealEntries: true,
|
||||
rejectSeedRows: true,
|
||||
});
|
||||
});
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户