chore(engine): remove workflow-step mock routing + stale FN-5482 docs
Drops the "workflow-step" MockSessionPurpose enum value and the workflowStepId / workflowStepTemplateId plumbing through agent-runtime, agent-session-helpers, mock-provider, executor, and merger. The seeded-workflow-prompts script loses its FN-5205 rationale comment + test (no longer applicable now that workflow steps run through the regular session purposes). Also strips the stale FN-5482 architecture-invariant bullet from AGENTS.md and the corresponding audit-event line from docs/architecture.md (the self-healing reclaim invariant they described no longer holds). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { mkdtempSync, rmSync, readFileSync } from "node:fs";
|
||||
import { mkdtempSync, rmSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join, resolve } from "node:path";
|
||||
import { execFileSync, spawnSync } from "node:child_process";
|
||||
@@ -81,12 +81,6 @@ test("replaces seeded workflow prompts and remains idempotent", async () => {
|
||||
}
|
||||
});
|
||||
|
||||
test("pins FN-5205 test-mode rationale comment", () => {
|
||||
const source = readFileSync(scriptPath, "utf8");
|
||||
assert.match(source, /FN-5205/);
|
||||
assert.match(source, /Do not branch seeded prompt bodies\s*\n\/\/ on testMode\./);
|
||||
});
|
||||
|
||||
test("reports skipped when seeded rows are absent", () => {
|
||||
ensureCoreDist();
|
||||
const tempDir = mkdtempSync(join(tmpdir(), "fn4493-script-empty-"));
|
||||
|
||||
Reference in New Issue
Block a user