Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

D-50 has no teeth on decision-only turns: any ISA write counts as "ISA updated", so a new Decisions row passes stale-isa, ISACloseGate and ISAFoldGate

Open rain77-work opened this issue 1 month ago • 1 comments

What happens

Algorithm v8.20.2 claim 14 and the D-50 rule quoted in ISAFoldGate.hook.ts say a fact that changes a claim goes into the claim, in the same turn. In long-running project ISAs the model often records such a fact as a ## Decisions row and leaves the claims as they were. None of the existing teeth catch it:

  • AlgorithmNudge.hook.ts (stale-isa row): isISAEdit is any Write, Edit or MultiEdit on an ISA path (7.40.4, around line 929), so appending one Decisions row resets toolCallsSinceISAEdit.
  • ISACloseGate.hook.ts: isaEditedThisTurn() passes the same way, and ISA_ADDRESSED_RE accepts "ISA updated".
  • ISAFoldGate.hook.ts: fires only on prod-mutating turns.
  • Claim 14 itself is marked SELF.

So the cheapest way to "update the ISA" (one appended row) satisfies every check, and the claims drift away from what the work has learned.

Evidence

One project ISA on 7.40.4, 2026-09-29 to 2026-10-25 (git history of that file): 422 commits, 232 of them added a Decisions row, 39 changed any claim line (checkmarks included). The ISA holds 22 dead-end rows and 1 Learning entry. The principal noticed the pattern twice.

Suggestion

A Stop-time check scoped to ISAs edited this turn:

  1. Rebuild the pre-turn ISA by reverse-applying this turn's Edit/MultiEdit inputs to the file on disk (a Write, replace_all, or an ambiguous reverse skips the file, fail-open).
  2. Diff by ## section. If Decisions/Learning gained top-level rows and no section other than Decisions, Learning, Verification, Log and Remaining Work changed, the turn is decision-only.
  3. Pass when the reply names a claim ID of that ISA, or plainly says the new rows change no claim. Block once per set of rows otherwise.

The exit should not be ISA_ADDRESSED_RE: "ISA updated" is exactly the reply this gap produces. For non-English replies we ask a small model one yes/no question ("does the reply say which claim the rows change, or that they change none?").

We run this as a local stopgap (about 200 lines plus 19 tests, a separate Stop hook next to StopGates). Glad to share the code or open a PR if that helps.

Environment: LifeOS 7.40.4, Algorithm v8.20.2.

rain77-work avatar Oct 26 '26 12:10 rain77-work

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks for the evidence; the commit-history counts made the point well. We're still not adding this gate. ISACloseGate was removed on purpose during the hook-minimization work, which retired every gate that holds a turn until the reply contains a typed line. This proposal would bring that back, plus a model call for non-English replies.

The check you want now runs at release time, against criterion lines. ReleaseRecord and the deploy command both refuse unless a criterion named with --isc was added, ticked or changed in the ISA over the range being released. A diff that only touches Decisions changes no criterion, so it can't release code. Within a turn, IsaCodeSyncGate checks the paths in tool calls and ignores the reply's wording, so writing that the ISA was updated doesn't clear it. Your local stopgap is fine to keep on your own install. Closing as by design.

danielmiessler avatar Oct 28 '26 17:10 danielmiessler