Skip to content

docs: split alpha rust workstreams - #1084

Merged
joelteply merged 1 commit into
canaryfrom
docs/alpha-rust-workstreams
May 11, 2026
Merged

joelteply merged 1 commit into
canaryfrom
docs/alpha-rust-workstreams

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • Adds an Immediate Canary Work Packages section to the Alpha Gap Analysis.
  • Splits the rust-first alpha recovery into lanes for model registry/admission, model seeding/GPU profiles, VDD telemetry, CBAR persona runtime, pressure broker/paging, TS cognition deletion ratchet, and PR hygiene.
  • Records current AIRC claims and open owner gaps so agents coordinate through the same issue/doc surface.

Validation

  • git diff --check
  • precommit hook: TypeScript build PASS, browser ping PASS
  • pre-push hook: TypeScript PASS, ESLint baseline PASS; Rust/Docker skipped because docs-only

Notes

@joelteply
joelteply force-pushed the docs/alpha-rust-workstreams branch from 7b72516 to 1fabfe3 Compare May 11, 2026 20:16
@joelteply
joelteply merged commit 2ca4c2d into canary May 11, 2026
2 checks passed
@joelteply
joelteply deleted the docs/alpha-rust-workstreams branch May 11, 2026 20:16
joelteply added a commit that referenced this pull request May 11, 2026
…e F) (#1091)

Per PR #1084 Lane F (TS Cognition Deletion Ratchet) — enforces the
Rust-first alpha contract (PR #1070, ALPHA-GAP-ANALYSIS.md "Rust core
owns behavior") via a CI gate that fails any PR which grows the total
TypeScript line count under src/system/user/server/. New cognition
logic belongs in Rust (workers/continuum-core/src/{persona,cognition}/).

4 files, all additive:

1. scripts/ratchets/ts-persona-cognition-baseline.json — JSON with
   total_lines: 27160 (anchored at canary d2dc3a8). Tracks the
   high-water mark; ratchet only goes DOWN.

2. scripts/ratchets/check-ts-persona-cognition.sh — bash + python3
   only (no node_modules / cargo). Counts current LOC, compares to
   baseline, exits non-zero on growth with actionable failure text
   naming the Rust target paths. Modes:
     default               → check + report; exit 0 on flat/shrink, 1 on growth
     --update-baseline     → rewrite baseline to current count (use after legitimate shrinks)
     --verbose             → print per-file LOC table

3. .github/workflows/ts-persona-cognition-ratchet.yml — runs on PRs
   to canary/main that touch the surface OR ratchet config. Fast
   (~10s, shell + python only), independent gate (doesn't block on
   TS compile or Rust build).

4. docs/architecture/TS-PERSONA-COGNITION-RATCHET.md — operator docs:
   what's measured, why single-total not per-file, how to lower the
   baseline, what CI does, local pre-PR check, out-of-scope followups.

Why single total (not per-file): refactors that move code between
files within the surface are common and shouldn't trip the gate.
Surface total is what matters. A PR can grow one file by 200 lines as
long as it deletes 200+ elsewhere in the surface.

Validation:
- Default run (clean canary tree): "✓ TS persona-cognition ratchet
  held: 27160 lines (baseline 27160, no change)" — exit 0
- Intentional fail (+1 line appended to UserEntityCache.ts):
  "❌ TS persona-cognition RATCHET FAILED ━━ Baseline: 27160 lines /
  Current : 27161 lines / Delta   : +1 (growth)" — exit 1, full
  actionable text including Rust target paths
- After restore: pass again, baseline preserved

Out of scope (separate followups, named in the docs):
- Forbidden-strings check (no new "fallback"/anti-pattern strings)
- Verb-shape detection (heuristic, not gross-case-catching)
- Pre-commit hook integration (after the CI-only ratchet has been
  live ~1 week)

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
joelteply pushed a commit to RebelTechPro/continuum that referenced this pull request May 13, 2026
…F PR-2)

Per-pattern ratchet on src/system/user/server/, mirroring PR CambrianTech#1091's
LOC ratchet shape. Tracks three anti-patterns under the persona surface:

  - fallback_mention (case-insensitive, baseline 83): Joel 2026-04-22 —
    "fallbacks have ruined this project ... they are ILLEGAL." The WORD
    count proxies conceptual presence; comments saying "no fallback
    here" count too.
  - direct_adapter_instantiation (baseline 12): matches `new <Name>Adapter(`.
    TS surface should request providers via the ModelRequirement →
    ResolvedModel resolver shipped in CambrianTech#1066/CambrianTech#1074, not instantiate
    adapters directly.
  - direct_api_key_env_read (baseline 0): matches `process.env.*API_KEY`.
    Cloud key lookup belongs in the Rust provider registry per Codex's
    CambrianTech#1077 boundary. Locks 0 in.

Per-pattern monotonic-decrease (any pattern growing fails CI; shrinkage
allowed and surfaces a hint to --update-baseline post-merge). Same
3-mode shape as PR CambrianTech#1091: default check / --update-baseline / --verbose.

Validated locally: clean tree passes (3 patterns hold), intentional
+2 fallback growth fails with named pattern + delta + actionable Rust
target paths.

Lane F (PR CambrianTech#1084 alpha workstreams). Companion to CambrianTech#1091 — extends
docs/architecture/TS-PERSONA-COGNITION-RATCHET.md with the new gate.
Independent CI workflow (~5s, shell + python only).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request May 29, 2026
…1ab14e (#1462)

Airc PR #1084 (Phase 1.C — chat substrate throughput 281→498 msg/s)
merged. I had committed to peer that I'd start the continuum-side
dual-write shim deletion against that boundary.

After surveying: the 1069-LOC TS shim (system/airc-chat/) is just
the write side. ChatMessageEntity is read by PersonaUser (catch-up),
TrainingDaemon, ToolRegistry, RoomActivityBatch, and generated
bindings. Deleting only the writer leaves readers reading silently-
stale data — exactly the silent-fallback pattern the doctrine
forbids.

The real migration is gated on airc card e51ab14e (machine-singular
daemon), not on Phase 1.C. Without machine-singular, multi-persona
live delivery doesn't work across process scopes — the 15-persona
general-room scenario looks like turn-based correspondence instead
of a live room.

This MIGRATION-LOG entry documents:
- the dual-write architecture today
- every ChatMessageEntity reader with its migration target
- the e51ab14e dependency reasoning
- the 6-step sequencing when e51ab14e lands
- what is NOT the shim (Rust airc_admission.rs is memory admission,
  not dual-write; stays)
- pre-work I can do without blockers

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
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