Skip to content

sync(canary): #436 event-based capture + #424 punch list — registry delegation, ONE reservation derivation, canonical ts-rs root, 255-file quarantine - #2308

Merged
joelteply merged 6 commits into
canaryfrom
sync/424-punch-list-and-quarantine
Aug 15, 2026
Merged

joelteply merged 6 commits into
canaryfrom
sync/424-punch-list-and-quarantine

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Six validated commits from the 2026-08-14 session:

  • 4bc1c5f — Cost/metrics widgets: auto-adjust time segments for visual clarity #436: feed-status DOM stamp + event-based real-time shot.mjs (deletes the --virtual-time-budget lie that faked a broken desktop)
  • 09f77c9 — Gap analysis: session final update #424 fixes 1-2: generate_recipe model resolution delegates to the model registry (the hand-rolled switch had already drifted on openai+groq); is_local_provider resolves ProviderKind from the registry instead of sniffing "qwen" in model names. Both with regression tests.
  • ff96bf6 — last 15 ts-rs exports re-pointed to repo-root protocol/typescript/ (memory ×11, cognition/EvalTask+InfraUnavailable, capacity/PagerCaptureEvent, serving/ServingSnapshot). All 1196 export tests green; legacy bindings/ regeneration verifiably stopped.
  • 18c7314 — Gap analysis: session final update #424 fixes 3-4: the byte-identical LCD reservation clamp deduped into ReservedTokens::scaled_for_window (llm_deliberation_faculty's uncapped ceiling deliberately NOT unified — different semantics, documented); rag_inspect's flat drifted defaults collapsed into one for_window derivation with DEFAULT_INSPECT_WINDOW documented as diagnostic-only.
  • 96c97ca — Joel's courage mandate: 255 orphaned Node-era files archived to legacy/quarantine/ (tools/generator, core/protocol, shared/generated, crate bindings/, archive-worker crate ex-workspace) — every move gated on a zero-live-reference grep, documented in the quarantine README.
  • fe7e57e — regenerated GenomeTeachParams import (sibling path).

