Rendering slice 3: ghost five-rule predicate as ledger decisions#426
Merged
Juliusolsson05 merged 1 commit intoJul 6, 2026
Merged
Conversation
model/ghostPredicate.ts — the full predicate ported with every scar intact: superseded / orphaned-TTL (the only guard in the turn_completed→JSONL race window) / semantic-owned (rule 3 carries its death sentence: deleted at cutover together with SemanticStreamingTurn, plan D6) / strictly-newer-than-tail on producer clocks with null-not- zero (rule 4) / sidecar shape backstop with the 200-char empirical anchor and tool_use exemption (rule 5). The rules-4-AND-5 pairing is documented in-code with the tail-sidecar counterexample that overturned the single-rule design. __tests__/ghostPredicate.test.ts — the canonical 10-case matrix plus the failed-fix regressions (686b94e stale-orphan class), the boundary cases, the documented accepted trade-off as an explicit test, and evidence-on-every-rejection (#344). 29/29 pipeline tests green; tsc node+web 0 errors on full integration diff. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the ghost predicate with all five rules, the 10-case matrix, the failed-fix regression cases, and the documented trade-off as explicit tests. 29/29 green, tsc clean. Self-merging into integration per loop authorization.
🤖 Generated with Claude Code