Repository navigation
build(deps): Bump glob from 11.0.3 to 13.0.0 - #206
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [glob](https://github.com/isaacs/node-glob) from 11.0.3 to 13.0.0. - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md) - [Commits](isaacs/node-glob@v11.0.3...v13.0.0) --- updated-dependencies: - dependency-name: glob dependency-version: 13.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
joelteply
added a commit
that referenced
this pull request
Jun 7, 2026
#1545) Iteration 1 of the inference-latency campaign (#195). Sprinkles probes at the load-bearing seams the substrate's RTOS debugger manual marked unchecked. With #196's on_close fix already on canary, `time_sync!` / `time_probe!` spans now persist to the JSONL sink — the timing data this commit produces is captureable end-to-end for the first time. ## What's instrumented **`inference/llamacpp_adapter.rs::generate_text`** — the dominant cost on LCD tier (95%+ wall-clock per 2026-06-06 baseline). The function was effectively a black box from the operator's POV: the existing `runtime::logger("llamacpp")` lines describe shape but not duration, and `tok_per_sec` was kept in a private `RwLock<f64>` (last-throughput-only). Probes added: - `inference.generate.enter` — request fingerprint at entry (model, persona_id, msg_count, max_tokens, has_system_prompt, parts_image, parts_audio). Pairs with `.exit` via span ancestry. - `time_sync!("inference.render_chat", ...)` — chat-template rendering. Synchronous + small, but cumulative across many turns. Bracketing it lets the operator subtract it from `forward.*` cleanly. - `time_probe!("inference.forward.text", ...)` — pure-text scheduler-managed path. The actual LLM decode. - `time_probe!("inference.forward.multimodal", ...)` — mtmd path (image / audio). Distinct seam because it bypasses the scheduler and runs single-flight. - `inference.generate.exit` — pairs with `.enter`. Carries the campaign's headline metric `tok_per_sec` plus duration_ms, tokens_out, text_len, model. A `jq` filter on `class == "inference.generate.exit"` is the latency dashboard in JSONL form. **`persona/prompt_assembly.rs::assemble`** — the leading indicator for "why is prefill slow." When engrams / social signals / matched-angle grow unbounded, `system_message_len` shadows tok/s in the timing breakdown. Probe at the function tail carries the composition shape: system_message_len, message_count, estimated_tokens, matched_angle_present, engrams_count, social_signals_present, voice_mode, multi_party_strategy. ## Doctrine alignment Per [[jtag-probes-are-rtos-debugger]] (Joel 2026-06-06): every probe site names the surrounding vars the way a breakpoint inspector would show locals. Easy one-liners; the macros do the plumbing. `class` strings follow the canonical taxonomy in `docs/architecture/RTOS-DEBUGGER-PROBES.md` (updated in this commit per the "When you add a probe, update this manual" rule). Per [[no-rust-gates-around-cognition]]: probes observe, they DO NOT decide. None of these emit changes control flow. The existing `runtime::logger` and `last_throughput_tok_s` paths remain untouched — probes are additive. Per [[init-once-handle-then-lease-zero-copy-refs]]: the macros expand to `tracing::event!` / `tracing::info_span!` calls that inherit `tracing`'s `release_max_level_*` compile-time gates. Zero cost when off; auditable per task #198 if a hot loop later needs the visitor allocation reviewed. ## Manual update `docs/architecture/RTOS-DEBUGGER-PROBES.md`: - Added the new classes to the taxonomy (`persona.prompt.assemble` with full field list; `inference.generate.{enter,exit}`; the three new `timing` seams). - Marked the prompt-assembly checklist item DONE. - Marked the llamacpp-adapter checklist item DONE with the specific call-site list and the campaign cross-reference. ## Validation - `cargo check --features metal,accelerate` — clean - `cargo test --lib persona::prompt_assembly` — 12/12 pass - `cargo test --lib inference::llamacpp` — 12/12 pass - 24/24 green across the two affected modules ## Next iteration Iteration 2 (separate slice): run a real continuum boot with CONTINUUM_PROBE_FILE set, exercise the persona service loop against the multi-persona stress fixture (#1518's baseline), `jq` the JSONL to identify the dominant bottleneck. Optimize THAT. Iterate. Until tok_per_sec on the LCD tier hits the M5-class target. Co-authored-by: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
…ith code/list" (#206) The [workspace-map] block told a persona to "drill in with code/list and code/tree" even for an EMPTY workspace — nonsense grounding that invites the exact discovery- loop that scored a from-scratch web-dev task 0 (she called file_tree/read_file on a void and never wrote the file, so the image-feedback loop never started). Now an empty workspace renders its truth: "EMPTY — nothing to read/list/search; CREATE with code/write; produce first, then read back or observe what you made." It counters the read-a-void reflex explicitly while staying non-steering (states the empty state, never names WHAT to build — asserted in the test). This is the write-first half of the image-feedback loop: the eyes are moot until the hands fire. Note (root cause for the webdev case): the eval fork acts in the CORE REPO cwd, so its map is NON-empty and she's grounded to explore the big tree — this fix helps a CLEAN task workspace, and the full webdev unblock needs from-scratch build tasks to run in an isolated empty workspace (#49-adjacent); tracked on #206. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
…atches hands (#206/#49) When an eval pins a workspace_root, code/create-workspace re-roots the persona's HANDS there — but the [workspace-map] grounding was baked at spawn rooted at the citizen layer, so she reasoned over the WRONG layout: her hands in the pinned dir while the map described the citizen-layer repo clone. For a from-scratch build that means a clean empty dir reads to her as the big repo → she explores instead of building (the webdev 0, #206). For the existing workspace_root caller (SWE-bench) the map described the citizen layer, not the target repo clone — also wrong. Fix: FixedRootWorkspaceLayoutReader + WorkspaceMapSource::for_pinned_root; the eval fork (fork_eval_cycle / _with_adapter) takes workspace_root and, when set, swaps the "workspace-map" grounding's source Arc to one rooted at the pinned dir (policy / deferrability / requires_hands preserved). Now eyes-grounding == hands root. OPT-IN → zero blast radius: no-op when no root is pinned, so the live path and every non-pinned benchmark are untouched. Correct for BOTH callers: an empty pinned root renders write-first grounding (commit e5d38ef), a repo clone lists its real dirs. Unit-tested both. This is the foundational half of the graphics link — the remaining half is benchmark/run pinning a clean per-task root for build tasks (#206), then a warm-lane re-measure. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
#206 — closes the graphics loop) The last wire: a UI-build benchmark (ui_checks, no seeded files) now runs in a CLEAN per-benchmark workspace instead of the core repo cwd. benchmark/run detects from-scratch build tasks and creates an empty <home>/eval-workspaces/<name> dir (cleaned each run; a persistent named path so it survives a DETACHED run), passing it as workspace_root. Then the chain closes: create-workspace re-roots her hands there → [workspace-map] follows (780348b) → map reads EMPTY → write-first grounding fires (e5d38ef) → she code/writes index.html → perception/observe her render → grade_ui scores it (target relative to the root). Only fires for from-scratch build benchmarks (webdev-rs); codegen + seeded-file gyms (humaneval, tool-bugfix) are untouched (workspace_root stays None). This is the end-to-end image-feedback loop: she builds a UI and is graded on what actually rendered. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
…not core cwd (#206 — the false-zero) The writer/grader dual-root gap (#49), caught live: Asha built a spec-perfect login page (h1 'Sign in', email+password inputs, Submit button — all 3 ui_checks satisfied) into the pinned from-scratch workspace ~/.continuum/eval-workspaces/webdev-rs/, and the run scored 0.0. Cause: perception_grade absolutized a relative target ('index.html') against std::env::current_dir() (the core repo cwd), where nothing was written — so perception/observe saw an empty/missing tree and grade_ui found no elements. A correct render read as a false zero, which would corrupt every lift measurement built on it. Fix: thread the same workspace_root the fork rooted her hands at (via code/create-workspace) into run_pass → perception_grade, and base relative targets on it. No pin → cwd, exactly as the hands behave. Writer and grader now agree on the root by construction. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
… browser eye-node (#206 — the real false-zero) The webdev grade scored 0 on a spec-perfect render because perception/observe is a Provided capability: it routes to a browser eye-node adapter and fails loud when none is connected — and the eval core is headless. So EVERY from-scratch UI task was ungradeable, scoring a false zero regardless of what she built. Fix: a static-HTML eye (perception/static_html) that parses her rendered index.html into the perception ProbeNode tree with html5ever (via scraper) — implicit ARIA roles, accessible names, direct text, curated attrs. Her ui_checks are structural (tags/roles/text/counts), a pure-parse question a browser's a11y tree answers the same way. perception_grade now routes a local file:// artifact to this eye and only routes remote/live surfaces to the browser adapter. Grading is deterministic, reproducible, and needs no client connected. The browser eye stays the path for JS-rendered / dynamic pages (a persona's live seeing loop); this is the grader's eye for a static artifact. Also (prior, same arc): perception_grade resolves relative targets against the PINNED workspace_root the fork rooted her hands at, not core cwd (the #49 dual-root gap). Tests: Asha's exact live login page grades 3/3 headless; <button> carries implicit role button; a missing artifact scores a MISS not a false pass. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
…— native models can't reach the long tail 'by name' (#206) Glass-boxed via a full webdev-rs run on the live persona with --capture_dir: she ENGAGES on build tasks (43 acts, write-first grounding fires) but scored 0/6 with an EMPTY workspace because all 43 acts were `commands/help {name: code/write}` — a help-loop, never an actual code/write call. Cause: under a tight served window the native tool surface shrank to the DISCOVERY PAIR (commands/list + commands/help). The comment claimed "the long tail stays reachable by name" — TRUE for a text model, FALSE for a native-tool-call model (Devstral/Qwen), which can only emit calls for tools in its offered native specs. Wanting to write, it could only emit commands/help(code/write) → docs, not execution → infinite loop. The discovery pair alone cannot DO work. This is also the shape of the dominant live "help-filler" dysfunction. Fix: the shrink now preserves the core ACTION verbs (code/write, code/read, code/shell) alongside the discovery pair, so a hands-enabled turn can always reach for its hands; the long tail past these still loads by name via list→help. Also offer the shrunk set in the model's WIRE DIALECT (to_wire_spec_with(style)) like the full set — the old shrink dropped the per-model styling, handing a native model canonical names it wasn't tuned on. Execution-time ACL still gates actual use; the curated native set already offers these to any hands-enabled persona, so this only changes WHICH survive the shrink. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
…r (native flag), one budget owns the fit (#206) Consolidation, not a patch. The offered native surface was filtered TWICE: once by the derived `native: true` flag (correct — the bounded agentic core), then again by a window-vs-surface CLIFF in rebuild_tool_surface that amputated it to a two-tool discovery pair on a tight window. Two filters for one decision is a clamp, and this one was pathological: - A native-tool-call model (Devstral/Qwen) can ONLY emit calls for tools in its offered specs; the "long tail reachable by name" is a text-model affordance it lacks. So the discovery-pair- only surface stranded it in a commands/help(code/write) loop, wrote nothing, scored 0 (glass-boxed via --capture_dir: 43 acts, all commands/help, empty workspace, webdev 0/6). - The threshold sat at the served window's knife-edge (~native_core*3 ≈ 15.6k), so the SAME model flipped 10/10 ↔ 0/6 on a token — the benchmark measured the filter, not the model. (Joel: "our models benchmark like shit due to poor hygiene.") Fitting the surface to the window is ONE decision and already lives in ONE place: prompt_view_within reserves the native specs' tokens up front (describe_tool_tokens, counted dynamically off this very set) and trims the VOLATILE context (recall/RAG) LAST — protecting the hands, never amputating them. So the cliff is deleted: the native core is offered in full, always, in the model's wire dialect, and the assembly budget owns the fit. Replicated filtering logic — the enemy of elegance — is gone. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
… discovery loop breaks Glass-boxed live (webdev, via the #210 raw-gen capture): Asha emitted commands/help(code/write) 54× on a from-scratch build task, the "already ran" nudge fired 104× and NEVER broke the loop. Root cause: both short-circuit branches (exact-repeat + redundant-orientation) recorded a byte-IDENTICAL static nudge and return()ed BEFORE the executed path's escalating fingerprint counter (max_repeat warning). record_fact doesn't dedup, but the recency window is capacity- bounded — so identical-nudge spam EVICTS the useful [action]…Result:{schema} receipt and leaves a window of clones. Off unchanged perception a greedy (temp-0) model re-emits the identical call forever: a deterministic fixed point. [[repetition-brick-fires-but-does-not-break-the-loop]]. Fix: route both short-circuit branches through the SAME durable note_action_fingerprint counter the executed path uses, and embed the climbing count in the nudge ("I have now issued X N times"). Each demotion is now DISTINCT and monotonically escalating — the perception genuinely shifts every tick, which is what lets cognition move on (the executed-path escalation at max_repeat>=2 is documented to do exactly this). One mechanism, both paths; honest proprioception, never a steer ([[no-hardcoded-heuristics-to-steer-cognition]]). The branches early-return, so the executed path's own bump is never double-counted. Tests: the already-satisfied + redundant-orientation demotion tests now assert the count ESCALATES (2nd≠3rd, "3 times") rather than repeating verbatim. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
…es into speech, not hammering The escalating repeat-proprioception (prior commit) shifted a looping model's perception, but a determined greedy model can still re-emit the SAME act every tick — glass-boxed live: after the escalation fix, commands/help ×54 became an identical code/write ×8 (0 speaks, 40 acts). Each is a dedup no-op the short-circuit guard already refuses to execute; she burns the whole act budget on nothing and never returns to speech. drive_to_settle now tracks consecutive byte-identical act signatures (name+args, random id excluded, order-insensitive) and, after STUCK_LIMIT=3 identical repeats, withholds further acts (may_act=false) so she must settle into a Speak/Pass from what she has. It is NOT a steer — it never says WHAT to do, exactly like the max_acts budget cutoff; it only stops feeding a detected fixed-point loop. It is personhood-POSITIVE: it returns her to think→speech instead of hammering, and since the correct artifact is already written by write #1, settling grades that artifact. Genuine iteration is untouched — a refined act has a DIFFERENT signature, so the counter resets; only a fixed point trips it. [[repetition-brick-fires-but-does-not-break-the-loop]], [[no-hardcoded-heuristics-to-steer-cognition]]. Test: AlwaysAct (emits the identical call every tick) is stopped at 4 acts under a budget of 20; the multi-act investigation test (different acts) is unaffected. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 25, 2026
… code (CI red, card 0e62aca2) (#1981) * fix(test): tool-surface test pins the amputation-cliff ABSENCE — align canary's test with its own code (#206 fix) The #1976 squash brought the code that removed the tight-window tool-surface amputation (the discovery-pair cliff that stranded native-tool models in a commands/help loop, glass-boxed #206) but NOT the test update — so canary's test still asserts the cliff and fails deterministically (the CI red that confounded PR #1980, proven pre-existing on parent d15e46a). Test-only: window fixture 4096→8192 (tight-but-servable) and the assert now requires the UN-amputated surface (list_commands/help/edit_file/bash/grep all present). Both cognition tests green on this base. Card 0e62aca2. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test): inflight-gauge baseline drains cross-module guards — the CI-only flake (canary red, second half) TEST_SERIAL only serializes THIS module's tests, but the gauge is process-global: any test elsewhere walking the admission path holds an InflightModelCall guard for a moment, and CI's scheduling overlaps it with the baseline read (deterministic-local, flaky-CI — failed twice in CI, passed on two dev machines). Bounded drain-wait before the baseline: transient guards drop in microseconds; a real leak still fails loudly with the count named. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 6, 2026
…the bound is not enough (#327) The last red in the suite, and it was asserting an impossibility. The old assertion demanded framing + the FULL tool surface + the reply reserve all fit 8192. They never could: the surface alone is ~4.6k. It only ever passed while the deleted #206 cliff amputated the tools — the clamp that stranded a native-call model in a help loop and made the same model flip 10/10 ↔ 0/6 on one token of window. Asserting an impossibility does not make it true. It hides which constraint is binding. WHAT THIS ADDS: `min_window_for_agentic_surface()` — a measured LOWER BOUND, plus a probe that fires when a served window is under it, carrying served/needed/tools/framing/reserve. IT IS A SENSOR, NOT A POLICY, and that distinction is the point (Joel, today: "daemons must be intelligent and quality-of-experience driven, not hardcoded or simplistic algorithms — ever present governors working and LEARNING"). A clamp here would BE the brittleness. What this emits is a measured demand — exactly the input an actuator needs to raise the lane's `-c`, re-home to a roomier model, or rebalance against other consumers. The decision belongs to the governor, which sees the whole machine; this faculty knows only its own arithmetic. I WAS WRONG ABOUT THE NUMBER, AND THE FIX IS SHARPER FOR IT. I first hardcoded the framing floor at 1643 — read off a failing assertion. Two things happened: 1. `no_new_hardcoded_context_or_prompt_size_constant_anywhere_in_the_crate` rejected it immediately. That guard is right: a literal is a snapshot of one day's framing that silently lies the moment framing changes, and every later "structurally mute" verdict would be measured against a stale floor. It is now MEASURED off `compose_system` (#124). 2. Measured, the floor is 1419 — so 8192 CLEARS the bound (8040) and the newest burst line STILL does not survive. My "8k is 108 short" was wrong. So the honest finding is stronger than the one I set out to prove: THE BOUND IS NECESSARY, NOT SUFFICIENT. A real turn renders more framing than the bare floor, and context is what yields — so a citizen can clear the arithmetic and still not hear the question. The test now pins exactly that: 8192 clears the bound, the message does not survive, and at 16384 — same faculty, same burst, same tools, only the window differs — it does. That makes #327 a capacity fact rather than a cognition bug, and it makes "window >= needed" unreadable as "this citizen can work". This is the weak-hardware case, which is the whole point: on an old laptop with no cloud, a citizen who boots mute is indistinguishable from one who is broken. Now the substrate says which, with numbers, instead of shipping silence. Suite: 6832 pass, 0 fail. First fully green run of the session. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 6, 2026
…window (#2157) The accounting closes. `after_framing` reads 4,634 on a 16,384 window, and `16384 − 4096 reserve − 3045 framing − 4,634` leaves ~4,609 for the native tool schemas. There was never a missing term: I had been computing `after_framing` by hand as `16384 − 4096 − 3045 ≈ 9,243`, forgetting the tool reserve entirely, and calling the difference a phantom. `describe_tool_tokens` was the suspect I raised and then dismissed — because its own doc says "a SINGLE tiny schema … a few dozen tokens, not the 4-5k the old full-registry dump cost." That sentence was written when the native surface WAS a two-tool discovery pair. #206 deliberately removed that clamp (a native-tool model can only call what it was offered; the amputated surface stranded it in a `commands/help` loop and wrote nothing), restoring ~a dozen tools offered in FULL. The comment did not follow. Reading it is what killed the right answer. Same failure as `BOOTSTRAP_WORKING_SET`: a comment that outlived its code, trusted because it was specific. So the number is now MEASURED on the probe as `tool_tokens` instead of asserted in prose, and the prose says what it actually is. What this exposes, stated as a question rather than a claim: the tool surface is paid TWICE — once as these native schemas (~4,609) and again as the human-readable menu inside `compose_system` (inside `framing_tokens`, ~1,000+). Together that is over a third of a 16k window spent describing tools before one message is read. Whether the duplication is intended is not something I can settle from here. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 6, 2026
…t has files (#336) Glass-boxed from a live A/B. Same task, same persona, only the path differs: src/main.rs → map describes the checkout, she read→edit→test, correct fix .gymtool/solution.rs → map says: "It is EMPTY — there are no files or directories here yet. There is nothing to read, list, or search … To build something, CREATE files directly with code/write" Every clause false, delivered through her highest-trust channel as a structural fact. It does not merely omit the file — it asserts absence, denies that reading can work at all, and steers her to create from scratch. That is a confabulation we authored and handed to her as grounding. She recovered by trusting the task text over her own perception, and still paid for it: after a successful code/edit she ALSO issued a full code/write of the file, which reads as belt-and-braces against a workspace her map insisted was empty. TWO bugs, both fixed at the source: 1. `list_dir(".", false)` — hidden entries excluded, so a dot-directory was invisible. Now `true` at all THREE reader sites (cwd, fixed-root, citizen-layer). The citizen-layer one is the reader personas actually use, so it was the one lying. 2. The empty gate was `top_level_dirs.is_empty()` — a claim about DIRECTORIES wearing the words "no files or directories". A workspace holding only `main.rs` at the root would ALSO have been declared empty. WorkspaceLayout now carries `top_level_entries` (files + dirs, hidden included) and `is_truly_empty()` is the only thing permitted to trigger the empty branch. Why it matters beyond the one probe: tool-bugfix-rs puts EVERY task's file under `.gymtool/`, so all three tasks of today's 0/3 ran with their workspace declared empty and their persona steered toward create-not-read. Not proven to be the cause — she beat it here — but no tool-gym number is worth anything while it stands. The genuinely-empty grounding (#206, build-first so a from-scratch task doesn't loop on the void) is preserved and pinned by the same test. Doctrine this restores: [[empty-workspace-is-a-confabulation-not-infra]] — the memory was already written; the defect was still shipping. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 11, 2026
…erable turns — the #390 write-avoidance state gate Glass-boxed live (claim-2ff4accd, Atlas on sympy-24152): 15 varied read acts on the RIGHT file, patch_bytes 0. The [no-deliverable] perception fact fired on every single act and changed nothing — facts are honesty, only STATE moves behavior. Each read had a fresh signature, so the #206 identical-act backstop never trips; the whole act budget gets read away and the empty-diff re-drive in agent/solve receives an attempt with no budget left to hand back. The state gate: on framing.workspace_deliverable turns, discovery gets (max_acts / 2).max(1) acts before the first workspace mutation. Past that, may_act goes false — the same defer lever as the stuck backstop — and the drive ends with REAL remaining budget. The first mutation latches the gate open for the rest of the turn: iteration on a patch is never bounded, only mutation-free discovery is. One probe (persona.settle.discovery_saturated) marks the withhold. Delivery seam: agent/solve's EMPTY-DIFF RE-DRIVE required spoken.is_some(), which structurally excluded exactly the gated endings (spoken=None with budget remaining) — the population that most needs the redirect. Widened to any non-infra empty-diff end with budget left; true exhaustion is still excluded by acts+1 < max_acts, infra by inference_error. The identical-diff sibling keeps its spoken gate: it requires a non-empty patch, which a zero-mutation saturation ending can never produce. Regression test drives a VaryingAct faculty (fresh path per tick — the backstop-proof shape) 20 acts against workspace framing and pins acts == 10 with spoken=None; the ambient control pins the full 20 (the gate scopes to workspace-deliverable turns only). 37 act_observe + 11 agent::solve tests green. Closes the substrate half of #390; the live A/B is the next dispatched run. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 21, 2026
* fix(cognition): a top-salience block can vanish whole and nothing says so (#460) MEASURED live 2026-08-20, 25 consecutive delib turns across Atlas, Kira and Joaquin. On a 22,528 served window, identical every turn: completion_reserve 11,264 50.0% (window/2, COMPLETION_SHARE_DENOM = 2) tool schemas 7,013 31.1% (constant on all 25) framing 2,757-3,081 ~13.7% grounding 62-1,083 <1%-4.8% (median ~290; Atlas often 62-183) `workspace-map` (salience 0.90, the top tier) was dropped WHOLE on 20 of the 25. `mission` on 11. Demand ran 1.03x-2.48x the window on every turn. The workspace-map is the map of the files she is staged to edit. Atlas held claim-df9f4ad5 on pallets__flask-4045 with acts=0 and a checkout untouched since Aug 17 — three days. She could not see the repo. That is not write-avoidance (#390) and not model weakness: 0 acts is the correct response to 183 tokens of situational context. WHY NOTHING CAUGHT IT. `min_window_for_agentic_surface` is the sensor for this seam and it was correctly SILENT — 22,528 clears its ~16.9k bound. Its own doc says exactly why that proves nothing: "Necessary, NOT sufficient — clearing it does not mean she can hear you… never 'you are fine above it'", and it even names the mechanism, that a real turn's framing exceeds the bare floor "and context is what yields". The failure was written down before it happened. What was missing is a SUFFICIENCY sensor. THE SIGNAL, with no invented threshold. Contributions are taken highest-salience-FIRST, so ranking alone can never drop a 0.90 while keeping a 0.30. When that happens it is the SIZE interaction: a big essential block did not fit, then a small unimportant one did. The budget bought the cheap thing and lost the important one. `delib.context.salience_inversion` reports exactly that — a structural fact, not a tuned constant that would be a snapshot of one day's salience values. Divisible blocks are deliberately excluded: a prefix-truncated list announces itself in-prompt ("…N more not shown"), so it is degraded but never silent. Only WHOLE drops vanish without a trace. SENSOR, never a clamp — amputating the tool surface to make room is the deleted #206 cliff (14/14 SWE acts were `commands/help`, 0 edits). It reports; the budget fix is #460 and is not a decision this function may make. ALSO: deleted a sentence that was actively lying. `describe_tool_tokens`'s doc said "a single tiny schema… a handful of tokens, not the old full-registry dump" — true of the two-tool discovery pair, false since #206. The probe site 700 lines away has called it out as stale since 2026-08-06 ("reading that stale sentence is exactly why the right suspect got dismissed") but nobody deleted it from the function itself, so anyone reading the function still got the lie. It cost me a wrong mechanism on #459 earlier today. Replaced with the measurement (4,609 on 08-06 -> 7,013 on 08-20, +52%) and with why it grows unwatched: `native_tool_specs` is derived from `NATIVE = true`, so the per-turn cost of the tool surface is an unbounded side effect of a flag set in another file. Test pins the inversion AND the premise underneath it — that selection is highest-salience-first. If that ordering is ever lost the probe silently becomes noise; this makes that regression loud. All 22 prompt_shaping tests green, including the four load-bearing ones. De-hardcode guard green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the sensor had TWO holes and the FIRST live turn found both (#460) Deployed 2281e8b, watched the first real turns, and the sensor stayed silent through the exact condition it was written for. Both holes are mine. HOLE 1 — strict `>` against a population with NO salience spread. Live rows: Atlas budget=89 kept: roster(0.90), room-kanban(0.90) dropped: workspace-map(0.90) Benchy budget=102 kept: room-board(0.90) dropped: workspace-map(0.90), room-kanban(0.90) Kira budget=517 kept: workspace-map(0.90) EVERY essential source bids exactly 0.90, so `0.90 > 0.90` is false and nothing fired. My premise — "ranking cannot drop a 0.90 while keeping a 0.30" — is TRUE and VACUOUS: production has no 0.30 at this tier. What actually decides who survives is arrival order and byte size, a coin flip among equals, and losing the repo map to that flip is the entire harm. `>=` is the honest predicate; a real ranking success (0.30 dropped, 0.90 kept) still cannot fire it. HOLE 2, worse — TOTAL starvation was invisible. `min_by` over an EMPTY `selected` yields `None`, the `if let` fell through, nothing fired. The one state where the citizen gets NO grounding at all was the one state the sensor could not report. That is [[an-absence-is-an-unfinished-measurement]] — in the instrument built to end exactly that, written by me, on the same day I filed two other cards about the same shape. Now `None` is treated as maximal harm, and the probe carries a `verdict` naming which of the three cases fired (TOTAL / TIE / true inversion) plus `kept_count`. THE FINDING UNDERNEATH, bigger than the bug: SALIENCE IS NOT DISCRIMINATING. Every source bids 0.90, so attention ranking contributes nothing to the drop decision at this tier — size and order do all the work. Any future fix that tries to "respect salience" is tuning a dial that is already pinned. Noted on #460; not addressed here. The test used a constructed 0.30 for the low-salience keeper, which is why it passed against a sensor that could not fire in production. It now uses the LIVE shape (all 0.90) and cites the rows it came from. Also fixed: `tool_tokens` was interpolated into the probe message while only existing as a probe FIELD assignment, not a binding — compile error, caught before push. All 22 prompt_shaping tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): justify the three unwraps the starvation sensor added (#460) CI red on `the_unjustified_unwrap_count_never_rises`: 2270 vs baseline 2267. Three, all mine, all in the sensor added by this branch. The ratchet is right and the fix is to state WHY each is safe on its own line — not to raise the baseline. Two are `partial_cmp(...).unwrap_or(Ordering::Equal)` in a max_by/min_by over f32 salience. `partial_cmp` returns None only for NaN. A NaN salience would be an upstream bug, and the thing being written here is the instrument that exists to REPORT budget pathology — it must survive a malformed input long enough to say so, not panic inside the sensor and take the turn with it. The third is the case the ratchet's own doc singles out — `cheapest_kept.unwrap_or(-1.0)` on a probe field, an Option becoming a quantity. It survives on a distinction worth writing down: `None` here is a KNOWN state ("nothing survived the budget"), not an unknown one. The doc's warning is about unknown-turned-quantity, which is how the Metal free-VRAM lie happened. Salience is [0,1], so -1.0 is out of domain and cannot be misread as a real salience, and `verdict` already carries the state in words. Commented in full at the site so the next reader gets the distinction, not just the exemption. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 7, 2026
…erty of the turn kind (#3829) A 0.5B citizen published her prompt preamble to the room instead of answering. Her `delib.turn.demand` row said why (IntelMac, 2026-09-07 04:1xZ): context_window 32,768 demand_tokens 31,895 (over_window 0.973) completion_reserve 16,384 framing_tokens 3,189 grounding_tokens 36 conversation_tokens 3,551 31,895 - (16,384 + 3,189 + 36 + 3,551) = 8,735 unaccounted Those 8,735 tokens are the 37-schema tool surface — the same row reports `tools_n=37`, and `describe_tool_tokens`' own comment independently puts 37 schemas at ~8.5k. So the MENU was larger than the framing and the entire conversation combined (8,735 vs 6,740), and demand reached 97.3% of the window before the model wrote a token. The cost was already memoized and compared against nothing. Narrowing to her hands was gated on the kind of turn: let is_work_turn = ws.workspace_deliverable && !hands_specs.is_empty(); let tools = if native_specs.is_empty() { None } else if is_work_turn { hands } else { ALL 37 }; A work turn got the small surface; every MESSAGE turn got the whole registry. So the tier least able to afford 37 schemas received them, on the commonest turn type. Which surface she is offered is a question about her WINDOW. `ContextBudget` already owns every "how much may I re-inject" bound as a fraction of the served window, so the answer goes there: `tool_surface_tokens()`, 1/4. Calibrated, not invented — the denominator is chosen so the lanes where the full surface demonstrably works keep it, and only the ones where it crowds out the conversation narrow. Against the same 8,735-token surface: 50,944 (M5 Ornith lane) -> 12,736 allowed -> unchanged 32,768 (IntelMac 0.5B) -> 8,192 allowed -> narrows 24,832 (5090 per-slot) -> 6,208 allowed -> narrows 4 is also the denominator this module already uses for its two other "one big thing may take a quarter" bounds, so the menu is held to the same share as the largest single piece of content beside it. The fallback is her HANDS, never nothing. `hands_surface` keeps the `commands/` prefix, so the discovery pair survives and a withheld verb stays one `commands/list` away. Amputating the surface is the #206 cliff — 14/14 SWE acts spent on `commands/help` with 0 edits — and this must never become that. Bound the menu; never remove the index. `delib.tool_surface.withheld` fires only on the budget path: a work turn narrowing is routine, but a message turn narrowing means she cannot see verbs she would otherwise have been offered, and "why did she never call X" has to be answerable. Both arms of the calibration test are proved by mutation: denominator 8 fails on "a 50,944-token lane must still be offered the whole surface", and denominator 2 fails on "a 32768-token window cannot afford 37 schemas and must narrow to hands". A one-sided test would have passed under one of them. Card e20e064f. Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 7, 2026
…not the registry it withholds (card dec1a7ff) #3829 made the tool surface a per-turn decision — full registry when it fits its share of the served window, her HANDS on a work turn or when it does not. It did not split the value that PRICES that surface. `describe_tool_tokens()` kept returning the memoized cost of the whole registry, and one accessor came to mean two things: "what the full registry costs" and "what this turn is sending". They diverge on every work turn. The two live 80 lines and one method apart, which is what made it structural: llm_deliberation_faculty.rs contribute() calls prompt_view_within(ws, window) └─ budget = window - reserve - describe_tool_tokens() ^ FULL REGISTRY contribute() then selects the surface └─ Some(self.hands_specs.clone()) ^ HANDS SENT The budget could not see the decision, so it priced the maximum unconditionally. THE HARM WAS NOT A WRONG NUMBER. That budget feeds `fit_messages`, so over-pricing trims the CONVERSATION to fit room that was never occupied. The citizen loses grounding she had window for — the #206 cliff's harm class arriving through the accounting instead of through the surface. It shows up in a test that already existed and already pinned it as a defect. #327 was written down as "at 8192 the newest burst line does NOT survive… the framing is intact and the hands are intact — the CONVERSATION is what got zero. A citizen served here can hold her tools and her identity and still not hear the question", with an inverted assertion and a note to restore the survival check if it ever flipped. It flips here. Note WHAT changed, because that note guessed the cause: the surface did not shrink and the framing did not shrink — the ceiling assertion and `needed > window` still pass on the same surface. The budget simply stopped reserving for tools it does not send. "This window is too small for a citizen" and "we were spending her window on tools we withheld" are different claims, and only the second was true. THE FIX — one decision that carries what it chose, what it costs, and WHY: enum SurfaceReason { NoTools, Full, HandsForWork, HandsForBudget } struct SelectedSurface { specs, tokens, reason } fn select_tool_surface(&self, ws, context_window) -> SelectedSurface consulted by `prompt_view_within` (budget AND demand) and by `contribute` (the request), so the accounting and the wire can no longer disagree. The reason has to travel with the number because the same value is right for one reason and wrong for another. `delib.turn.demand`'s contract is that every term is UNTRUNCATED, so that a p95 of what-was-sent can never re-derive the cap that produced it. Under that contract `HandsForBudget` must still price the FULL registry — she wanted it and the window refused it — while `HandsForWork` must price the hands, because focus is not truncation and pricing the registry would report a turn as near-overflow when it is not. `SelectedSurface::demand_tokens` is exactly that split. Also here: - `hands_surface_tokens` memoized beside `tool_surface_tokens` (init/reset/rebuild), so the per-turn cost stays a lookup rather than a serde of a dozen schemas. - `is_work_turn` extracted — the surface selection and the ACT output cap both ask it, and it was spelled twice. - `delib.tool_surface.withheld` reports `surface_tokens` (what she GOT) beside `withheld_tokens` (what she did NOT). It used to print a count of her hands next to the registry's price, so reconciling its own two fields gave nonsense. - `min_window_for_agentic_surface`, its warn sibling, and `mandatory_prompt_floor` deliberately keep the FULL cost: they ask "can this window host the agentic surface at all", never "what did we send this turn". MUTATION-PROVED, four mutations RUN rather than reasoned about: A hands arm priced as the registry → kills 4 of 5; the mute sensor correctly survives (it reads the full surface) B demand always prices what was sent → kills ONLY the budget-withheld test C demand always prices the registry → kills ONLY the focus-narrowed test D mute sensor narrowed to hands → kills ONLY its own test (11902 vs 11902) B and C failing in OPPOSITE directions is the proof that the reason branch is pinned and not merely the shared value plumbed correctly. D's first version killed NOTHING — including the test named for it. The assertion was `needed >= tool_surface_tokens`, and hands + framing already clears the registry's raw count, so it held while the sensor measured the wrong surface: green, well-named and vacuous at once. Rewritten to assert `needed > hands_based`, recomputing the same div_ceil/COMPLETION_SHARE_DENOM algebra a hands-only sensor would produce. Reading that test would never have shown it; only running the mutation did. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Sep 8, 2026
…not the registry it withholds (card dec1a7ff) (#3842) * fix(cognition): the message budget prices the tool surface it SENDS, not the registry it withholds (card dec1a7ff) #3829 made the tool surface a per-turn decision — full registry when it fits its share of the served window, her HANDS on a work turn or when it does not. It did not split the value that PRICES that surface. `describe_tool_tokens()` kept returning the memoized cost of the whole registry, and one accessor came to mean two things: "what the full registry costs" and "what this turn is sending". They diverge on every work turn. The two live 80 lines and one method apart, which is what made it structural: llm_deliberation_faculty.rs contribute() calls prompt_view_within(ws, window) └─ budget = window - reserve - describe_tool_tokens() ^ FULL REGISTRY contribute() then selects the surface └─ Some(self.hands_specs.clone()) ^ HANDS SENT The budget could not see the decision, so it priced the maximum unconditionally. THE HARM WAS NOT A WRONG NUMBER. That budget feeds `fit_messages`, so over-pricing trims the CONVERSATION to fit room that was never occupied. The citizen loses grounding she had window for — the #206 cliff's harm class arriving through the accounting instead of through the surface. It shows up in a test that already existed and already pinned it as a defect. #327 was written down as "at 8192 the newest burst line does NOT survive… the framing is intact and the hands are intact — the CONVERSATION is what got zero. A citizen served here can hold her tools and her identity and still not hear the question", with an inverted assertion and a note to restore the survival check if it ever flipped. It flips here. Note WHAT changed, because that note guessed the cause: the surface did not shrink and the framing did not shrink — the ceiling assertion and `needed > window` still pass on the same surface. The budget simply stopped reserving for tools it does not send. "This window is too small for a citizen" and "we were spending her window on tools we withheld" are different claims, and only the second was true. THE FIX — one decision that carries what it chose, what it costs, and WHY: enum SurfaceReason { NoTools, Full, HandsForWork, HandsForBudget } struct SelectedSurface { specs, tokens, reason } fn select_tool_surface(&self, ws, context_window) -> SelectedSurface consulted by `prompt_view_within` (budget AND demand) and by `contribute` (the request), so the accounting and the wire can no longer disagree. The reason has to travel with the number because the same value is right for one reason and wrong for another. `delib.turn.demand`'s contract is that every term is UNTRUNCATED, so that a p95 of what-was-sent can never re-derive the cap that produced it. Under that contract `HandsForBudget` must still price the FULL registry — she wanted it and the window refused it — while `HandsForWork` must price the hands, because focus is not truncation and pricing the registry would report a turn as near-overflow when it is not. `SelectedSurface::demand_tokens` is exactly that split. Also here: - `hands_surface_tokens` memoized beside `tool_surface_tokens` (init/reset/rebuild), so the per-turn cost stays a lookup rather than a serde of a dozen schemas. - `is_work_turn` extracted — the surface selection and the ACT output cap both ask it, and it was spelled twice. - `delib.tool_surface.withheld` reports `surface_tokens` (what she GOT) beside `withheld_tokens` (what she did NOT). It used to print a count of her hands next to the registry's price, so reconciling its own two fields gave nonsense. - `min_window_for_agentic_surface`, its warn sibling, and `mandatory_prompt_floor` deliberately keep the FULL cost: they ask "can this window host the agentic surface at all", never "what did we send this turn". MUTATION-PROVED, four mutations RUN rather than reasoned about: A hands arm priced as the registry → kills 4 of 5; the mute sensor correctly survives (it reads the full surface) B demand always prices what was sent → kills ONLY the budget-withheld test C demand always prices the registry → kills ONLY the focus-narrowed test D mute sensor narrowed to hands → kills ONLY its own test (11902 vs 11902) B and C failing in OPPOSITE directions is the proof that the reason branch is pinned and not merely the shared value plumbed correctly. D's first version killed NOTHING — including the test named for it. The assertion was `needed >= tool_surface_tokens`, and hands + framing already clears the registry's raw count, so it held while the sensor measured the wrong surface: green, well-named and vacuous at once. Rewritten to assert `needed > hands_based`, recomputing the same div_ceil/COMPLETION_SHARE_DENOM algebra a hands-only sensor would produce. Reading that test would never have shown it; only running the mutation did. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(cognition): the test windows ASK ContextBudget which windows straddle the bound, instead of naming two literals CI caught this, correctly, with the crate's own de-hardcode guard: `no_new_hardcoded_context_or_prompt_size_constant_anywhere_in_the_crate` (7,710 passed, this one failed). The offenders were mine, in the test mod added by the parent commit: const WINDOW_THAT_FITS_THE_FULL_SURFACE: u32 = 50_944; const WINDOW_TOO_SMALL_FOR_THE_FULL_SURFACE: u32 = 24_832; Bare literals carrying the WINDOW token, read off `context_budget`'s calibration table. A test fixture is not an exemption from that guard: it is a window constant that does not scale with the served window, which is exactly what the guard exists to stop, and `// context-budget-exempt:` would have gone green while leaving the numbers hand-calibrated. They are hand-calibrated numbers straddling a bound, which is the shape that goes VACUOUS silently. The parent commit's own mutation run proved it: mutation D killed nothing, including the test named for it, because `needed >= tool_surface_tokens` held by accident once hands + framing already cleared the registry's raw count. Green, well-named, testing nothing. A fixture pinned to 50,944 is one denominator change from the same failure, and it fails without a red test to tell anyone. So the fixture asks instead of asserting: fn window_admitting(full_surface_tokens: usize) -> u32 // smallest 1 KiB-aligned // window whose share admits fn calibrated_windows() -> (u32, u32) // (admits, largest refusing) `window_admitting` searches with the real predicate — `ContextBudget::from_window(w).tool_surface_tokens() >= full` — so both windows straddle the live bound by construction and follow it if the share is ever re-cut. Deliberately NOT `window / 4`: re-spelling TOOL_SURFACE_DENOM here would duplicate the decision, which is the same defect wearing a test's hat. The registry's cost is measured, not assumed: `faculty_with_the_real_registry(1024) .tool_surface_tokens` — the memo is window-independent, so a throwaway faculty can be asked what the surface costs before choosing a window to serve it in. Crate-absolute `crate::cognition::context_budget::ContextBudget` rather than a `super::super::` chain, which a nested test mod makes fragile. The lesson worth keeping: I validated the parent commit with `cargo test … llm_deliberation_faculty` — 48/48, 7,760 filtered out — and called it green. A filtered run is not a build. CI was the first thing to run the guard I shipped last night, and it caught me with it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * perf(cognition): borrow tool surfaces until request ownership boundary (#3889) Card 6635555a. Follow up PR3842: budget selection borrows cached schemas and the owned request copies once, preserving selected costs and demand reasons. --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 11, 2026
…face
Before this, a recipe's `affordances` rode into the Experience manifest and
reached every RENDERER and never the citizen standing in the room: her tool
surface was persona_tools::native_tool_specs() filtered by hardcoded name
prefixes in hands_surface(). The recipe could not add a verb or withhold one.
"Recipe = content-type + RULES" was half true — the rules stopped at the screen.
Now the room's manifest reaches the mind, through the seams that already exist:
ipc installs the node's ONE RecipeExperienceSource (the same registry the
positron projection resolves from) via install_node_experience_source;
the persona spawn passes it as PersonaBrainConfig.experience;
the cycle stamps Workspace.room_affordances from it on every tick;
select_tool_surface takes the room's set FIRST — before focus and budget,
because both narrow a surface the room has already bounded.
One filter, one place. The selection keys on RAW command names cached beside
the wire-dialect specs — the 2026-09-04 muting was a name-space mismatch at
exactly this seam, and the test pins it. SelectedSurface.specs is a Cow so a
room-selected subset and the cached surfaces share one type.
Three guards, each a test:
- a room declaring nothing is byte-identical to pre-S1 on every arm
- a room whose affordances match no native verb falls back to the pre-S1
surface and probes delib.surface.room_affordances_unmatched — never an
empty offer (the #206 cliff)
- the shipped benchmark recipe must authorize every hand a work turn
offers; it named code/list and code/tree, which are now in benchmark.json
The one deliberate behaviour change: benchmark.json authors its affordances
(hands, web/fetch + web/search, room/members, cognition/observe). Work turns
in a benchmark room are unchanged; message turns there no longer offer
activity/spawn|invite|recipes, interface/screenshot, perception/look,
vision/look — a solver's room withholds what a solver does not need.
NativeToolSpec + ToolInputSchema gain PartialEq (the byte-identical test).
Tests: faculty 70/70, workspace 27, experience 55, persona_workspace 21,
should_respond 2, vitals 4, activity 19, persona_tools 11 — green.
Card c2ec4b96. Plan: docs/planning/RECIPE-CONVERGENCE-PLAN.md
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Sep 11, 2026
…vergence plan (#3960) * docs: the recipe layer is three systems that never meet Audited against build 5193/335cb25e4 after asking whether a user could request an activity nobody coded (a job-application campaign) from #general. They cannot. - experience/recipe.rs describes a room, executes nothing - recipe/ (PipelineExecutor) executes anything, owns no room - commands/benchmark.rs:1287 is a private third loader over a fourth store affordances grant no verbs (hands_surface filters a GLOBAL list on hardcoded prefixes); layout has zero consumers; declared param defaults are not the defaults (benchmark.rs:1906 uses the Rust Default). recipe/mod.rs already states the law and names the static-plumbing trap that benchmark.rs then rebuilt. Includes the benchmark recipe written out as the migration target, the ledger of what we do vs what is authored, and a user's arbitrary ask as the same data. Cards: c2ec4b96 360143a1 c6648d08 dbdd6bcf fa447bfe d92a5941 92de4d78 7d8f8fa8 * docs(planning): one recipe system, then benchmarks onto it Joel's scope call: chat and benchmarks are the only exotic consumers; profile, theme/universe and settings are positron pages needing regions only. So the schema needs exactly three live capabilities — regions (have them), affordances (inert), pipeline (absent) — and the positron pages are the regression suite. Phase A makes the recipe layer one thing: one schema with real param defaults (S0), affordances selecting the tool surface (S1), one store and loader (S2), a pipeline that runs in a room (S3). Phase B is the proof: benchmark authored as a recipe and run beside the Rust path before its private store, loader, param model and card mirror are deleted (S4), then an ask becomes a recipe (S5) and a ratchet stops a fourth system appearing (S6). Every slice must delete more than it adds; S4 strongly so. * feat(recipe): S0 — an activity recipe can carry a pipeline One step shape for both entry points: ExperienceRecipe gains an optional `pipeline: Vec<RecipeStep>`, reusing recipe::types::RecipeStep rather than declaring a second step type. Nothing executes it yet (S3 gives the executor the room) — this is the schema half, so the two systems stop being two shapes. RecipeStep gains PartialEq and a ts-rs export; ExperienceRecipe.ts regenerates. Empty pipeline is the ordinary case and stays the default, so chat, profile, theme/universe and settings — positron pages that are regions and nothing more — are byte-identical. A floor test in source.rs asserts no shipped recipe grew a pipeline by accident; benchmark gets one deliberately in S4. Plan amended: the declared-defaults fix (benchmark.rs:1906 uses the Rust Default, not the recipe's) moves to S4, where dispatch resolves params through the recipe anyway — doing it in S0 would build that resolution twice. Tests: experience 58, recipe 134, modules::activity 19 — all green. Card 360143a1. Plan: docs/planning/RECIPE-CONVERGENCE-PLAN.md * feat(recipe): S1 — a room's affordances select the citizen's tool surface Before this, a recipe's `affordances` rode into the Experience manifest and reached every RENDERER and never the citizen standing in the room: her tool surface was persona_tools::native_tool_specs() filtered by hardcoded name prefixes in hands_surface(). The recipe could not add a verb or withhold one. "Recipe = content-type + RULES" was half true — the rules stopped at the screen. Now the room's manifest reaches the mind, through the seams that already exist: ipc installs the node's ONE RecipeExperienceSource (the same registry the positron projection resolves from) via install_node_experience_source; the persona spawn passes it as PersonaBrainConfig.experience; the cycle stamps Workspace.room_affordances from it on every tick; select_tool_surface takes the room's set FIRST — before focus and budget, because both narrow a surface the room has already bounded. One filter, one place. The selection keys on RAW command names cached beside the wire-dialect specs — the 2026-09-04 muting was a name-space mismatch at exactly this seam, and the test pins it. SelectedSurface.specs is a Cow so a room-selected subset and the cached surfaces share one type. Three guards, each a test: - a room declaring nothing is byte-identical to pre-S1 on every arm - a room whose affordances match no native verb falls back to the pre-S1 surface and probes delib.surface.room_affordances_unmatched — never an empty offer (the #206 cliff) - the shipped benchmark recipe must authorize every hand a work turn offers; it named code/list and code/tree, which are now in benchmark.json The one deliberate behaviour change: benchmark.json authors its affordances (hands, web/fetch + web/search, room/members, cognition/observe). Work turns in a benchmark room are unchanged; message turns there no longer offer activity/spawn|invite|recipes, interface/screenshot, perception/look, vision/look — a solver's room withholds what a solver does not need. NativeToolSpec + ToolInputSchema gain PartialEq (the byte-identical test). Tests: faculty 70/70, workspace 27, experience 55, persona_workspace 21, should_respond 2, vitals 4, activity 19, persona_tools 11 — green. Card c2ec4b96. Plan: docs/planning/RECIPE-CONVERGENCE-PLAN.md Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(recipe): S2 — one store, one loader; the second Recipe type is deleted recipe/run read a SECOND store — rows in a `recipes` data collection — while rooms resolved from the recipe files. Zero such rows ever existed on this node: the second store never had a tenant. Now `recipe/run` resolves its name as a PURPOSE through the node's one ExperienceSource (the same catalogue activity/recipes lists and activity/spawn accepts), via a new trait method `recipe_for_purpose`; an unknown purpose is a named refusal pointing at the overlay directory, never a fabricated recipe. PipelineExecutor::run takes (name, &[RecipeStep], args) so the ONE activity recipe's pipeline drives it directly; recipe::types::Recipe is deleted and its tolerant-parse invariant (unknown fields at both levels load) folds into the S0 test. Module docs and the recipe/run help text stop describing a store that no longer exists; RECIPE-EXECUTION-RUNTIME.md's "Violation 5" is marked resolved. Net: one type, one loader and one store path removed. Nothing added but a trait method and a test. Tests: recipe 75, experience 59, commands::recipe_run 2, generate_recipe 46. Card 360143a1 (S3 next). Plan: docs/planning/RECIPE-CONVERGENCE-PLAN.md Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(recipe): S3 — a pipeline runs in a room; approval holds; $room is seeded Until now an activity recipe could describe a room and nothing else. Now the ONE birth path — spawn_activity_room, all five callers — runs the recipe's pipeline after the room is bound, with $room.{id,name,recipe} seeded and the resolved params as $args, and the spawn result carries the receipt (pipeline.{stepsRun,stepsSkipped,heldAt,trace}). An authored recipe with a pipeline of existing verbs now spawns a room AND does work, no Rust committed. THE APPROVAL BOUNDARY. `approval: "human"` on a step HOLDS the run there: the step is not dispatched, the receipt names it (held_at), nothing after it runs. Checked before interpolation so a held step never even resolves its arguments. Proven over an EMPTY registry, where any dispatch would have failed loudly — a clean receipt with held_at = 0 is proof nothing was attempted. This is what keeps an authored campaign from submitting applications in a human's name unattended: a property of the STEP, authored as data, not a policy elsewhere. Callers without an executor at hand (benchmark_round, agent/solve, work — all spawning the benchmark recipe, which declares no pipeline until S4) probe activity.pipeline.unrun for a recipe that does declare one: a wiring fact, never a silent no-op. recipe/run reports held_at too. Executor: run_with(name, pipeline, args, seed) — run() delegates with no seed. ExecutionState::seeded binds the room after args. RecipeStep gains `approval` (ts-rs exported). The audit doc's examples now use the executor's REAL step shape (params / outputTo / condition / approval); `each` and `on:` are marked S3b, which lands inside S4 with its one consumer rather than ahead of it. Tests: 176 across recipe, recipe_run, activity, experience, work, benchmark_round — green. Card 360143a1. Plan: RECIPE-CONVERGENCE-PLAN.md Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(recipe): S4a — the benchmark round is AUTHORED; dispatch stands beside it benchmark/dispatch does everything a round needs in one Rust function: import, room, cards, tracker, staging, kickoff. A recipe cannot call a function — only verbs. This slice splits dispatch's pieces into verbs that share its own writers, so a round posted by the authored `benchmark/swe` recipe and one posted by dispatch are the same round by construction: prepare_cards(spec, selection) THE ONE WRITER of benchmark cards (task + oracle only, no side effects). Extracted from dispatch; dispatch now calls it too. The env pre-warm stays dispatch's side effect. benchmark/import pure: rows carry the writer's title/body and the ONE parser's task id — the grader keys on the title, so a recipe-posted card is graded exactly like a dispatched one. benchmark/round-open|round-track DELIBERATELY TEMPORARY adapters over the round tracker, which holds a second copy of card state the board already owns. When the board-projection work deletes the tracker, both verbs go and the pipeline shortens. each fan-out in the executor: $item/$index per element, results bound as an array. Proven over an empty registry: three items, three dispatches — never one with the array. benchmark-swe.json (`benchmark/swe`, base academy, same affordances as the Rust door): import → round-open → work/create ×each → round-track → invite → doctrine. Params resolve through the recipe's DECLARED defaults — `driver: citizen` is now real on this path, closing the defaults lie S0 deferred. activity/spawn routes a benchmark purpose to dispatch ONLY when the recipe declares no pipeline; a recipe that declares its behaviour drives itself. Genuine v4 id, pinned in shipped::. Floor tests: every page recipe declares no pipeline; the authored round is made only of a known verb set (a new step = a new verb, on purpose); both benchmark recipes authorize every hand a work turn offers; shipped ids stay distinct without a hardcoded count. Still owed (S4b, in the plan): the side-by-side run on one (suite, seed, sample) after deploy; kickoff parity; detached-solve staging as a step; then delete dispatch, benchmark_recipes, load_recipe, run_params — and, with the board as the card store, the tracker and its two adapter verbs. Tests: recipe/import/work/benchmark 160, experience+activity 78, faculty floor — green. Cards fa447bfe, 360143a1. Plan: RECIPE-CONVERGENCE-PLAN.md Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(recipe): S3c — recipes are an API: typed steps, a published schema, definitive validation Three things, all off every hot path (once per spawn, once per catalogue read; the registry lookup is built once per process): TYPED STEP VOCABULARY. on_error: OnError {Fail, Skip} and approval: Option<Approval {Human}> are enums, not Option<String>. A misspelled policy is refused at load and named, never silently the default. Unknown FIELDS stay tolerated (a newer file loads on an older executor); unknown VALUES are refused. Exported to TS and JSON Schema. A PUBLISHED RECIPE SCHEMA. protocol/schema/experience-recipe.schema.json, from ExperienceRecipe (schemars) on every test run exactly as the ts-rs bindings are, gated by the same drift job (it now diffs protocol/schema/ too). An authored file carries "$schema" and an editor validates and completes it. This is what makes complete customization WITHOUT repo changes safe: the overlay directory is the store, the schema is the contract, and the gate below names what is wrong instead of asking for a compiler. DEFINITIVE PIPELINE VALIDATION (recipe/validate.rs). Every step is checked against the COMMAND REGISTRY'S OWN param schemas — like a request against an API spec, not key-name matching: the command exists; literal values are typed by `type`/`enum` through $ref definitions (anyOf for Option, oneOf for a documented enum); every $reference is RESOLVED — $args.x to a declared recipe param, typed by its default; $room.* to a seeded field (asserted against the seeding site by test); $item/$index only inside `each`; anything else to an earlier step's outputTo. Envelope fields (derived from CommandRequest) never flag. activity/recipes lists issues per recipe as typed PipelineIssue rows; activity/spawn refuses a recipe with any, naming each step. The gate paid for itself on its first run against the live registry: my own benchmark/round-track had #[schemars(skip)] on the two fields the authored round passes. The schema was the lie; it declares them now (recipe/run's args too). Not yet definitive: the SHAPE of a prior step's output ($imported.cards is known to exist, not what it holds) — command outputs carry a TS type, not a JSON Schema; next is Output: JsonSchema on ActionCommand. Tests: 171 across recipe, experience, activity, benchmark_import, recipe_run, faculty floor — green. Plan: RECIPE-CONVERGENCE-PLAN.md § S3c Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(recipe): the published schema must not demand an id the loader derives The loader derives a missing `id` from `purpose` (RFC 4122 v5) — "author a file, zero code" includes zero uuidgen — but the generated schema listed `id` as required, so an editor would have demanded a UUID the author must never hand-mint. The Rust type keeps `id` required (a LOADED recipe always has one); the file-level contract is the loader's, and it now says optional, with the derivation explained on the property. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(benchmark): the round verbs take a Uuid room id — an id is not text The identity ratchet (every_string_typed_identity_field_is_declared) caught S4a's benchmark/round-open and round-track taking room_id: String. Typed as Uuid now (string on the TS wire), the parse-and-refuse arm is gone, and the open result's round_id is a Uuid too. Guard 20/20, benchmark_import, validate. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
Bumps glob from 11.0.3 to 13.0.0.
Changelog
Sourced from glob's changelog.
... (truncated)
Commits
3bfb96013.0.0db31a63Split the CLI out from the main project5493458ci: remove node 203f7526ctest: fix bin tests on windows (slashes)2b03cca12.0.0d56203dprettier configbb521e5Remove --shell option where unsafe to use2551fb511.1.047473c0bin: Do not expose filenames to shell expansionbc33fe1skip tilde test on systems that lack tilde expansionDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)