Repository navigation
docs: split alpha rust workstreams - #1084
Merged
Merged
Conversation
joelteply
force-pushed
the
docs/alpha-rust-workstreams
branch
from
May 11, 2026 20:16
7b72516 to
1fabfe3
Compare
This was referenced May 11, 2026
Closed
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]>
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.
Summary
Validation
Notes