Repository navigation
Gap analysis: session final update - #424
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the alpha gap analysis “single source of truth” to reflect recent investigation/progress on key tracking issues (#363, #399) and to update Phase 1 completion in the issue map.
Changes:
- Mark issue #363 as done based on an investigation outcome (switch statements assessed).
- Mark issue #399 as partial with a referenced PR for inbox priority changes.
- Update the Phase 1 issue map to reflect additional completed work (now 3 done).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| |---|-------|--------|------| | ||
| | [#333](https://github.com/CambrianTech/continuum/issues/333) | **Type safety — eliminate 831 `any` casts** | DONE (PR #408, #414) | 831 → 0. Next: ESLint no-explicit-any as error. | | ||
| | [#363](https://github.com/CambrianTech/continuum/issues/363) | **Eliminate hardcoded switch statements** | TODO | 72+ sites with type switch statements violating modular architecture. | | ||
| | [#363](https://github.com/CambrianTech/continuum/issues/363) | **Eliminate hardcoded switch statements** | DONE (investigated) | 150 switches are legitimate discriminated unions. Command name switches already eliminated by dynamic discovery. | |
There was a problem hiding this comment.
The status/value here is ambiguous: the issue is titled “Eliminate hardcoded switch statements”, but the row says “DONE (investigated)” and then asserts they’re “legitimate discriminated unions”. To keep this doc as a reliable tracker, consider using a consistent status (e.g. INVESTIGATED/WONTFIX) and linking to the issue comment/PR where the audit conclusion (including the updated switch count) is recorded.
| | [#363](https://github.com/CambrianTech/continuum/issues/363) | **Eliminate hardcoded switch statements** | DONE (investigated) | 150 switches are legitimate discriminated unions. Command name switches already eliminated by dynamic discovery. | | |
| | [#363](https://github.com/CambrianTech/continuum/issues/363) | **Eliminate hardcoded switch statements** | INVESTIGATED/WONTFIX | 150 switches are legitimate discriminated unions. Command name switches already eliminated by dynamic discovery. See issue #363 for audit details and updated switch counts. | |
| |-------|--------|-------| | ||
| | **0: Critical Bugs** | ~~#376~~, ~~#335~~, ~~#317~~, #385, #381, #373 | 3 remaining | | ||
| | **1: Arch Integrity** | ~~#333~~, #363, #362, #356, #355, #353, #351, #361, #354, #352, #379, #334, #360, #412 | 14 (1 done) | | ||
| | **1: Arch Integrity** | ~~#333~~, ~~#363~~, #362, #356, #355, #353, #351, #361, #354, #352, #379, #334, #360, ~~#412~~ | 14 (3 done) | |
There was a problem hiding this comment.
In the issue map, #363 is struck through (implying closed/done). If the resolution was “investigated” rather than an actual code change, it may be clearer to only strike issues that are closed on GitHub and otherwise leave them unstruck (or annotate as WONTFIX/INVESTIGATED) so the phase counts accurately reflect open work.
| | **1: Arch Integrity** | ~~#333~~, ~~#363~~, #362, #356, #355, #353, #351, #361, #354, #352, #379, #334, #360, ~~#412~~ | 14 (3 done) | | |
| | **1: Arch Integrity** | ~~#333~~, #363, #362, #356, #355, #353, #351, #361, #354, #352, #379, #334, #360, ~~#412~~ | 14 (2 done) | |
…p the forever-untracked binding (#424) (#2295) InfraUnavailable derives TS and is a field of the exported result struct, so ts-rs emitted bindings/InfraUnavailable.ts on EVERY build — but with no #[ts(export)] the file was an untracked orphan regenerating forever (it has sat in git status since the struct landed). Same failure shape EvalTask's own comment records ('a derive without export... silently rotted'); same fix: export explicitly and track the binding as a sibling of bindings/EvalTask.ts. Validated: cargo check -p continuum-core --features metal,accelerate clean. Audit provenance: card #424, certain-tier finding (b). Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
…— root work-*/ + nested .airc/identity.key (#2296) The 2026-08-14 audit found an escaped agent workspace at the repo root (work-team-wordstats/) carrying a live .airc/identity.key. Manual quarantine was required because git offered no guard: the root-anchored `.airc/*` rule does not cover scopes minted inside subdirectories, and only /core/work-*/ (not root-level work-*/) was ignored. Two rules close the class, both positive-controlled with git check-ignore: - /work-*/ root-level agent/persona scratch can never be tracked - **/.airc/identity.key a nested scope's credential is untrackable anywhere The root .airc whitelist (POLICY.md, manifest.json) is unaffected. The substrate half is already fixed in-tree: ensure_engine roots persona hands at the citizen layer and ensure_shell follows the engine root (both carry their own regression comments). The quarantined dirs are deleted and the key destroyed per owner authorization; enrolled peers were tier=untrusted, so no live trust referenced it. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
…elegation, ONE reservation derivation, canonical ts-rs root, 255-file quarantine (#2308) * fix(web+tools): feed status as DOM feedback + event-based real-time screenshots (#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 * fix(cognition): model resolution + provider locality delegate to THE 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 * fix(bindings): last 15 ts-rs exports land at the canonical protocol root (#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 * refactor(persona): ONE window-scaled reservation derivation (#424 fixes 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 * chore(quarantine): archive 255 orphaned Node-era files into legacy/quarantine (#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 * chore(bindings): regenerated GenomeTeachParams import — sibling path, 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 --------- Co-authored-by: Claude Fable 5 <[email protected]>
Doc-only: mark #363 done (switches investigated), #399 partial (priority boosted), Phase 1 3/14 done.