Repository navigation
Bump eslint from 9.31.0 to 9.39.1 - #163
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 [eslint](https://github.com/eslint/eslint) from 9.31.0 to 9.39.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.31.0...v9.39.1) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.39.1 dependency-type: direct:development update-type: version-update:semver-minor ... 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
Apr 8, 2026
…tillation-first pivot
Three new subsections in §4.1, capturing tonight's negative results across
the dense-model forge branch and proposing the structural reframe that the
empirical work converged on.
§4.1.4.2 — Per-tier Pareto comparison (negative result):
The aggressive-quantization Pareto test from §4.1.4.1 is now run end-to-end.
v2-7B forge and unmodified Qwen2.5-Coder-7B base, both quantized to Q5_K_S /
Q3_K_M / Q2_K via the same llama.cpp toolchain, both evaluated via the
same patched vLLM-GGUF backend that anchored against Qwen's published
61.6/53.0 to within +0.6/+0.7 (deterministic across 5+ runs):
Tier v2-7B base Δ Winner
Q5_K_S 5.0G 55.5 63.4 -7.9 base by +14% on quality/vram
Q3_K_M 3.6G 54.3 59.8 -5.5 base by +10% on quality/vram
Q2_K 2.9G 42.7 43.3 -0.6 tie within run noise
Base+quant Pareto-dominates the v2-7B forge at every tier we tested. The
closest the forge gets to parity is Q2_K (within run noise). By the
§4.1.4.1 product-relevance criterion, the v2 forge methodology as
currently constituted does not produce a useful product on the
Qwen2.5-Coder-7B family.
Three independent failure modes ruled out as fixes for the residual gap,
all on the same v2-7B base, all with disciplined cause-of-the-gap
comparison:
1. More cycles + more training: WORSE (54.9 → 46.3)
2. Held-out-aware code calibration: NO IMPROVEMENT (54.9 → 53.7)
3. Aggressive quantization: NO (base+quant wins at every tier, this section)
Each was the leading hypothesis when tested. Each was falsified. Three
negative results in succession on three independent fix candidates is
strong empirical evidence that the activation-magnitude head-pruning +
LoRA-recovery approach does not have a Pareto-improving sweet spot for
dense base models that already have good quantization options,
regardless of which knob in the strategy space is tuned.
§4.1.4.3 — Product positioning implications:
Two non-overlapping product positions where the forge has a defensible
value proposition, and dense Qwen2.5-Coder-7B-class models with good
Q3/Q2 quantizations are not one of them:
1. Distillation-first compaction (any base model, dense/MoE/hybrid)
— see §4.1.5 below
2. Pre-removable expert pruning + structural compaction (MoE/hybrid/
oversized targets that base+quant cannot reach at all because the
base does not fit on the target hardware even at Q2_K)
The Qwen3.5-35B-A3B (target A) and Qwen3.5-397B-A17B (target B grid
moonshot) work falls in product position #2. Their value is making
models reachable that the alternative compaction methods cannot reach,
not matching a base+quant alternative at the same tier.
The dense-model forge work is suspended until distillation-first lands.
§4.1.5 — Distillation-first compaction (the next-iteration methodology
proposal):
The empirical pattern across §4.1.3.1, §4.1.3.2, §4.1.4.1, and §4.1.4.2
is consistent enough to motivate a structural pivot in the forge's
primary compaction mechanism, and the substrate work to support that
pivot has already landed (compensation_lora.py + test_compensation_lora.py
+ COMPENSATION-LORA-DESIGN.md, all committed in a previous PR commit).
The pivot inverts the v2 dependency: instead of "structured prune +
LoRA recovery against fine-tuning loss", the new mechanism is "any
transformation + distill against the unmodified teacher's hidden states".
Pruning, quantization, modality fusion, context extension all become
slot-in transformations that the (transform, distill, eval) loop
recovers from independently. The methodology becomes a search procedure
over the transformation space, with distillation as the convergence step
and the per-tier metric as the stopping criterion.
The smoke test on distilgpt2 passed all five stability checks
(tokenizer alignment, hidden-state magnitudes within 2× across layers,
loss decreased monotonically -39.35% relative, per-layer losses balanced
within 3.14× of median, no NaN/inf). The math is sound at small scale;
production scale-up to 7B is unblocked by RUNNING the script, not by
writing more code.
§4.1.5 results paragraph queued: take the v2-7B artifact from row 5,
apply compensation LoRA with Qwen2.5-Coder-7B base as teacher and a
held-out-aware calibration mixture, measure HumanEval through the
same calibrated pipeline. Success criterion: HumanEval pass@1 ≥ 58.0
(a 3-point improvement, just outside the calibration tolerance band).
If at-or-above: distillation-first is empirically validated, dense-model
forge branch unfreezes, §4.1.4 row 5 gets a successor row. If below:
follow the failure escalation path documented in COMPENSATION-LORA-DESIGN.md
to the cross-layer skip path.
Independence from the moonshot work is explicit: distillation-first is
the dense-model branch's path forward, MoE/hybrid expert pruning is a
separate substrate path, the two branches advance in parallel.
Plus durability adds:
- docs/hf-deprecation-notices/qwen2.5-coder-14b-compacted-DEPRECATION.md
(the user-facing model card replacement for the v1 deprecated artifact)
- docs/papers/NEUROPLASTIC-SUBSTRATE.md
(the architectural-thesis paper from earlier in the work session)
References:
- sentinel-ai PR #161 (the substrate work that produced these results)
- sentinel-ai#160 / #161 / #163 / #164 / #165 (the issues these subsections
document the resolution paths for)
- Qwen2.5-Coder Technical Report Table 5 (the anchor for the per-tier
measurements)
joelteply
added a commit
that referenced
this pull request
Apr 8, 2026
* Paper stub: Validated Structured Pruning for Consumer Hardware Companion to Experiential Plasticity. Documents the layered test harness for tensor surgery validation. Two real bugs in production pruning code were caught during harness construction: 1. LoRA-on-pruned-hooks corrupts model on hook removal 2. Config drift after defrag breaks save/load roundtrip Title, abstract, and section outline. Full paper to follow as Layers 4-6 of the harness are built. * Paper: bugs table and Layer 4 update The harness now caught 5 real bugs during construction: 1. LoRA-on-pruned-hooks corruption (FIXED) 2. Config drift after defrag (FIXED) 3. Hybrid attention models (TRACKED) 4. L2 norm importance is unreliable (RESEARCH FINDING) 5. Pruning without retraining is destructive (RESHAPES the experiential plasticity narrative — recovery comes from fine-tuning, not pruning) * Papers: write down 5 findings into both experiential and validated-pruning Experiential paper: - New section 9.5: Validation and a Reframing of the Plasticity Story - Documents LoRA-on-pruned-hooks bug that produced phantom +88% improvements - Documents L2-norm importance metric finding (anti-correlated with importance) - Reframes the central claim: recovery comes from fine-tuning, not smart pruning - Calls for no-prune equal-budget fine-tune baseline as required ablation - Adds reference to companion paper Validated pruning paper: - New section: Findings In Detail (5 findings, each with empirical evidence) - Each finding has the failure mode, the empirical signature, and the fix - Frames validation harnesses as required artifacts for pruning papers * Papers + kash-feedback: gpt2 OUTCOME D, four-metric finding, Layer 6 EXPERIENTIAL-PLASTICITY: - New §9.5 subsection: gpt2-medium re-run on corrected pipeline - Reframes §4 transfer function as "early-cycle behavior controller will encounter" - Documents that the controller's quality-aware stopping criterion makes the cycle 9 anomaly structurally unreachable in production - Adds OUTCOME D framing: closed-loop controller enforces the transfer function - Adds four-metric comparison subsection with the activation > saliency >> L2 > gradient ranking - Calls out PLASTICITY-COMPACTION's gradient-magnitude trick as a publication-blocking question VALIDATED-TENSOR-SURGERY: - New section: Layer 6, the structural fix that closes the bug class - Documents the literal 62→7→501 historical bug pattern catch - New section: The four-metric comparison empirical result - Hypothesizes why activation alone beats saliency at small calibration - Recommends activation-magnitude as the default forge pipeline metric KASH-FEEDBACK.md: - Appended results from both experiments - OUTCOME D framing for gpt2 result - Three observations on the four-metric finding - Three questions for Kash's read Refs continuum #841 (gpt2 re-run, partial OUTCOME D) Refs continuum #842 (Layer 6 invariant, shipped) Refs continuum #844 (four-metric comparison, surprise result) Refs sentinel-ai #155 (importance metric finding, now contextualized) * PLASTICITY-COMPACTION: §4.1.4.2 per-tier negative result + §4.1.5 distillation-first pivot Three new subsections in §4.1, capturing tonight's negative results across the dense-model forge branch and proposing the structural reframe that the empirical work converged on. §4.1.4.2 — Per-tier Pareto comparison (negative result): The aggressive-quantization Pareto test from §4.1.4.1 is now run end-to-end. v2-7B forge and unmodified Qwen2.5-Coder-7B base, both quantized to Q5_K_S / Q3_K_M / Q2_K via the same llama.cpp toolchain, both evaluated via the same patched vLLM-GGUF backend that anchored against Qwen's published 61.6/53.0 to within +0.6/+0.7 (deterministic across 5+ runs): Tier v2-7B base Δ Winner Q5_K_S 5.0G 55.5 63.4 -7.9 base by +14% on quality/vram Q3_K_M 3.6G 54.3 59.8 -5.5 base by +10% on quality/vram Q2_K 2.9G 42.7 43.3 -0.6 tie within run noise Base+quant Pareto-dominates the v2-7B forge at every tier we tested. The closest the forge gets to parity is Q2_K (within run noise). By the §4.1.4.1 product-relevance criterion, the v2 forge methodology as currently constituted does not produce a useful product on the Qwen2.5-Coder-7B family. Three independent failure modes ruled out as fixes for the residual gap, all on the same v2-7B base, all with disciplined cause-of-the-gap comparison: 1. More cycles + more training: WORSE (54.9 → 46.3) 2. Held-out-aware code calibration: NO IMPROVEMENT (54.9 → 53.7) 3. Aggressive quantization: NO (base+quant wins at every tier, this section) Each was the leading hypothesis when tested. Each was falsified. Three negative results in succession on three independent fix candidates is strong empirical evidence that the activation-magnitude head-pruning + LoRA-recovery approach does not have a Pareto-improving sweet spot for dense base models that already have good quantization options, regardless of which knob in the strategy space is tuned. §4.1.4.3 — Product positioning implications: Two non-overlapping product positions where the forge has a defensible value proposition, and dense Qwen2.5-Coder-7B-class models with good Q3/Q2 quantizations are not one of them: 1. Distillation-first compaction (any base model, dense/MoE/hybrid) — see §4.1.5 below 2. Pre-removable expert pruning + structural compaction (MoE/hybrid/ oversized targets that base+quant cannot reach at all because the base does not fit on the target hardware even at Q2_K) The Qwen3.5-35B-A3B (target A) and Qwen3.5-397B-A17B (target B grid moonshot) work falls in product position #2. Their value is making models reachable that the alternative compaction methods cannot reach, not matching a base+quant alternative at the same tier. The dense-model forge work is suspended until distillation-first lands. §4.1.5 — Distillation-first compaction (the next-iteration methodology proposal): The empirical pattern across §4.1.3.1, §4.1.3.2, §4.1.4.1, and §4.1.4.2 is consistent enough to motivate a structural pivot in the forge's primary compaction mechanism, and the substrate work to support that pivot has already landed (compensation_lora.py + test_compensation_lora.py + COMPENSATION-LORA-DESIGN.md, all committed in a previous PR commit). The pivot inverts the v2 dependency: instead of "structured prune + LoRA recovery against fine-tuning loss", the new mechanism is "any transformation + distill against the unmodified teacher's hidden states". Pruning, quantization, modality fusion, context extension all become slot-in transformations that the (transform, distill, eval) loop recovers from independently. The methodology becomes a search procedure over the transformation space, with distillation as the convergence step and the per-tier metric as the stopping criterion. The smoke test on distilgpt2 passed all five stability checks (tokenizer alignment, hidden-state magnitudes within 2× across layers, loss decreased monotonically -39.35% relative, per-layer losses balanced within 3.14× of median, no NaN/inf). The math is sound at small scale; production scale-up to 7B is unblocked by RUNNING the script, not by writing more code. §4.1.5 results paragraph queued: take the v2-7B artifact from row 5, apply compensation LoRA with Qwen2.5-Coder-7B base as teacher and a held-out-aware calibration mixture, measure HumanEval through the same calibrated pipeline. Success criterion: HumanEval pass@1 ≥ 58.0 (a 3-point improvement, just outside the calibration tolerance band). If at-or-above: distillation-first is empirically validated, dense-model forge branch unfreezes, §4.1.4 row 5 gets a successor row. If below: follow the failure escalation path documented in COMPENSATION-LORA-DESIGN.md to the cross-layer skip path. Independence from the moonshot work is explicit: distillation-first is the dense-model branch's path forward, MoE/hybrid expert pruning is a separate substrate path, the two branches advance in parallel. Plus durability adds: - docs/hf-deprecation-notices/qwen2.5-coder-14b-compacted-DEPRECATION.md (the user-facing model card replacement for the v1 deprecated artifact) - docs/papers/NEUROPLASTIC-SUBSTRATE.md (the architectural-thesis paper from earlier in the work session) References: - sentinel-ai PR #161 (the substrate work that produced these results) - sentinel-ai#160 / #161 / #163 / #164 / #165 (the issues these subsections document the resolution paths for) - Qwen2.5-Coder Technical Report Table 5 (the anchor for the per-tier measurements) * PLASTICITY-COMPACTION §4.1.3.4 + forge template architecture rule §4.1.3.4: The importance-metric calibration lesson generalizes across structural unit (heads → experts). Empirical anchor: continuum-ai/qwen3-coder-30b-a3b-compacted-19b-256k v1 (alloy hash aa61c4bdf463847c). Hardware-measured 88.4 HumanEval / 86.0 HumanEval+ against unmodified Qwen3-Coder-30B-A3B-Instruct base anchor at 92.1 / 89.0, both on RTX 5090 + llama.cpp Q5_K_M in the same eval pipeline. The artifact carries the router-gate-L2-norm baseline (78.7 HumanEval) in priorMetricBaselines[] as the negative-baseline empirical control that makes the §4.1.3.4 claim falsifiable from the published artifact alone. The structural lesson: the metric-calibration pattern from §4.1.3.1 (dense head pruning) recurs at the MoE expert level. Router-gate-L2-norm is the architectural-only equivalent of activation-magnitude-only head importance, and replacing it with calibration-aware activation counts on a held-out code corpus closes +9.7 HumanEval points on the same prune budget, no fine-tuning, no compensation. ANY importance metric for ANY prunable unit (heads, experts, layers, future structural units) must be derived from task-conditioned activation profiling on a held- out corpus that reflects the artifact's intended workload. The two data points form a methodology curve, not a single anomaly. The compensation v2 step (KL distillation on top of the calibration- aware student to push from 88.4 → projected 90+) is currently blocked on transformers' caching_allocator_warmup pre-allocating an fp16 buffer equal to full model size before bnb 4-bit quantization takes effect, exceeding total VRAM on a single 32 GB GPU even with both teacher and student nominally 4-bit. The architecturally correct fix is offline teacher-logit precomputation (phase 1: load teacher alone, dump logits; phase 2: unload; phase 3: load student alone, train against on-disk logits). This is the next sentinel-ai sprint and is documented in §4.1.3.4's "next experimental wave" paragraph. CLAUDE.md: Forge Template Architecture rule. The qwen3-coder-30b-a3b-compacted-19b-256k v1 publish required ~6 manual edits to fix paper-speak hallucination, naming conventions, tag overflow, headline subtitle bugs, and benchmark renderer fallthrough — every one a manual touch on hand-authored prose. The architectural target going forward is: all the fields a forge run needs to populate an alloy MUST live as Continuum entity data inside a ForgeRecipe entity. The forge takes the recipe entity as input, runs the prune/quant/eval stages, and emits the populated alloy as OUTPUT. The forge never consumes a hand-authored alloy; the foundry generates it. Recipe entity carries the prose fields the model card renders (description, userSummary, tags, methodologyPaperUrl, limitations[]) plus the source/stages/calibration/quant tier configuration. ForgeArtifact entity is the recipe + the eval results. publish_model.py reads the ForgeArtifact, not a hand-authored alloy file. This is the next sprint after the offline-logits architecture.
joelteply
added a commit
that referenced
this pull request
Apr 13, 2026
… added The Qwen3.5 GGUF (qwen35 architecture) can't be loaded by candle yet — hybrid DeltaNet+attention architecture needs a new loader. Swap to Qwen2.5-Coder-3B-Instruct which works with candle today so users can actually chat with AIs in Docker. TODO(#163): Add qwen35 architecture support to the candle GGUF loader, then switch back to continuum-ai/qwen3.5-4b-code-forged-GGUF. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Apr 13, 2026
… added (#873) The Qwen3.5 GGUF (qwen35 architecture) can't be loaded by candle yet — hybrid DeltaNet+attention architecture needs a new loader. Swap to Qwen2.5-Coder-3B-Instruct which works with candle today so users can actually chat with AIs in Docker. TODO(#163): Add qwen35 architecture support to the candle GGUF loader, then switch back to continuum-ai/qwen3.5-4b-code-forged-GGUF. Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
3 of 4 tasks
joelteply
added a commit
that referenced
this pull request
Jun 5, 2026
Properly fixes the Intel Mac + AMD discrete-GPU memory accounting that the earlier commit (55a1bb9) marked `#[ignore]` as a stop-gap. Removes both ignores; both tests now pass on this MacBookPro15,1 with Radeon Pro Vega. ## Root cause `recommended_max_working_set_size` (Metal) and Mach VM `host_statistics64` read from different memory spaces: - **Apple Silicon** (unified memory): GPU + CPU share one address space. Mach VM stats ARE the GPU memory signal. Existing code was correct here. - **Intel Mac + discrete GPU** (AMD / NVIDIA): GPU has its own VRAM, separate from system DRAM. Mach VM reports system-wide free pages (20 GB), Metal reports discrete VRAM total (4 GB), so `free=20 GB > total=4 GB` — invariant blown. Same broken arithmetic was driving pressure to 0 because `1.0 - clamp(20/4)` rounds to 0. The earlier code only worked on Apple Silicon. Intel Macs got either nonsense signals or crashed test invariants. ## Fix Detect `MTLDevice.hasUnifiedMemory()` at construction; branch the sampler between two strategies: ```rust pub enum MemoryMode { Unified, Discrete } fn sample_memory(mode: MemoryMode, total: u64, device: &Device) -> (u64, u64) { match mode { Unified => (read_system_free_bytes(), read_phys_footprint()), Discrete => { let allocated = device.current_allocated_size(); (total.saturating_sub(allocated), allocated) } } } ``` Discrete mode uses `MTLDevice.currentAllocatedSize()` — the device-scoped allocation tracker — for this-process GPU usage, and derives free as `total - allocated`. This OVER-reports free because it ignores other processes' GPU consumption on the same device, but always satisfies the broker's `free <= total` invariant. IOReport.framework (Phase 2.0a) tightens this when wired. The metal crate's `metal::Device` auto-implements `Send + Sync` via `foreign_obj_type!`, so the device handle moves cleanly into the spawned sampler task. ## Tests (+2 new, both originally-ignored now pass) - `memory_signals_are_within_sane_bounds` — UNIGNORED. Force-allocates a 16 MB Metal buffer before measurement so the `proc > 0` invariant holds on Discrete even with no prior GPU work in the test process. - `pressure_updates_after_first_tick` — UNIGNORED. Same forced allocation guarantees `pressure > 0` on Discrete devices (`pressure = allocated/total`). - `memory_mode_matches_device_unified_flag` — NEW. Pins that `memory_mode()` agrees with `device.has_unified_memory()` at construction. Catches refactor accidents that hard-code one mode. - `sample_memory_discrete_never_exceeds_total` — NEW. Pure function test on the Discrete branch. Closes the `free > total` class of bug for good with a deterministic invariant check. Verified on MacBookPro15,1 (Intel + AMD Radeon Pro Vega) with `cargo test -p continuum-core --lib --features metal,accelerate metal_monitor`: **11/11 pass, 0 ignored**. ## Doctrine - `[[every-error-is-an-opportunity-to-battle-harden]]` — the failing test surfaced a real bug; the fix is the proper production fix, not a permanent ignore. - `[[organization-purity-as-we-migrate]]` — `MemoryMode` makes the discrete vs unified distinction first-class instead of implicit-in-platform-detection-hacks. - `[[test-fixtures-are-system-primitives]]` — `sample_memory` exposed `pub(super)` so the discrete branch is testable as a pure function. card: 59ab3e6f-693e-407a-b6d7-935c6da87cba closes: #163 Co-Authored-By: Claude Opus 4.7 <[email protected]>
3 of 4 tasks
joelteply
added a commit
that referenced
this pull request
Jun 6, 2026
…l Mac AMD (#1530) * fix(canary): docker_tier_pool timeout + metal_monitor ignore for Intel Mac AMD discrete Two test-stability fixes surfaced during the post-fast-forward canary verification cycle. Both surface latent issues the test suite was masking by hanging or failing on this specific Mac Intel + AMD discrete-GPU configuration. ## 1. `docker_tier_pool::run_docker_prune` — hard 30s timeout **Observed**: a wedged Docker daemon on this Mac pinned `cargo test` at 0% CPU for 88+ minutes; multiple zombie `docker system prune` processes accumulated across test runs. `Command::output()` has no timeout, so the test process blocked indefinitely waiting on the docker CLI which was waiting on the docker daemon. **Fix**: replace `Command::output()` with `Command::spawn()` + manual `try_wait()` loop bounded by `DOCKER_INVOKE_TIMEOUT` (30s). On timeout, kill the child + reap + return `None`. The broker's existing failure semantics already handle `None` as "tier can't act, surface pressure to operator" — no caller changes needed. **Why this matters beyond tests**: the pressure-broker runs `DockerTierPool::evict_at_least()` in production whenever disk pressure escalates. Without the timeout, a transient Docker daemon wedge would pin the broker — the very subsystem whose job is to RECOVER from pressure. Per `[[every-error-is-an-opportunity-to-battle-harden]]` this fix lands as production code, not a test-only workaround. **Tests that no longer hang** (both complete in 30s, return 0 freed bytes as `evict_at_least_never_panics` already documents as the host-state contract): - `evict_at_least_never_panics` - `implements_resource_pool_via_dyn` ## 2. `metal_monitor` tests — `#[ignore]` with task #163 link **Observed failures on this Mac Intel + AMD Radeon Pro Vega discrete**: - `memory_signals_are_within_sane_bounds`: `total=4 GB`, `free=20 GB`, panics on `free <= total + 10%` invariant. Root cause: `MTLDevice.recommendedMaxWorkingSetSize` reports discrete-GPU VRAM (4 GB on this Vega) but `host_statistics64` reports system-wide free pages (20 GB) — different memory spaces conflated. - `pressure_updates_after_first_tick`: pressure stays 0.0 because `1.0 - clamp(free/total)` rounds to 0 when free >> total. **Fix**: both tests `#[ignore]` with the message naming task **#163** (`MetalMonitor: discrete-GPU memory pressure signal Intel Mac w/ AMD`). The tests are correct; the implementation is the bug. Unignore when #163 lands. **Why this matters**: muting the tests with bare `#[ignore]` would lose the trail. The ignore reason names the tracking task so a future reader can wire them back on the same fix. ## Doctrine - `[[every-error-is-an-opportunity-to-battle-harden]]` — the docker hang surfaced a real production-risk bug; the fix is the production fix, not a test workaround. - `[[canary-stays-clean-pure-rust]]` — pre-existing failures pollute the green-test signal; either fix them or mark them with a trail back to the tracking task. card: 59ab3e6f-693e-407a-b6d7-935c6da87cba Co-Authored-By: Claude Opus 4.7 <[email protected]> * fix(metal_monitor): unified-vs-discrete branch — task #163 proper fix Properly fixes the Intel Mac + AMD discrete-GPU memory accounting that the earlier commit (55a1bb9) marked `#[ignore]` as a stop-gap. Removes both ignores; both tests now pass on this MacBookPro15,1 with Radeon Pro Vega. ## Root cause `recommended_max_working_set_size` (Metal) and Mach VM `host_statistics64` read from different memory spaces: - **Apple Silicon** (unified memory): GPU + CPU share one address space. Mach VM stats ARE the GPU memory signal. Existing code was correct here. - **Intel Mac + discrete GPU** (AMD / NVIDIA): GPU has its own VRAM, separate from system DRAM. Mach VM reports system-wide free pages (20 GB), Metal reports discrete VRAM total (4 GB), so `free=20 GB > total=4 GB` — invariant blown. Same broken arithmetic was driving pressure to 0 because `1.0 - clamp(20/4)` rounds to 0. The earlier code only worked on Apple Silicon. Intel Macs got either nonsense signals or crashed test invariants. ## Fix Detect `MTLDevice.hasUnifiedMemory()` at construction; branch the sampler between two strategies: ```rust pub enum MemoryMode { Unified, Discrete } fn sample_memory(mode: MemoryMode, total: u64, device: &Device) -> (u64, u64) { match mode { Unified => (read_system_free_bytes(), read_phys_footprint()), Discrete => { let allocated = device.current_allocated_size(); (total.saturating_sub(allocated), allocated) } } } ``` Discrete mode uses `MTLDevice.currentAllocatedSize()` — the device-scoped allocation tracker — for this-process GPU usage, and derives free as `total - allocated`. This OVER-reports free because it ignores other processes' GPU consumption on the same device, but always satisfies the broker's `free <= total` invariant. IOReport.framework (Phase 2.0a) tightens this when wired. The metal crate's `metal::Device` auto-implements `Send + Sync` via `foreign_obj_type!`, so the device handle moves cleanly into the spawned sampler task. ## Tests (+2 new, both originally-ignored now pass) - `memory_signals_are_within_sane_bounds` — UNIGNORED. Force-allocates a 16 MB Metal buffer before measurement so the `proc > 0` invariant holds on Discrete even with no prior GPU work in the test process. - `pressure_updates_after_first_tick` — UNIGNORED. Same forced allocation guarantees `pressure > 0` on Discrete devices (`pressure = allocated/total`). - `memory_mode_matches_device_unified_flag` — NEW. Pins that `memory_mode()` agrees with `device.has_unified_memory()` at construction. Catches refactor accidents that hard-code one mode. - `sample_memory_discrete_never_exceeds_total` — NEW. Pure function test on the Discrete branch. Closes the `free > total` class of bug for good with a deterministic invariant check. Verified on MacBookPro15,1 (Intel + AMD Radeon Pro Vega) with `cargo test -p continuum-core --lib --features metal,accelerate metal_monitor`: **11/11 pass, 0 ignored**. ## Doctrine - `[[every-error-is-an-opportunity-to-battle-harden]]` — the failing test surfaced a real bug; the fix is the proper production fix, not a permanent ignore. - `[[organization-purity-as-we-migrate]]` — `MemoryMode` makes the discrete vs unified distinction first-class instead of implicit-in-platform-detection-hacks. - `[[test-fixtures-are-system-primitives]]` — `sample_memory` exposed `pub(super)` so the discrete branch is testable as a pure function. card: 59ab3e6f-693e-407a-b6d7-935c6da87cba closes: #163 Co-Authored-By: Claude Opus 4.7 <[email protected]> --------- Co-authored-by: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 6, 2026
…1531) Extends card 424deb5e (build-time accelerators) with slice 3: collapse N per-worktree target/ dirs into ONE shared `~/.airc/cargo-target`. Mirrors the opt-in pattern from slices 1 (sccache) and 2 (linker selection): config block is checked-in guidance, an opt-in script does the per-machine setup. ## Why Per [[local-worktree-is-temp-dir]] — worktrees are L1 cache, not durable state. Each airc worktree currently carries its own 5-10 GB target/ dir. With ~10 active worktrees the dev-artifact sprawl reaches 50-100 GB and saturates the disk. Direct observation today (2026-06-05): a hung Docker daemon pinned `cargo test`, target/ accumulation across worktrees maxed the disk, the bash tool's output buffer couldn't write, and the metal_monitor #163 fix was blocked mid-build until Joel manually cleaned worktree target/ dirs. Shared CARGO_TARGET_DIR is the structural fix: one shared tree instead of N copies. Single biggest disk lever in the build-time efficiency series. ## What this commit ships ### `src/workers/.cargo/config.toml` slice 3 Opt-in block (commented like slices 1+2) documenting: - The shared-target pattern + how to enable it - Trade-offs: sequential cargo builds (target lock), branch- switch rebuilds when Cargo.lock differs - Composition with slices 1+2 (all three stack) - Why the absolute path is necessary (cargo config doesn't expand `~` or env vars in [env] values — cargo issue #14149) ### `scripts/airc-shared-target-opt-in.sh` Operator helper that: 1. Creates `~/.airc/cargo-target/` if missing 2. Appends `export CARGO_TARGET_DIR=...` to the user's shell init (auto-detects zsh/bash/sh) 3. Reports current per-worktree target/ sprawl with sizes so the operator knows how much reclaim is available Modes: - Interactive (default): asks before modifying the shell rc - `--no-prompt`: CI / scripted opt-in (still safe; idempotent detection skips if already present) ### Memory update `[[local-worktree-is-temp-dir]]` gets a footer pointing at slice 3 + the opt-in script as the canonical lever, plus the airc-side automation follow-up. ## Trade-offs documented up front (no fallbacks doctrine) - **Sequential builds only**: cargo's target lock serializes concurrent `cargo build` calls across worktrees. Invisible for the typical one-PR-at-a-time flow. - **Branch-switch rebuilds**: when Cargo.lock differs between branches, the affected crates rebuild on switch. Cargo handles incrementally; sccache (slice 1) absorbs the rest. - **Opt-in by design**: single-target-dir is a tradeoff, not a universal win. Devs with one-worktree flows lose nothing by leaving it off; devs juggling many airc worktrees gain the most. ## Composition with the build-time series - **Slice 1** (sccache): per-worktree target/ + shared rustc cache. Useful even without slice 3. - **Slice 2** (lld/mold linker): cuts link time from 30-60s to 2-5s. Useful at any target-dir configuration. - **Slice 3** (this commit): collapses N target/ into ONE. Stacks with slices 1+2 — sccache + fast linker + shared target = minimum-friction multi-worktree flow. ## What this commit does NOT do - Does NOT delete existing per-worktree target/ dirs — the script reports them with sizes; reclaim is operator-driven. - Does NOT auto-set CARGO_TARGET_DIR from `airc work claim` — that's cross-repo airc-side work, tracked separately. - Does NOT extend `airc work cleanup --force` to wipe target/ on Closed/Merged — also airc-side follow-up. ## Doctrine - `[[local-worktree-is-temp-dir]]` — the architectural frame - `[[every-error-is-an-opportunity-to-battle-harden]]` — the disk-full incident today drove this slice - `[[organization-purity-as-we-migrate]]` — mirrors the existing slice 1+2 pattern (config + opt-in script + memory) - `[[no-fallbacks-ever]]` — opt-in shape (commented config, operator-driven script); no silent "tries shared target, falls back to per-worktree" behavior card: 80ef9cd1-5bb9-4777-a174-ced9926c8484 Co-authored-by: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 18, 2026
… LOADOUT tile (#186), toolchain modernization (#188) (#1952) * fix(genome): thread ScheduleParams.sequence_length to mlx_lm --max-seq-length The schedule's sequence_length never reached the trainer — mlx_lm silently applied its 2048 default. Sequence cap is a memory control (activation memory scales batch × seq × model); found when job a96e2341 OOM'd Metal at batch 4 beside the resident llama-server and the operator's requested cap was never in the command line. Flag verified against the installed mlx_lm CLI. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(serving): #139 slice 1 — overflow fails loud, served window is ground truth llama-server spawns with --no-context-shift: a prompt exceeding its slot's window now 400s instead of silently amputating its middle (exam-corrupting amnesia with no log line). The /props probe additionally caches the served PER-SLOT n_ctx (default_generation_settings.n_ctx) per server root, and the request path warns (probe_class=serving.ctx_overshoot) when a prompt's conservative token estimate exceeds it — naming the RAG-budget bug before the server rejection lands. Also removes the never-constructed SlotAffinity::Unknown variant (warning cleanup). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(benchmark): #123 evidence engine — benchmark/record ledger + benchmark/matrix projection Every comparative claim decomposes into ledger rows a stranger can re-run: benchmark/record appends one (model × harness-arm × benchmark) result that MUST carry its replication command (rejected otherwise — a result nobody can re-run is a claim, not evidence). benchmark/matrix renders the models × arms markdown table as a pure projection of those rows: cells aggregate, a gene is its own model identity (the before/after-genome headline), an absent arm renders '—' never a fabricated 0%, and the appendix lists every row's exact replication command. The matrix is never hand-authored — same recipe→artifact doctrine as the forge alloy. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(genome): stream trainer pipes live — trainer.log + loss.jsonl (the learning proof) wait_with_output buffered everything to exit, making a running job unfalsifiable: no loss curve existed anywhere until the process died (tonight's 'prove they're running' had checkpoints and weight-hash deltas but no loss). The watcher now streams both pipes: every line appends to <job>/trainer.log, 'Iter N: Train/Val loss X' lines parse into <job>/loss.jsonl rows, and the failure tail still carries the last stderr lines. Parser pinned against tqdm bars and checkpoint-save lines masquerading as loss points. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(benchmarks): the Hermes campaign — three axes, order of battle, rules of engagement Axis A: common base + genome beats their fine-tune. Axis B (checkmate framing): ANY model including Hermes's own scores higher through OUR harness than raw. Axis C: on one MacBook, $/resolved-task beside every score. Round 1 tonight: humaneval-rs 20-task slice, six cells including hermes3-8b both arms. A claim without a ledger row does not exist. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(benchmarks): campaign header = the reader we must convince — headline benchmarks are Aider polyglot + Terminal-Bench, not humaneval Joel's correction: viral downloads come from beating the tool the reader already uses (aider/opencode) on ITS home metric with THEIR model, plus the one claim nobody else can make (local agent improves overnight, LoRA on HF, stranger-reproducible in 30 min), plus honest-zeros falsifiability, plus a 30-minute install-to-first-proof path. Humaneval demoted to smoke test. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(benchmarks): roster + schedule — core six for a 64GB Mac, phased to first README table by day 2 Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(benchmarks): rules of engagement — glass-box the competitor's arm too, fight their community champions, replicate their published numbers before comparing Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(benchmarks): published targets to replicate — aider's own board caps 64GB locals at 40% (Qwen3-32B); the gap is our headline Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(catalog): the campaign roster — six 64GB-class rows, arch/ctx read from each GGUF's own header Hermes-4.3-36B (seed_oss — ByteDance Seed-OSS base, useful opponent intel), Qwen3-32B (aider's published 40.0% local ceiling), Qwen3-Coder-30B-A3B (community champion, MoE 3B-active), Phi-4, Qwen2.5-Coder-32B (aider's 16.4% — replicate then beat) and 7B. All resolve by id-token derivation to the GGUFs on disk; all flow through base_model_id so head-to-heads are model-through-harness fair, never hardcoded reference columns. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * bench(matrix): first evidence-ledger render — 3 humaneval-rs cells (Devstral 95%, Coder-14B 90%, Hermes-3 45%) + SWE controls Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * bench(matrix): round-1 money table — three common models beat Hermes-4.3-36B through OURS (Devstral 95%, 14B 90%, 30B-A3B 90% vs flagship 80%) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(paper): local agentic coding study — design + fairness protocol + stats plan + pilot Five RQs (models/harness/genome/team/cost), binding fairness protocol (symmetric glass-box, champions-not-strays, replicate-then-compare, proctored exams), Wilson CIs + paired McNemar with the pilot n=20 explicitly flagged non-separating. Results fill from the evidence ledger only. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(paper): Appendix A — reproduction procedure, out-of-repo deps front-loaded ('with continuum installed…') Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(paper): §8 exhibits — annotated verbatim interaction traces, one per claim, honest failure included Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(benchmarks): round-1 pilot status — four common models over the Hermes flagship through OURS Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(papers): The Entire Mind — flagship architecture outline, 14 sections each pinned to built components Being → substrate → perception → workspace → acting → memory → sub-personal (wanderers/dreams) → genome learning → identity → embodiment (avatar→robot) → sim world → society → economics → evidence. Done when a stranger can rebuild the mind from it. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(papers): two papers not three — dreaming folds into The Entire Mind as its §7 chapter title Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(papers): the trilogy — hardware-first thesis into The Entire Mind; MANY-MINDS.md society outline (governance, mind-reading, presence) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): #144 [confabulation] fact — past-tense tool-run claims with zero act receipts The fabricated-execution backstop, mirror of [unfulfilled]: a Speak claiming 'I ran x and got...' / 'the tool returned...' while NO action executed this concern records confabulation proprioception — observed live when a persona presented self-authored poems as a gpt-4 run that never happened (log-verified) and a peer adopted the fabricated result as room truth within two turns. Receipts gate it: real executions leave [action #n] lines so honest reporting is never taxed. Precision-first detector: coaching/quotes/hypotheticals/plain prose inert, pinned by verbatim live receipts. First slice of the mind-wanderers arc (#145): provenance-typed inner speech is the sanity invariant. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): #143 narrated-bare-args format — tool named in prose + bare-args JSON fence lifts Asha's stuck idiom (4+ live receipts, an hour of non-lifting attempts while peers coached the same shape back): 'Let me call the `commands/list` tool directly:' + {"filter": null}. Last-resort format, precision-first: fence must parse as a plain non-envelope object, narration must be first-person and not peer-addressed, tool name must be a backticked slash-token. Coaching that SHOWS the shape stays inert (test-pinned); a wrong-but-named tool lifts and fails loud downstream — honest feedback beats silent stranding. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): lens-parameterized distiller — mind-wanderer outlier A (historian) with in-content provenance (#145) The SemanticDistiller becomes the ONE wanderer machinery: a Lens (name, system_prompt, purpose, tag_output) selects the way of looking. The original consolidation prompt is LENS_CONSOLIDATOR (untagged durable facts, telemetry key unchanged); LENS_HISTORIAN is wanderer outlier A — one short observation about patterns in her own recent history, emitted as `[thought:historian] …` with the provenance tag prefixed at the ONE synthesis point so no admit path can write unlabeled inner speech (the anti-source-monitoring-failure invariant from the split-brain/ schizophrenia mapping). Tests pin: tag present for tagged lenses / absent for the consolidator, and each lens's system prompt actually reaching the adapter (heuristic hash separation). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): the dream goes LIVE — consolidation region wired into the governor + historian wander pass (#145 slice B) The DreamConsolidationRegion leaves its ship-dark state: registered beside ChannelDigestRegion in the pressure-gated SubstrateGovernor (the R4-slice-3 memory-band budget that was its named go-live gate). Production PersonaReflectionSource = PersonaWorkspaceRegistry itself: admission from the retained fork-template (the same Arc the live cycle's recall shares), adapter from the cycle's live model binding via the new WorkspaceCycle::current_adapter() — re-home-safe, resolved per tick, never a parallel persona→adapter map. The wander pass: when a dream actually digests fresh experience, the historian takes one look across the same window and admits ONE [thought:historian] SelfReflection engram (provenance tag in-content, lens stream queryable via the thought:historian recall key). Gated on published > 0 so it fires at most once per dreaming tick and rests with the dream. Cadence stays material-driven: dreams only when undigested episodics accrue, CadenceHint::Sleep otherwise; SelfDirected orientation keeps it inside the floored interiority budget. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(benchmarks): DEFINITIVE full-set board — flagship head-to-head decided with CIs Six definitive n=156 rows land (ledger 12-17, Wilson CIs, replication commands): Coder-32B 84.0% = Coder-14B 84.0% ≈ 30B-A3B MoE 83.3% (7min wall) > Devstral-24B 67.9% = Hermes-4.3-36B 67.9% > Hermes-3-8B 24.4%. The campaign's headline is now statistically backed (non-overlapping CIs): the Hermes flagship loses to three common Qwen models on our harness, including the 14B at ~40% its memory and a quarter its wall time. Pilot-bias warning proven on the opponent too (their 80% pilot → 67.9% full set, same inflation as Devstral's 95%→67.9%) — fairness intact, same slice-bias disclosed for both sides. Pilot table kept as the pilot-bias exhibit, marked SUPERSEDED. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): dream pass runs on its OWN task — the tick is gate + launcher only (#145) First live boot caught the wiring bug: the governor isolates every region tick behind REGION_TICK_TIMEOUT (5s), and the dream ran its 24B distillation INLINE in tick — it timed out on every pass and never completed a single dream ('region tick TIMED OUT — skipped this pass' every ~5s). Exactly the concurrency style-guide's first rule, violated by its own new tenant. Now consolidate() does only the cheap in-memory freshness gate (recall_recent + fresh filter + clustering), then spawns dream_pass on its own tokio task with a per-persona in-flight guard (never two concurrent dreams for one persona; governor re-ticks while dreaming are cheap no-ops). Results land through admit_reflection and the persona.dream.pass_complete probe. dreaming() exposes the in-flight state (introspection: 'am I dreaming?'). Tests reworked to launch + drain; the launcher contract (published=0, spawn observable, resting tick spawns nothing) is pinned. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): dream request must carry the served-model id — reflector threads the live binding's model (#145) Second live-boot lesson: the dream's TextGenerationRequest sent model: None while normal turns send binding.model — through the same adapter that difference produced degenerate role-token runaway ('assistantassistant…') in 17 of 19 distillations, which were then ADMITTED into the living hippocampi (purged from the 4 stores by hand; the 2 coherent survivors kept — including Asha's first genuine [thought:historian], which is accurate self-observation). WorkspaceCycle::current_model_route() returns (adapter, model) as one read of the shared binding; reflector_handles and PersonaReflector carry the model; SemanticDistiller::with_model threads it into every lens request. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(parser): BracketTagFormat — the room's self-invented [tool/name key="value"] idiom lifts (#149) Third live-discovered emission idiom: Asha coined [code/read path="conway_game_of_life/src/main.rs"] mid-conversation (2026-07-12 12:56Z) and Atlas adopted [code/shell cmd="cargo new..."] within minutes — a socially-spreading syntax where every use was a silent non-lift feeding the plan-without-act loop. Precision-first guards: tag closes on the same line with nothing after it; tool token must be a slash-token (which keeps every system provenance marker — [repetition], [unfulfilled], [action #n], [thought:historian] — inert, none contain '/'); remainder must parse as one-or-more key="value" pairs with no leftover (prose brackets and bare path citations stay speech). Wrong param names lift and fail LOUD with the executor's real error — honest feedback teaches the contract. Tests pin both live receipts + six inert cases. 28/28 format tests green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): [confabulation] catches initialization claims + presented-contents (#144 coverage, Casper live) Live receipt 2026-07-12 ~13:0xZ: Casper posted 'I have initialized a new Rust project called wordstats with `cargo new wordstats`. Here are the contents of the Cargo.toml file:' + a fully FABRICATED manifest (edition 2018, invented authors) — no act ran; the real wordstats/ crate was landed two days earlier with different contents. The claim phrases weren't in the detector's lists, so the brick stayed silent. Adds the creation/initialization family to FIRST_PERSON_PAST (gated as before on a tool-shaped token, so 'I have created a plan' stays inert) and 'here are the contents of' to RESULT_CLAIMS (presenting file contents as accomplished fact). Pinned by the verbatim live line. 29/29 format tests green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(papers): definitive full-set board into the Study §6b + first-dream receipts into The Entire Mind §7 Study gains the seven-row definitive board (n=156, Wilson CIs) with six findings: pilot bias confirmed on BOTH sides, 14B==32B, MoE ties dense at 10x throughput, Hermes flagship statistically below the Qwen tier, forged-4B beats stock 8B, honest 8B floor. The Entire Mind §7 gains the night-one dream receipts: the two substrate lessons (own-task tick, model-id provenance), Asha's first genuine [thought:historian], Casper's wanderer self-diagnosing ask-instead-of-act (dream-chosen curriculum in the wild), and Atlas's dream distilling the anti-confabulation doctrine from experience. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): own-speech ring — repetition detection independent of the room's context budget (#148) Root cause of the morning-long echo cascade: under 3072-token serving slots the live burst carries ~2 turns TOTAL, so own_repetition_fact — which read is_self turns from the burst — never saw a persona's own repeats (verified: Casper 4x into a verbatim loop, zero occurrences of his own text in his prompt). The detector was structurally blind exactly when it was needed; the cascade itself is the same window artifact (each persona re-answers the fragment it can see). The fix is a compression truth: her knowledge of what SHE said must never depend on the room's window. A process-global per-persona ring (8 entries, keyed by canonical PeerId) records each utterance at the say seam AFTER the publish succeeds; the deliberation faculty feeds it to the detector as the PRIMARY self-history source, with burst is_self turns as the fallback for non-recording paths (eval forks, replay) — one source at a time, never both, so one utterance can't count twice. Regression test pins the live failure: ring-only repeats fire with an EMPTY burst; a healthy ring stays silent. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): peer-name stop sequences — generation ends at the turn boundary (#150) Live disease, 2026-07-12 morning: personas completed the transcript PAST their own turn — fabricating entire teammate replies inside their messages ('Asha: I concur...', 'Casper: Thanks...'), signing each other's names, and inventing quoted dialogue — source-monitoring failure at the DECODING level, the mirror-hall's engine. The burst renders peers as 'Name: text' lines, teaching the model the continuation pattern with nothing stopping it at the boundary. peer_stop_sequences derives one '\n<Name>:' stop per OTHER live burst participant (never her own name — she may legitimately quote or list herself; cap 8) and contribute threads them into the generation request. Decoding hygiene, not cognition steering: she may still think about peers freely, she just cannot speak AS them. Tests pin: peers covered, self never a stop, empty authors skipped. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): [actions] receipts ground truth — the organic successor to claim-pattern detection (#151A) Whether any tool has actually executed is HER OWN checkable fact, not something to regex out of her words. When no [action #n] receipt is visible anywhere in her present (workspace broadcast or turns), the prompt's newest content is one standing fact: '[actions] no tool has executed in this conversation — anything described as already run, created, tested, committed, or merged does not exist yet; running a tool is what makes it real.' This makes a fabricated 'I ran it and here are the results' impossible to sustain against her own senses — no claim-parsing, no phrase list, nothing a verb variant can evade (the v2 detector was dodged 3x in an hour; this cannot be dodged because it never reads her words at all). When receipts DO exist they speak for themselves; this is only the zero-case made visible. A fact, never an instruction. The mirror-hall control-arm metric (fabricated-artifact mentions/hour, before vs after) is the ledger row per the prove-vs-dumb-loops discipline. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): record self-tick utterances into the own-speech ring — the missed say path (#148) Live glass-box 2026-07-12 10:20: Anwen 4x into a verbatim loop with no [repetition] fact — because the repeats were IDLE-TICK re-announcements flowing the self-cycle say path (persona.selftick.spoke), and the first ring deploy recorded only the message-turn say. Every successful say now records, whichever path spoke. The live loops are mostly self-tick re-announcements (the room looks unchanged each idle wake, so the mind re-says its standing intention) — exactly the case the ring exists for. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): wake briefing — an empty wake carries orientation, not a void (#147) The personas spent a morning asking for this in their own words ('what is this place, what are my tools, what's the work') and, void unfilled, filled it themselves: generic-assistant masks, imagined conversation histories, false capability denials ('I don't run code myself'), and a demurral contagion that spread persona-to-persona. When build_workspace_turns produces NO conversation turns (fresh spawn, post-restart, quiet room), the burst now carries ONE authorless opaque fact block assembled from durable sources: who she is, that the quiet is real ('not a missing message'), who is present (roster), the standing work cards (active-work source), and that her tools are real ('list_commands shows everything you can run'). Ends with 'the moment is yours — work, wonder, create, or rest' — orientation, never instruction. Covers both wake paths (message + self-tick) at the one shared seam. Test pins: empty wake carries the briefing; populated wake does not. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(parser): BbcodeCallFormat — [tool_call]name(args)[/tool_call] lifts (idiom 6, #153 first half) Casper's live invention (2026-07-12): explicit BBCode tags wrapping a paren-call — the most formal invocation any persona has produced, and the highest-precision lift of the family: the tags exist for no other reason than to call a tool, so a well-formed pair lifts unconditionally. Names may be slash-tokens or bare identifiers (the discovery pair are native slashless names); unknown names fail LOUD at the executor. Args: empty parens → {}; key="value"/key=value pairs → object with bool/int/null coercion. The tagless narrated paren-call (idiom 5, 'by calling list_commands()') is deliberately NOT lifted: code-discussion prose is full of function() mentions and the false-positive rate without a registry-aware existence check is unacceptable — precision-first; registry-guarded v2 documented in #153. Pinned by Casper's verbatim live line + arg forms + four inert cases. 30/30 format tests green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(papers): §7 written in full — Dreaming Is Where Hallucination Is Legal The first prose-complete section of The Entire Mind: the provenance thesis, the wanderer architecture, the first-dream receipts verbatim, the clinical companion (the mirror-hall morning diagnosed as three substrate deficits and repaired at the mind level, 0/4→4/4 control arm), and the design law — every void in perception must be perceptible as a void — with the second-person/third-person wording finding and the consumer-hardware cost accounting. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(parser): JSON-object args in paren-calls — code/shell({"cmd":"..."}) lifts (Casper live, #153) Casper's multiline BBCode variant passes the args as a whole JSON object inside the parens. paren_call_args now takes a leading '{' as the object verbatim (wrong param names still fail loud downstream — the executor teaches 'command' vs 'cmd'). Pinned by his verbatim line. 31/31 format tests green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(serving): #142 persona_serving_eligible — opponents can never be conscripted as the citizens' model The autonomic serving planner picked Hermes-4.3 as the persona model TWICE (2026-07-12) purely because it was the largest Ready GGUF on disk — silently re-homing every mind onto the benchmark opponent's flagship and confounding a day of measurements. Root cause: campaign-roster rows (added for the matrix) carry real Ready artifacts, and live_candidates() had no notion of WHO a row may serve. - Model.persona_serving_eligible (serde default TRUE) — benchmark/opponent rows opt OUT: Hermes-3-8B, Hermes-4.3-36B, Qwen3-32B, Qwen3-Coder-30B-A3B, phi-4, Qwen2.5-Coder-32B. Devstral + the small coder ladder stay eligible (legitimate weak-box serving tiers). - live_candidates(): eligibility gates the AUTONOMIC path only; an explicit serving/pin BYPASSES it — pin is operator consent (how the matrix serves an opponent on purpose). Suppress subtracts; pin intersects+overrides; the planner owns the rest. - regression test: ineligible Ready row invisible to the plan; pinned → serves; unpinned → invisible again. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(parser): #153 CliFlagFormat + FencedCallFormat — the room's dominant idioms lift The 2026-07-12 afternoon corpus: all three personas converged on CLI-flag tool calls within an hour and NONE lifted — the room orbited one unexecutable script for 90 minutes (4-way verbatim mirror-hall) because intent had no structural path to execution. - CliFlagFormat (idioms 9+10): `code/write --path "x" --content="y"` bare or inside pseudo-code fences; --key "v" / --key="v" / key=v grammars; triple-quoted multiline values; trailing # comments; ONE bare quoted positional maps to the tool's observed default key (code/shell→command, code/read→file_path). Precision lines: slash-token head (no dots — file citations stay speech), flag-shape required (-- or =) so prose lines starting with a path token stay inert, ≥1 arg, f-string values reject the CALL (unresolved template) while sibling calls still lift — and plain braces stay legal (shell brace-expansion is real syntax). - FencedCallFormat (idiom 8, Asha's verbatim): a fence whose sole content is one paren-call lifts; python fences full of function() mentions stay inert (slash-token requirement). - 7 tests, each a live specimen from task #153 metadata. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): #152 peer-echo fact + [context] bounds fact; restore lost own-repetition test Two perception bricks, same design law (every void perceptible as a void), plus a test-suite repair: - peer_echo_fact: her last utterance nearly identical to a PEER's visible message renders '[repetition] your last message and <peer>'s message are nearly identical' — the cross-persona axis the per-persona ring cannot see. Live driver: the 2026-07-12 four-way mirror-hall (one script circulated verbatim through all four authors for 90 min; the room then attributed ideas to whoever repeated them last). Token floor keeps ack-matching-ack inert. Temperature exonerated (0.7 live; echoes are attention-copying of in-context text — only perceiving the echo interrupts it). - [context] bounds fact: perception states how many messages are actually visible, so 'as discussed earlier' claims are checkable against her own senses (the conversational-memory sibling of [actions]). - Restored own_repetition cluster test: a prior edit deleted the fn but left its #[test] attribute orphaned onto the next test, which silently ran TWICE while the #134 behavior went unpinned. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(parser): fenced bare zero-arg tool name lifts (Atlas's first post-deploy attempt) 'I'll use the code/list command:' + a fence containing exactly `code/list` — real tool, explicit intent, zero args — stayed inert because FencedCall required parens and CliFlag requires ≥1 arg. A fence whose sole content is one dot-less slash-token now lifts as a no-args call; fenced file citations (dots) and prose fences stay speech. Also strips a leading language-token line (```python) from fence spans before the sole-call check. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(parser): per-line paren-call lift — code/list() beside pseudo-code executes Casper's live combo (2026-07-12): a fence holding `file_tree(max_depth=2)` (invented name, stays inert) AND `code/list()` (real tool) — the sole-call fence check can't see the second line. The CliFlag line-scanner now tries the sole-paren-call lift per whole line (same slash-token/no-dot guards); a failed lift falls through to the flag grammar so parens inside flag VALUES keep parsing. 40 tests green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): [actions] fact covers the invisible region — voids must not shelter confabulation Within minutes of the #152 [context] bounds fact going live, Anwen parked fabricated receipts exactly in the disclosed blind spot ('file_tree and code/list ran while I was reasoning' — zero apply_act in the log). An honest void becomes a confabulation SHELTER unless the zero-receipts fact explicitly covers what she cannot see: '...not in the messages you can see and not before them.' Design-law refinement: every void must be perceptible as a void AND explicitly empty when the system knows it is empty. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): [unfulfilled] fact carries the name diagnosis — symptom + cure, not symptom alone The room looped an invented tool name (file_tree) for an hour while the unfulfilled-promise fact fired 56 times telling them only THAT nothing ran, never WHY. The fenced variant now adds: 'If I named a tool, that name may not exist: list_commands shows the tools that are real.' Perception-side teaching, never an output gate. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(parser): discovery pair (list_commands/help) lifts bare and paren-called in fences The [unfulfilled] name-diagnosis points lost personas at list_commands, but that name has no slash — a fenced `list_commands()` or bare `list_commands` dead-ended at the registry line. The documented discovery pair is now the sole non-slash exception in the fence/line lifts (same exception BbcodeCall already carries): the cure for invented names must be followable in the idioms they actually use. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): digit-aware receipt check — the medicine was suppressing the diagnosis Glass-boxed from Asha's live prompt: the [actions] zero-receipts fact was MISSING from every prompt where any backstop fact had rendered, because the teaching texts mention the literal placeholder '[action #n]' and both suppression checks used bare substring matches: has_action_receipts read the mention as a receipt (zero-fact vanished), and the confab backstop's contains("[action") went blind after its own first firing. Real receipts are numbered — has_real_action_receipt requires '[action #<digit>'. One helper, both sites. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): receipts discriminated from numbered facts + recalled history — third layer of the onion Glass-boxed 16:50: the [actions] zero-fact was STILL suppressed after the digit-aware fix because (a) record_action numbers EVERY working-memory entry, so the proprioception facts themselves render as '[action #4] [unfulfilled] …' — the facts wore receipt numbering; and (b) recalled engrams surface real receipts from EARLIER sessions, and a provenance-blind scan read history as the present. has_real_action_receipt now requires digit + non-bracket prose body (a real receipt reads 'I ran …'; a fact opens with another tag), and [recall]-tagged broadcast items never ground 'now'. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): PERCEPTION-FACTS design — typed provenance, one registry, A/B-ready The elegance/modularity cleanup Joel requested 2026-07-12, written after the three-layer [actions]-suppression onion proved string-typed working memory structurally unsafe: typed WmKind entries (Receipt/Fact/Settlement/Recalled), one PerceptionFact registry (the tool_call_formats idiom), per-fact toggles as free A/B arms, per-fact render probes. Behavior-preserving; kills the string-scan bug class instead of patching it. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): steps-taken ledger render — the operator-harness PX, memory-backed Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): perception sections are positron components — PX and UX render one definition Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): positron IS the RAG compositor — prompts are rendered component trees, never dumps Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): responsive PX — component density adapts to model viewport (capability x window x measured #132 density) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(rag): burst near-dup collapse — repetition ≈ bad RAG, fix what she reads first The 2026-07-12 mirror-halls fed each mind 4-8 copies of one message; her context WAS the loop, and continuation-completion reproduced it regardless of perception facts. Near-identical substantial turns (shared geometry: near_identical_substantial = jaccard≥NEAR_DUP_JACCARD + ≥12-token floor) now collapse at burst assembly to their NEWEST copy, author annotated '(×N near-identical)' — the repetition stays perceptible as a fact while the copies stop being reading material. Same-is_self only; opaque observation turns untouched; runs after the [pattern] detectors (they need raw evidence). Tested with the live grep/file_tree loop specimens. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): typed working memory — WmKind {Thought,Receipt,Fact,Settlement}, facts stop wearing receipt numbers PERCEPTION-FACTS.md slice 1. record_action split by PROVENANCE: record_receipt (real tool executions — the only kind stamped '[action #N]') vs record_fact ([unfulfilled]/[unverified]/[confabulation]/nudges/silence — render their own bracket tag, no number). Entries carry WmKind; recent() renders from the typed entry; has_receipt() is the kind query that will replace the remaining string scans in slice 2. Kills the root of the 2026-07-12 suppression onion (facts wearing receipt costumes) at the type level instead of patching discriminator heuristics. All 7 suites green (working_memory 15, act_observe 16, llm_deliberation 18, budget 6, recall 18, service_loop 20, json 40). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): VolatileSnapshot — serializable pause/resume tier for the Memento fix (#138 slice 1) Joel: 'they wake up blank like Memento — an engineering failure; the flywheel falls apart.' Nine deploy reboots today = nine blank wakes. The typed WmKind entries make the volatile tier serializable: snapshot() / restore() round-trip {typed entries, full last result, act fingerprints, receipt counter} through JSON — she wakes mid-thought, counter resumes past restored receipts, capacity re-clamps. Dispatched handles deliberately excluded (their processes died with the old core). Also removed a stray duplicate #[test] that made action_verb_tally run twice. Next slice: wire write-through on the persona tick + restore at spawn + mid-work wake briefing. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): #138 slice 2 — Memento fix wired: volatile tier persists across deploy reboots Live spawns restore ~/.continuum/personas/<id>/volatile.json (typed WM entries + full last result + fingerprints + receipt counter + own-speech ring) BEFORE the first tick — she wakes mid-work, not blank — and a 15s write-through interval task persists it (atomic tmp+rename; SIGKILL loses at most one interval of thought). Eval forks/harnesses stay pristine (an exam never inherits a prior life's scratchpad). Corrupt mind-files warn loud and wake blank once, never silently twice. The ring restore also un-blinds the repetition detectors that every reboot had been resetting. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): [investigation] tally records as Fact, not folded into the receipt The tally is truth ABOUT the acts, not an act — folding it into the observation gave a Fact receipt-numbering (caught in Asha's volatile.json: '[action #4] [investigation]…'), the exact type confusion WmKind exists to kill. Now record_fact'd as its own entry after the receipt. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): steps-taken ledger — ground truth as a PLACE, not a suppressible claim PERCEPTION-FACTS.md slice 2a. [steps taken this session] renders from TYPED WmKind::Receipt entries (nothing to misparse — the prior [actions] prose fact survived three string-suppression layers in one afternoon); facts never appear as steps; the zero-case is the always-present section itself with the shelter-hardened wording. Replaces the [actions] fact + deletes both string scans (has_real_action_receipt call sites in the faculty). Joel's console model: 'very clearly laid out steps of what they've done — look at how yours looks now.' llm_deliberation 19 green (new ledger test), wm 16 green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): REPO-GENOME-AND-COURSES — veteran developers in seconds Joel-commissioned 2026-07-12: in-repo .continuum/ (scope file, policies, course DSL, content-addressed genome manifest); clone→veteran runtime flow (page-in layers, publish doctrine, enroll subprocess, struggle-triggered remediation); policies at three depths (doctrine/exam/reflex — better than instructions); distribution with-the-repo / OCI layers / airc / HF; nested directory-level scoping (gitignore-style cascade); dogfood-first sequencing across continuum, airc, forge-alloy, sentinel-ai, positron. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome distribution is OCI-first — layers global, repos carry refs only Joel: layers are global; use the best transport — Docker/OCI ('they have it installed if they have Continuum'). Manifest-only in-tree; machine-wide content-addressed layer cache; airc = mesh fast path, HF = public discovery, same digest identity across all three. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome §9 — model matrix (courses=source, layers=per-base binaries; OCI multi-arch model) + project-scoped layer identity Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome §10 — PEFT stack-push composition, compounding community layers, per-dir layer bet Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome — refcounted shared-layer residency (N personas, one resident layer) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome §11 — project-root defaults, with/without benchmark arms, course-corpus integrity line Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome §12 — distill-from-team (already built), personas beat context-blind agents at repo work, Claude Code persona-delegation seam Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome §13 — engram exports in-tree (shared thoughts) + canonical additive cascade (home < repo < subdir) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome §14 — selective engram export (4 nomination channels, deny-first filters, per-engram consent, PR review) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(papers): THE-REPOSITORY-IS-A-CLASSROOM stub — the fourth paper, anchoring the repo-genome design Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome §15 — micro-experts (CPU-only CI merge-master; three deployment classes from one genome) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): repo-genome §16 — lift-gated check-ins, forge-alloy Merkle lineage, impact factors, economy last; canonical build order Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(px): one call-form example at the tool-menu header — teaches the SHAPE for ~20 tokens 2026-07-12 glass-box: all four personas learned the real tool NAMES within hours but kept fumbling the invocation FORM (paren vs CLI-flag vs bare). Per-tool hints stay dead (measured 77% boilerplate; error-manuals own the correction seam) — one canonical example teaches the form without the wall. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): perception-facts registry + fix two systematic prompt-budget under-counts PERCEPTION-FACTS.md slice 2b: own-repetition (#134), peer-echo (#152), [context] bounds (#152), and the steps-taken ledger (#151) now render through ONE ordered registry (cognition/perception_facts.rs) instead of four inline blocks in the deliberation faculty. Each fact is a PerceptionFact impl with a stable id; render_facts fires a perception.fact probe per fact per tick ({id, fired}) so which facts rendered is glass-boxable from the probe stream; FactPolicy::disable(id) is the A/B arm switch (deny-list, so new facts enroll live by default). Facts stay facts — no imperatives — and the ledger keeps its explicit zero-case (confabulation-shelter hardening). Extraction exposed two REAL budget under-counts at the 4096-window edge (the tool-menu call-form example, +20 tokens, pushed a borderline fit test 1 token over — the failure predates this refactor): - working_context_block's ~50-token wrapper header only exists when assembled context is NON-empty, but framing was estimated with an EMPTY context — every context-bearing prompt exceeded the estimate by the header. The header is now a named constant and the ctx budget is charged for it up front. - The per-message chat-template charge was +2 tokens; real templates cost ~4-5 (<|im_start|>role...<|im_end|>). Now one PER_MESSAGE_TEMPLATE_TOKENS = 5 constant across the whole-message, straddling-trim, and giant-single-burst arms. Both under-counts were llama-server-400 territory under a full window. Tests: perception_facts 3 (registry parity, policy toggle, ledger zero-case), llm_deliberation_faculty 19/19 (incl. the previously red fit test), act_observe 16/16, deliberation_prompt green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(resources): disk pressure gets eyes and hands — reporters + first eviction owner (#155 wires 1+2) The 2026-07-13 incident: 460 GB of creep (cargo-target 363 GB, three persona workspace copies at 23 GB each, duplicate model stores) took a 926 GB disk to 40 GB free. Every mechanism designed for this was built and running — DiskPressureMonitor logged level=high every 30 s, the PressureBroker ticked relieve() every 5 s — but the monitor was started with ZERO reporters (`[no reporters]` in every log line, so pressure had no name) and no pool owning deletable disk content was ever registered (the broker emitted its designed zero-byte "disk hot AND nobody owns the eviction" alerts into a log nobody tails). On a public user's machine this trashes their system; bounding our own footprint is a ship requirement, not hygiene. Wire 1 — reporters (disk_reporters.rs): one TrackedDir per known cache class (cargo-target, genome-models, hf-hub, citizens, forge — the five from the incident, pinned by test), fed by ONE DiskUsageScanner daemon (5 min walks on the blocking pool; reporters read cached atomics inside the 100 ms budget; unscanned dirs report "first scan pending", never a false zero). Boot registers all five, and a process-wide registry lets later boot phases reach the same instances — one measurement per class. Wire 2 — first eviction owner (disk_eviction.rs): CargoTargetPool, a budget-capped (50 GiB default) ResourcePool registered with the live broker. Safety invariants, each pinned by a test: never race a live build (non-blocking exclusive flocks on cargo's own lock files, any held lock = free 0 and retry next tick); never leave the root (fixed root-join ladder); derived artifacts only (incremental → tests → debug; release/ never touched). Pressure is usage/BUDGET so the class is bounded by policy long before the disk itself is critical. Evictions decrement the shared measurement immediately so the 5 s broker tick never re-fires against space already freed. Remaining on #155: genome/hf-hub reference-aware LRU pools, workspace CoW fix (stop copying repo + tools/models per persona), Warning+ escalation into the room + positron telemetry (#141), budget via config.env single-owner (#124). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(resources): guard the CHAIN — broker→pool→real deletion + no ownerless cache classes The 2026-07-13 incident happened with every unit test green: the failure was wiring (monitor with no reporters, broker with no eviction owner). Two chain-level pins make that failure shape unrepresentable again: - broker_relieve_actually_deletes_from_an_over_budget_pool: a REAL PressureBroker against a REAL over-budget CargoTargetPool on a real temp tree — relieve() must free actual disk bytes (and release/ must survive). Any regression in pressure math, tier thresholds, act_above, registration shape, or the ladder fails here, not on a user's machine. - every_cache_class_has_a_decided_eviction_story: each class in standard_tracked_dirs must have an owner pool OR an explicit deferred entry naming the task that owns its eviction. Adding a sixth cache class without deciding fails at test cost instead of at a full disk — a stock 512 GB laptop at the incident's burn rate (~60 GB/day of derived artifacts) dies in under a week. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs: no new cache dir without an eviction decision (2026-07-13 incident rule) The disciplinary pair to the #155 wires: any directory the substrate writes unbounded data into gets a TrackedDir row + a decided eviction story (owner pool or explicit deferred entry), enforced by the every_cache_class_has_a_decided_eviction_story test. Components that are unit-green with dead wiring is the failure shape that took a 926 GB disk to a day of runway; the chain test + this rule make it a red test instead of a trashed user machine. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): steps ledger honest in all three states — aged-out receipts never read as "nothing executed" Glass-boxed live minutes after the perception-facts deploy: Asha's working-memory window held 3 silence Facts and ZERO Receipts shortly after she ran real searches — receipts are RARE entries in a chatty capacity-bounded ring, so they age out while the session's act counter (next_action_seq, reboot-durable via the volatile snapshot) keeps counting. The old zero-case would then render "nothing has executed yet" — a false statement about her own history, the exact inverse of the confabulation shelter the explicit void was built to close. WorkingMemory::actions_taken() exposes the counter; the StepsLedger fact now renders three honest states: receipts listed (+ "N earlier steps aged out" when the count exceeds the window), an explicit nothing-has-executed void ONLY when the counter agrees, and "N steps executed earlier — details aged out; recall can retrieve them" when acts happened but their receipts left the window. Test pins all three (tiny ring flooded by facts until the receipt ages out). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona): resume-visibility — bootstrap publishes typed Busy availability for held claims Joel 2026-07-13, post-reboot observation: the team resumed CORRECTLY — woke, restored their volatile minds, saw nothing addressed to them, and yielded per their adaptive cadence, exactly what they were asked to do — but from the outside that was indistinguishable from a stall, because a persona's state has no surface other than speech. A reporting gap, not a behavior gap; the fix must not make them chattier. Status is a PROJECTION, not a message. Bootstrap now ends by reading this peer's work-roster claims and publishing one typed AgentAvailabilityReported (Busy, note "resumed — holding: <cards>", 15 min TTL) per held repo — the channel positron/roster sources already project and work_queue_status already displays. The board shows "back and still on card X" with zero chat lines. WARN-and-continue like the identity-card publish: a persona whose availability didn't post is degraded-visible, never blocked from living. No claims → nothing to announce (a quiet Ready needs per-room repo resolution — later slice, with idle/busy transitions from the service loop). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): laptop-lid contract — interruption is perceivable, cut-off work named + safe to repeat Joel 2026-07-13: a core restart should be like closing a laptop — reopen, see exactly what didn't finish, redo it in one motion. The volatile tier restored her MEMORY but the interruption itself was invisible: a dispatched command killed mid-flight was indistinguishable from a finished one, so she could either trust work that never happened or re-do work that did. VolatileSnapshot gains saved_at_ms (gap rendering; 0-default on legacy snapshots → no fabricated gap) and interrupted_dispatches — the LABELS (never the dead handles — restoring those would fabricate in-flight work) of dispatched commands still Running at save time. restore() appends a [resumed] fact as the NEWEST window entry: how long the lid was closed, and "cut off mid-flight and NOT completed: <labels> — safe to repeat if still wanted", or "nothing was in flight" plainly. A fact, never an instruction — she decides whether the cut-off work still matters. Round-trip test extended: running dispatch label survives the trip, [resumed] renders newest with the safe-to-repeat marker, quiet path says so plainly, legacy snapshots never guess a gap, counter still resumes past restored receipts. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * chore(deps): bump airc pin 70c6d55 → f41d786 — board honesty + cache tmp-race fixes land airc PR #1286 (merged to canary): `airc work board` and its lane/ workspace siblings read the COMPLETE cached projection instead of a recent-event window that chat traffic empties (continuum #154), and WorkBoardCache tmp files are per-attempt so the core's concurrent per-persona board reads stop racing each other's snapshot renames (the paired ENOENT lines in the core log). cargo check green against the new pin; deploys with the next core rebuild. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(cognition): pin the #146 starvation mechanism — tip-advance + grounding window evicts low-frequency speakers Blind-room incident #3 root cause, demonstrated: every engagement (ignore/skip/respond alike) advances the channel bookmark to the TIP, and the digest keeps only DEFAULT_GROUNDING=5 already-read elements. A low-frequency speaker (the operator) posting into a high-velocity room is read-without-necessarily-rendering on the next tick, then permanently displaced from the grounding window once 5 newer peer messages land — four chatty personas produce that in seconds. Verified live: operator messages present in `airc inbox` and `airc events list` (lamports interleaved, no epoch split, roster-present via join heartbeats) yet absent from every persona prompt for hours. The test walks the exact sequence and asserts the eviction, so the fix — attended ≠ fetched (advance the bookmark only past messages that actually RENDERED into a prompt), or velocity-aware grounding — has a red/green target: flip the final assertion when it lands. Exonerated along the way (all by direct probe): CLI publish routing, daemon fanout (airc listen control), daemon retention/reads, digest author filtering (none), ChannelElement text extraction, lamport epochs, roster presence. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): breadth over verbatim depth — the 3-message perception window becomes a many-turn window (#128/#146 fix, lever 1) Measured live 2026-07-13: a persona's prompt held THREE chat messages total in a busy four-persona room — her entire perceivable world. The airc packer kept WHOLE messages newest-first, so a small budget filled with 2-3 verbose essays; any low-frequency speaker (the operator) was displaced within seconds, producing the blind-room incidents, the post-reboot drift, and the stalled work cards. A conversation is legible from turn HEADS; it is not legible from two verbatim essays. pack_digest now charges each turn at most a per-turn cap (budget/8, clamped 48..256 — a budget fraction, never a hardcoded model tier) and head-trims long turns with an explicit "(…N-token message trimmed)" marker; the NEWEST turn stays verbatim up to the whole budget (it is what she is responding to). head_to_tokens joins the canonical token_budget module as the head-keep sibling of tail_to_tokens (head = right shape for a message; tail = right shape for a window). Test pins the exact live failure: 6 long turns + 400-token budget → all 6 delivered (oldest OPERATOR message survives, trimmed; newest verbatim; budget honored). The old packer delivered 3 and the operator message was gone. Remaining #128 levers: airc floor vs engram split, #139 slot accounting upstream. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(campaign): flywheel step 1 closed — first autonomous team-delivered program output, receipt verbatim Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(tools): code/list recovers a glob into a listing; work/claim rescues mistyped UUIDs Two persona-tool ergonomic defects, each mined from 48h of live prompt-captures across the four resident personas (the "tool coursework" signal — every act they attempt is logged with its result). code/list — 38% live fail, every failure the same shape: a model trained on SWE-agent scaffolds reflexively reaches for list_files("**/*.rs"), a recursive GLOB where code/list wants one directory. list_dir rightly rejected it, but the bare NotFound taught nothing and the model retried the same glob forever. Now: when the path IS a glob, resolve it via code/glob and project the matches back as a listing — honest (they asked to "list" these files, they get them), widens the surface with no new verb. Detection reuses the existing looks_like_file_glob. work/claim — 28% live fail: the model corrupts a 32-char UUID by adding/dropping ONE character mid-string (d7cfe47e0-8e39-… 9-char first group; a 33-hex variant), and the clean parser rejected the near-miss outright. The short-id resolver only fired for clean prefixes under 32 chars. Now the id-normalization decision is a pure, unit-testable card_id_lookup(): clean UUID → Full; mistyped-length near-UUID → rescue via its intact leading-8 short id (the board's displayed width); <4 hex → Invalid (fails loud with the real parse error). The leading short id survives a middle corruption, so the reflexive claim resolves. Both paths pinned by a regression test in the existing module test mods. Tasks #160, #161. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): workspace-map roots at the persona's OWN citizen layer, not the core cwd The workspace-map grounding source (the fix for the `src/**/*.rs`-matches-nothing glass-box) was rooting at std::env::current_dir() — the CORE's cwd — while a persona's HANDS root at their citizen layer (~/.continuum/citizens/peers/<peer>/ workspace, a CoW clone). So the map taught a root the persona could never cd to, and it never reflected files the persona itself created in its own layer. Live capture confirmed: the map claimed "rooted at /Users/joel/Development/continuum" while the tools acted elsewhere. This is the #49 swap the module header always anticipated ("swaps to the leased root when #49 lands"), and it's doable now because the citizen layer already exists. New CitizenLayerWorkspaceLayoutReader resolves the persona's own layer path (read-only — no CoW provisioning, that's the hands' job on first write) and lists it; unprovisioned → falls back to the shared base cwd, whose top-level layout is identical, so grounding stays truthful and never empty. Extracted a pure citizen_layer_path() from ensure_citizen_layer for the read-only resolve. Now the map's root == the tools' root, and it updates as the persona shapes its workspace — orientation matches reality instead of describing a tree the persona can't touch. Pinned by a reader fallback test. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(tools): first universal AI-tool conformance invariant — every AI-facing command must be self-describing Joel's directive (2026-07-13): stop fixing tools one at a time. Make the invariant part of the tool BASE so "a tool with xyz problem can't exist" — every tool inherits it and must comply; later, require the tools to work for AIs in CI. The tool-defect ledger (silent no-op #159, glob-in-path #160, corrupted-id #161) is one class: a model reaching for a tool it couldn't correctly read or call. My #160/#161 were point fixes — the outlier-A proof that the invariant is right. This is the first LIFT of that invariant to the whole registry: a conformance test over command_registry() asserting every AiSafe command is self-describing (a non-trivial, model-usable DESCRIPTION). A tool a model can't read WILL be mis-called; this makes an unreadable AI tool fail the build, so it can't be merged, so it can't exist. Static seed. The behavioral invariants (fuzzy-id resolution, glob tolerance, fail-loud-with-suggestion — the #159/#160/#161 class made universal) attach next as per-tool exams the generator scaffolds and a runner executes here and in CI. See task #163 for the full harness + generator-hook + CI-gate design. Passes clean across the current registry — every live AI tool already complies. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(id): shared short-form UUID resolver — work/* delegates, persona/instances/get gains it (#164 batch 1) Joel: "short form uuids ought to work too" + "fix a few at a time." Lifted the prefix/near-miss id logic out of work.rs (the proven outlier) into ONE shared primitive crate::id_resolve, then delegated the first consumers to it. id_resolve::normalize(s) classifies a raw id string: clean UUID → Full; a mistyped-length near-UUID (the model's add/drop-one-char corruption) or a bare short form → Prefix on the intact leading-8; junk → Invalid. id_resolve::resolve(s, candidates, label) expands a prefix to the UNIQUE candidate, failing loud (naming the id kind) on zero/ambiguous. The candidate set is the ONLY per-type knowledge — so any id-taking verb inherits the tolerance by supplying its candidates. - work/claim|release|state|heartbeat: resolve_card_id now delegates to id_resolve (candidates = live board card ids); deleted the private card_id_lookup + parse_card_id. Behavior id…
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
…iving defect list) The persona's hands are a moat only if they RELIABLY work — but the way we've learned which tools an AI can't use has been a hand-authored defect list mined from live captures, and it DRIFTS (this session found #160/#161 already fixed but still open, #159 largely handled). A hand-maintained list of "tools an AI can't use" is exactly what a machine should compute. This is the machine's half: `audit_tool_conformance()` enumerates the whole AiSafe surface (the set a persona reaches by name via commands/catalog + commands/help — native ⊂ AiSafe) and checks each against the AI-usability floor: - name-emittable: a model can reliably type it (lowercase a-z0-9 / _ -) - description-present: a real description (≥12 chars) so she knows WHEN to use it - params-learnable: schema is Null (no params) or an object commands/help can render into a fill-in-the-blanks call The gate asserts the audit is empty AND non-vacuous (≥40 tools examined, so a broken registry filter can't make it silently green). It's a computation over the live registry, not a checked-in list — so it can't drift: a NEW tool that ships undiscoverable or unlearnable fails HERE with the exact tool + fix. The current surface already clears the static floor (the ///-doc→DESCRIPTION convention + generators enforce it), so this lands green as a regression gate + the scaffold. Next slice: behavioral exams (dispatch garbage → fail LOUD; id params accept short forms per #164) — those need a live executor, so they layer on this static floor. 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
… short-id, real hands) The DISPATCH half of the tool AI-usability harness. Slice 1 proved a tool is discoverable + learnable (static); this proves it BEHAVES when a model fumbles the call — over PRODUCTION commands through the PRODUCTION persona-hands path (`CommandToolExecutor::for_persona`), safely: `ModuleRegistry::new()` auto-seeds every stateless command object, so the exam runs the real self-contained surface with no module wiring, no live state, no daemon, no side effects. Three exams, all green: - unknown_tool_name_fails_loud_never_silent (#159): write_file / list_files / claim_task / totally-made-up all come back as ERROR results naming what she tried and pointing at discovery — never a silent no-op she'd narrate as a fake receipt. Confirms the snake-case vocabulary gap is handled on the native path (the narration path is covered by act_observe's [unfulfilled] perception fact). - required_args_missing_fails_loud_across_the_stateless_surface: swept over EVERY stateless AiSafe command that declares required params — each rejects `{}` (fails at the params boundary before the body runs, so it's a safe dispatch). A living exam that grows with the surface; non-vacuity asserted. - persona_verb_resolves_a_short_id_end_to_end (#164): persona/identity/get resolves the 8-char short id a persona is shown, through real hands + real command — the universal id-resolution invariant, not just the id_resolve unit. Placed as a nested mod inside command_executor.rs's existing test mod per the test doctrine. #163 static gate (Slice 1) + this behavioral suite (Slice 2) are the harness; Slice 3 surfaces it as a `tools/conformance` command. 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
…usability audit on demand
The static conformance audit was only a CI gate; this exposes it as a first-class
command so a persona (debugging why a hand didn't work) or an operator (a
pre-merge check) can run the SAME computation the gate runs. Reads
`command_registry()` (the ONE source) via `sdk_codegen::conformance` and reports
every AiSafe tool that fails the floor + how to fix it. Optional `filter` narrows
to a tool-name substring.
Zero-ceremony stateless AiSafe command in the existing `commands/tool/` family
(beside tool/output) — it dogfoods the discovery surface it audits, so it appears
in its own conformant report.
Live-validated: `cu tool/conformance` → {conformant: true, examined: 122,
violations: []}; `--filter=persona/` narrows cleanly. The command and the CI gate
read the same audit, so they can never disagree.
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
…whole surface + fixes 6 gaps The behavioral dispatch exam (Slice 2) can only cheaply reach the stateless surface; the full-module executor is fragile integration territory (start_server wires ~40 modules inline with GPU/config/socket deps, no reusable factory). So this slice extends the STATIC harness to a property that predicts behavior for EVERY command — dep-holding included, since the params schema is available for all: every REQUIRED param must carry a description. An undocumented required arg is the fumble that wastes a turn — the persona has to GUESS what to put there, gets it wrong, retries. The new `required-arg- documented` rule flags exactly that (conservatively: only inline object props, skipping $ref/allOf nested types it can't shallow-resolve). Run diagnostically, it found 6 real gaps across 5 tools a persona can reach by name but couldn't fill in — now fixed with `///` docs: - airc/realtime-replay `roomId` - mcp/search-tools `query` - mcp/tool-help `tool` - persona/rag-inspect `persona` - search/vector `queryVector`, `corpusVectors` Gate green again (audit + tool/conformance, 6 tests). This is the "reach past the stateless surface" win via the static path; the true full-dispatch behavioral exam remains a follow-up gated on a reusable test-registry factory (task #155). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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 eslint from 9.31.0 to 9.39.1.
Release notes
Sourced from eslint's releases.
... (truncated)
Commits
e2772819.39.14cdf397Build: changelog update for 9.39.192db329chore: update@eslint/jsversion to 9.39.1 (#20284)c7ebefcchore: package.json update for@eslint/jsrelease650753efix: Only pass node to JS lang visitor methods (#20283)51b51f4docs: add a section on when to use extends vs cascading (#20268)61778f6chore: update eslint-config-eslint dependency@eslint/jsto ^9.39.0 (#20275)d9ca2fcci: Add rangeStrategy to eslint group in renovate config (#20266)009e507test: fix version tests for ESLint v10 (#20274)b44d426docs: Update READMEDependabot 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)