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:
gsxdsm
2026-05-23 03:09:00 -07:00
parent ba6b41f533
commit 2209c57dd6
14 changed files with 23 additions and 302 deletions

View File

@@ -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-"));