Validated: targeted regression tests + rag_inspect suite (39) + export_bindings (1196) + cargo check all green locally (metal,accelerate).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 6 commits August 14, 2026 20:51
…creenshots (#436 retraction)

THE FINDING (#436): the web desktop was NEVER broken. Tonight's every
"degraded desktop" capture came from shot.mjs running Chrome with
--virtual-time-budget, which fast-forwards PAGE time ahead of real I/O:
the app's 5s WS-handshake budget elapsed in accelerated virtual time
before the real-world socket (real milliseconds) could open, so
StateConnection killed its own socket — Chrome's netlog shows the WS
request CANCELLED with zero bytes sent. Against the same core, node +
curl (all header shapes, split writes, concurrent sockets) handshake in
milliseconds and the real-time CDP capture renders the full live
three-panel app. A screenshot tool must never bend the page's clock.

Joel called both halves before the netlog proved them: "whatever you use
to get screenshots is too quick and startup isn't event based" and the
connection layer must be "all feedback but safe feedback".

- apps/web/src/index.ts: publish the feed status where feedback belongs —
  one DOM attribute (`<html data-feed-status>`), stamped 'booting'
  synchronously before any await and updated on every StateConnection
  status transition. E2E health = a real State frame ('live'), never
  socket existence — the client-side twin of #280. No console spam.
- scripts/shot.mjs: ONE real-time CDP flow for desktop + mobile. Capture
  fires on the page's own readiness event (data-feed-status live/cached;
  plain pages fall back to readyState) with SHOT_BUDGET_MS only as a cap;
  a not-ready expiry still captures but says so and exits 2. The
  virtual-time path is gone.

Validated live: typecheck clean; capture "ready in 339ms" against the
running core with the full app rendered.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…model registry (#424 fixes 1-2)

Two Opus-week hardcodes drained into the registry, per the compression
principle (one logical decision, one place):

1. generate_recipe/orchestrator.rs re-owned a 7-arm per-provider default-model
   switch whose copies had ALREADY drifted from the registry (openai, groq).
   Now resolve_model_id delegates to registry_bridge::default_model_for_provider;
   an unknown provider fails LOUD instead of silently falling back to anthropic.

2. turn_batch.rs is_local_provider sniffed model NAMES (starts_with("qwen") →
   "local") — a vendor-name guess that misclassifies any qwen served by a cloud
   provider. Locality now resolves from ProviderKind on the registry row (by
   provider, then by the model's owning provider), via try_global() so bare unit
   tests fall through to the declared legacy arms ("local"/"dmr"/continuum-ai
   namespace) instead of panicking. #73 retires those arms.

Both carry regression tests (// regression for #424) in the files' existing
test mods.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…oot (#424/#80/#247)

Every #[ts(export)] in continuum-core now names an export_to under repo-root
protocol/typescript/ — no more emissions into the legacy crate bindings/ dir
or the Node-era shared/generated/:

- memory/types.rs: 11 bare exports → protocol/typescript/memory/
- cognition/eval.rs: EvalTask + InfraUnavailable → protocol/typescript/cognition/
  (GenomeTeachParams/MinedTask/RedactMemoryParams now import a SIBLING —
  their generated import previously reached back into core/continuum-core/bindings/)
- capacity/pager_capture.rs: PagerCaptureEvent → protocol/typescript/capacity/
- inference/llama_server.rs: ServingSnapshot → protocol/typescript/serving/

Validated: all 1196 export_bindings tests green; old bindings/ outputs no
longer regenerate (stale mtimes); zero TS consumers of the retired paths.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…es 3-4)

The byte-identical LCD clamp (system 10% [128,512] / completion 25% [256,4000]
+ headroom floor) was hand-copied in unified.rs compose_for_turn and
rag_inspect.rs for_persona. It now lives ONCE as
ReservedTokens::scaled_for_window + headroom_within in rag_budget.rs, doctrine
on the constructor, regression test pinning the shape at 2048/32k/degenerate
windows.

NOT unified, on purpose: llm_deliberation_faculty::completion_budget_for is
the GENERATION ceiling with the 4000 cap deliberately removed (Joel 2026-07-13
— stop choking context). Different semantics; the constructor doc records the
distinction and flags the reservation ceiling as an open budgeting question.

Fix 4: rag_inspect defaults_for no longer hand-copies a flat drifted shape
(system 400 / completion 4000 / airc_max 20000). Both constructors share one
for_window derivation; the assumed 32_768 became DEFAULT_INSPECT_WINDOW —
documented diagnostic-only, caller-overridable, never on a live-turn path
(live turns derive from profile.context_length, #46/#50). TODO noted:
PersonaResolution should carry the live profile so the inspect command stops
needing an assumed window at all.

Validated: rag_inspect suite 39/39 green + new reserved_tokens test.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…arantine (#424)

Joel's mandate 2026-08-14: 'be courageous with removal of fallbacks,
leftovers, orphans of files functions and classes, archiving these as you go.'
Archive, never delete — full history preserved, README documents the
zero-live-reference check that gated each move:

- tools/generator/        → legacy/quarantine/tools-generator/      (77 files,
  Node-era codegen suite, zero inbound imports from the live tree)
- core/protocol/          → legacy/quarantine/core-protocol/        (diverged
  dead copy of the protocol root; canonical is repo-root protocol/typescript/)
- shared/generated/       → legacy/quarantine/shared-generated/     (Node-era
  ts-rs output dir; last two live emitters re-pointed in the previous commit)
- core/continuum-core/bindings/ → legacy/quarantine/continuum-core-bindings/
  (48 generated files; regeneration stopped once the last bare exports gained
  canonical export_to paths — verified via mtimes across a full export run)
- core/archive/           → legacy/quarantine/archive-worker/       (bin crate
  whose only spawn wiring, core/workers-config.json, names
  workers/target/release/ — a directory that does not exist; removed from
  workspace members, cargo check clean)

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… not legacy bindings/ (#424 tail)

ts-rs rewrote the EvalTask import from ../../../core/continuum-core/bindings/
to ../cognition/EvalTask once EvalTask's export re-pointed to the protocol
root. Belongs with the previous re-point commit; caught in status after.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 55b4527 into canary Aug 15, 2026
5 checks passed
@joelteply
joelteply deleted the sync/424-punch-list-and-quarantine branch August 15, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant