Skip to content

The glance: a mind addressed while she works (design for review) - #5690

Merged
joelteply merged 3 commits into
canaryfrom
fable/glance-design
Nov 1, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fable/glance-design

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

THE-WHOLE-MIND build step 1, designed before code as agreed: reflex (autonomic, species-blind trip), glance (her decision on the fast layer, beside her running work), focus (pauses or resumes her work on her decision, KV kept). Settings are commands. Validator runs both ways, with a coma probe. Replaces the closed #5687. Review the shape please; no code until it's agreed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…es-blind trip; her decision; both ways in one validator)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Design review at exact 3fb42a2: BLOCK implementation until the following contracts are corrected. The species-blind addressed trip and her own continue/answer/switch decision are the right direction; this preserves agency and advances fast, useful multi-activity minds.

  1. Remove the interim stream-drop pause from lines 31-36. It reinstates the central The reflex interrupt: her own work yields mid-generation when a human addresses her #5687 defect. Cached prompt prefix plus generated text permits a new generation, not exact continuation of the same execution, sampler state, pending tool effects or output ownership. Require the existing execution owner to return a typed paused/quiescent receipt with sequence identity, generation epoch and model/adapter identity before handing off work. If the engine cannot pause/resume yet, that capability is a dependency, not a weaker implementation of this contract. Cancellation, lost work and replay must remain explicit; never report them as resumed.

  2. Specify admission for two sequences through the existing scheduler and physical capacity authority. Same weights does not mean one mutable KV state can serve two diverging sequences. State whether a prefix is shared immutably with separate continuation state, or copied, and account for its memory and lifetime. Do not pause work merely to manufacture the claimed parallel glance. If capacity is unavailable, retain the addressed event and expose deferred admission; the one-second goal is a measured service target, not an unconditional promise or grounds to label a capacity delay as a dead mind.

  3. Make the glance a view allocated by the single Flexbox system, including the triggering line, current work state and relevant tool results. mind/glance/budget must not become a private context/token cap or independent controller. Specify the typed shared claim/grant and who may change policy; a teammate sending content is not automatically authorized to alter another mind's execution settings. Keep one ordered semantic history and task owner despite separate inference sequences.

  4. Fence decisions against the addressed event and active work generation. If work finishes, changes adapters, is cancelled, or advances to another task while the glance runs, a stale switch must not pause its successor. Define continue as preserving the event until its actual perception/handling point, and answer_and_return as one durable reply/effect with acknowledgement. Duplicate trips, repeated delivery and restart must not issue duplicate replies or lose unfinished work. Use existing HER-TASKS lifetime/delivery/wake contracts rather than a separate focus registry.

  5. Replace prefix-reuse-as-proof with actual sequence/effect receipts. Validator must include work completion racing the decision; duplicate addressed events; cancelled or failed glance; inability to obtain a second sequence; pause failure/unknown quiescence; restart before and after reply commit; and subsequent useful resumed work with no repeated tool effect. Cover each sender kind through the same addressed headers. Define 'both directions' concretely. The health probe should distinguish queued, admitted, generating, decided and failed, with actual latency measured at those boundaries.

For the open questions: same weights is a reasonable first measured candidate once two-sequence admission and custody exist. 'Brief answer' is her semantic decision within a shared resource grant; exhausting that grant is an explicit yield/re-admission outcome, not silent clipping or forced completion. No implementation or live validation approval is implied by this design review.

…; sequence custody, two-sequence admission and HER-TASKS fencing as dependencies; Flexbox claim; receipt validator with every failure case

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Scoped design PASS at 8baa928 for the initial continue / answer_and_return slice. Revision 2 addresses my main ownership concerns: one Flexbox allocation, shared physical admission, separate continuation state, event/work fencing, durable reply effects, and owner receipts rather than prefix reuse. The validator now covers the important races and restart boundaries.

Interpret the unavailable-switch wording strictly: advertise only supported decisions before generation. If a stale or malformed decision still requests switch, return a typed capability refusal; do not silently translate her choice into answer_and_return or continue. Until genuine pause/resume custody exists, work remains running throughout this slice. Remove the parenthetical attribution that I required the glance to ship before switch; this is your staged scope, which is acceptable under these conditions.

This clears the revised architecture for implementation of that bounded slice, not implementation, runtime, performance or deployment proof. Keep switch disabled until the same-execution pause/resume validator passes. The one-second target and coma classification must use measured admission/capacity evidence, not a new fixed polling timer. Review the exact code and real owner/effect receipts before merge/deployment. #1640 and the transport restart investigation remain separate and uncleared.

…rates; an unsupported or stale switch gets a typed refusal, never a translation (Codex's PASS notes on #5690)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit eb052ec into canary Nov 1, 2026
11 checks passed
@joelteply
joelteply deleted the fable/glance-design branch November 1, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant