Repository navigation
Remove inspiration references from README - #227
Merged
Merged
Conversation
Removed inspiration section from README.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the "Inspired by:" section from the README's acknowledgments, streamlining the documentation by removing references to H&R Block XML meta-language system, Salesforce, ServiceNow, Workday, and the open source community.
- Cleans up the acknowledgments section by removing the inspiration references
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
joelteply
added a commit
that referenced
this pull request
Jun 9, 2026
… round-trip (task #225, Stage B PR 1/3) (#1570) First migration in the Stage B push Joel asked for: "port commands next, as we clean them up with our idealism." `sentinel/escalate` was the smallest, most self-contained call site that Stage A made visible — pure substrate plumbing (no external integrations), two call sites in one module, zero TS-side callers, easy to validate. ## What this kills - `src/commands/sentinel/escalate/` (whole command dir — receiver that only Rust ever called) - `src/system/sentinel/SentinelEscalationService.ts` (handler service) - The re-export in `src/system/sentinel/index.ts` - The `SENTINEL_ESCALATE` constant in `generated-command-constants.ts` - The two entries in `src/server/generated.ts` + `src/browser/generated.ts` After this, no TS source references the escalate command. The substrate has one fewer round-trip on every sentinel completion. ## What replaces it `core/continuum-core/src/modules/sentinel/escalation.rs` — a substrate-pure dispatcher with the same three-stage pipeline the TS service had, but compressed: 1. **Persist** the `SentinelExecutionResult` into the `sentinels` entity via `data/list` + `data/update`. 2. **Escalate** an `InboxTaskRecord` into the `tasks` collection via `data/create`. The TS version branched on `getPersonaInbox(...)` for online vs offline personas; the Rust version unifies on `data/create` because `ChannelModule::tick` already polls the `tasks` collection and routes pending tasks into the live `PersonaInbox`. **One path, not two.** 3. **Store** the terminal event as a `SentinelMemoryRecord` in the persona's `memories` collection. Each downstream collection has its own private struct (`SentinelExecutionResult`, `InboxTaskRecord`, `SentinelMemoryRecord`) with `#[serde(rename_all = "camelCase")]`, so the field set is enforced at the type level. Per Joel's mid-flight reminder on the escalate work ("use good structs, well formulated"): no `serde_json::json!` blobs at the call site, no `Value` pass-through. Everything that crosses a serialization boundary is a typed record. ## Typed escalation primitives Promoted the `SentinelEscalation.escalation_rules` field from `Option<Value>` (TS pass-through) to `Option<Vec<EscalationRule>>` now that Rust owns the schema. The wire enums (`EscalationCondition` / `EscalationAction` / `EscalationPriority`) get ts-rs exports so the TS side still has a typed view. New helper `EscalationPriority::inbox_priority()` mirrors the TS `PRIORITY_MAP` literal — covered by a unit test so a future rename can't silently drift. ## New typed event surface `SentinelEscalationEvent` bundles the terminal-status fields the two completion paths already had locally (`handle`, status, duration, error, escalation metadata). The two call sites in `SentinelModule` now build the event from in-process Rust values and call `escalation::dispatch(&executor, event).await` instead of `executor.execute_ts_json("sentinel/escalate", json!(...))`. `SentinelTerminalStatus` encodes the Completed / Failed / Cancelled trichotomy with named helpers for the slug-to-string mappings (inbox `taskType`, matched `EscalationCondition`, memory importance) — so the slug taxonomy lives in one place instead of duplicated TS ternaries. ## Substrate-pure unification The TS service had two branches in `escalateToPersonaInbox`: - Online persona -> in-memory `inbox.enqueue(task)` - Offline persona -> `DataCreate.execute({collection: 'tasks', data: task})` The Rust dispatcher does only the second. Why: `ChannelModule::tick` already polls the `tasks` collection on every tick and routes pending tasks through the per-persona `PersonaInbox`. The channel tick IS the online/offline rendezvous. Two TS code paths become one Rust code path — the channel routing layer was already doing the work, the TS service was duplicating it. ## Verified cargo check -p continuum-core --lib --features metal,accelerate -> clean cargo test -p continuum-core --lib --features metal,accelerate modules::sentinel:: -> 138/138 cargo test -p continuum-core --lib --features metal,accelerate escalation:: -> 5/5 The 5 new escalation unit tests pin the TS-contract surface: - inbox priority scalars match the TS `PRIORITY_MAP` literal - failed + cancelled both route through the `Error` condition - task-type slugs match the TS literal set (`sentinel-complete` / `sentinel-failed` / `sentinel-escalation`) - default escalation rules include `Complete=Notify+Low` - `InboxTaskRecord` serializes to camelCase so `ChannelModule::data_to_task_queue_item` keeps parsing it ## Doctrinal alignment - `[[no-fallbacks-ever]]` — escalation is no longer a TS-bridge fallthrough; failure surfaces as a typed `String` from each stage and is logged via `tracing::warn!`. - `[[rust-is-the-core-node-is-the-shell]]` — every collection the dispatcher touches (`sentinels`, `tasks`, `memories`) is Rust-owned. The TS bridge for this command is dead. - `[[rethink-dont-port-commands-to-rust]]` — the online/offline branch in the TS version was redundant with the channel tick; the Rust port removes it. ## What's next (Stage B PRs 2 + 3) - Task #226: delete the feature-gated legacy `livekit_agent.rs` `execute_ts_json("collaboration/live/transcription")` call — pure deletion, dead surface (bridge_client is the active LiveKit path). - Task #227: migrate `genome/job-create` — channel tick's LoRA training trigger. Bigger than escalate; genome is substantial Rust-side already. Co-authored-by: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 9, 2026
#227, Stage B PR 3/3) (#1572) The channel.rs tick had a "training readiness check" block that counted unconsumed `training_data` rows per persona and, when a threshold was crossed, fired: executor.execute_ts_json( "genome/job-create", json!({ "personaId": ..., "trainingExamples": count }), ) Two structural problems made this trigger dead surface, not a real substrate behavior: ## Problem 1: the validator rejected every fire The TS `genome/job-create` command requires `personaId` + `provider` + `configuration` (with full LoRA hyperparameters: epochs, batchSize, sequenceLength, learningRate, rank, alpha, trainingFileId). The channel tick sent only `{personaId, trainingExamples}`. The validator immediately returned `error: 'provider is required'`. The fire-and-forget call site (`let _ = executor.execute_ts_json(...)`) swallowed the error. The log line "Training threshold met for {} ({} examples), triggering genome/job-create" lied — nothing got triggered. Every tick that crossed the threshold logged a fictional event. ## Problem 2: even if it had worked, it would have been the wrong ## shape for substrate doctrine The TS `genome/job-create` is a cloud-provider trigger — it instantiates an OpenAI / Fireworks / DeepSeek / Mistral / Together LoRA adapter and calls THEIR fine-tuning API. The substrate's actual training story is: - Local Candle / llama.cpp fine-tuning (no external API hop) - Teacher-persona synthesizes curated curricula in academy ([[teacher-synthesizes-in-academy-like-dreaming]]) - LoRA layers paged in/out per-persona on shared base model ([[matrix-dojo-layer-loading-as-substrate-primitive]]) - Noteworthy-flag drives both consolidation AND curriculum selection ([[noteworthy-flag-feeds-memory-AND-curriculum]]) A cloud-provider hop doesn't carry any of that semantics. The substrate-native trigger will be a typed Rust `genome/*` ServiceModule that the channel tick fires INTO directly. When that lands the new trigger inputs will be richer than "count examples >= 50" — they need teacher-readiness, hardware-availability, and noteworthy-flag signals. ## What this PR does - Deletes the entire training-check block in `ChannelModule::tick` (the `data/count` lookup + the dead `genome/job-create` call). - Removes `training_check_enabled: bool` + `training_threshold: u64` from `ChannelTickConfig` — the flags were knobs on a path that never fired. - Drops the corresponding param parsers in the `channel/tick-config` command handler. - Drops `training_check_enabled` from the `should_skip_db_tick` predicate. The TS `src/commands/genome/job-create/` command is unchanged. It's still used by browser-driven cloud-provider training flows. This PR only removes the dead Rust trigger that pretended to fire it. ## Followups - Task #228: substrate-native LoRA training trigger — when the local Candle training + teacher-synthesized-curricula design crystallizes, add a typed `genome/*` ServiceModule and a channel tick trigger that fires into it. The trigger condition will be richer than the deleted threshold check. ## Verified cargo check -p continuum-core --lib --features metal,accelerate -> clean cargo test -p continuum-core --lib --features metal,accelerate modules::channel:: -> 4/4 ## Doctrinal alignment - `[[no-fallbacks-ever]]` — the trigger was the worst kind of fallback: a fire-and-forget call to a validator that always rejected, with a log line that lied. Removed. - `[[rust-is-the-core-node-is-the-shell]]` — channel.rs no longer calls `execute_ts_json`. All channel-tick interactions are now pure Rust dispatches (`data/list`, `data/count`, `data/query`). - `[[organization-purity-as-we-migrate]]` — delete duplicates and dead paths; don't carry a flag that gates a no-op. This closes the channel.rs side of Stage B. The remaining `execute_ts_json` call sites are sentinel external integrations (`sentinel/web-research`, `sentinel/coding-agent`) and the agent loop (`ai/agent`) — each one a real external concern that warrants its own design discussion before porting. Co-authored-by: Claude Opus 4.7 <[email protected]>
Merged
4 of 5 tasks
joelteply
added a commit
that referenced
this pull request
Jun 9, 2026
…xecutor (task #219) (#1585) * fix(runtime): no-fallbacks — refuse silent TS fallthrough in CommandExecutor (task #219) Per the substrate's [[no-fallbacks-ever]] doctrine: when no Rust module owns a command, the executor previously routed silently to the TS bridge at `/tmp/jtag-command-router.sock`. In headless mode this surfaced as a confusing "Failed to connect to CommandRouterServer" error; in hybrid-host mode it silently delegated to TS, breaking the mental model that "the substrate is Rust." Both failure modes were visible after task #224 deleted GLOBAL_EXECUTOR and the rest of the TS-migration campaign (#225/#226/#227 etc.) shrunk what the bridge served. This commit kills the implicit fallthrough. After this change: 1. Interceptor chain runs first (airc, grid, future transports) — unchanged. 2. Rust module registry tries next — unchanged. 3. If no interceptor handled and no module matched: typed Err naming the missing command + the explicit escape hatch. Callers that EXPLICITLY want the TS bridge use `CommandExecutor::execute_ts` or `execute_ts_json` directly — those public methods stay live for the documented TS-only call sites (sentinel steps for web_research/command/llm/coding_agent, grid connection's unmigrated-command fallthrough, ai_provider's cloud- adapter fallthrough pending task #229). The substrate just no longer SILENTLY routes there. ## Files touched - `runtime/command_executor.rs`: - Doctrine docstring updated: "TypeScript via Unix socket" item becomes "No silent TS fallthrough" with the explicit-API escape hatch named. - `execute_inner` step 3: silent `execute_ts_command(...)` call replaced with typed Err that names the command and points at the explicit API. - Updated existing test `airc_interceptor_declines_when_no_airc_target_params` to assert the new error shape (registry miss, NOT the airc interceptor short-circuiting). - Added regression test `unknown_command_returns_typed_no_fallback_error_not_ts_attempt` that pins the contract: error must NOT mention TS socket, MUST name the missing command, MUST point at the explicit API. - Renamed `ts_bridge_failure_still_emits_completed_event` → `no_rust_module_failure_still_emits_completed_event` to reflect the new terminal-state name. Telemetry coverage of the failure path preserved. - `routing/command_handler.rs`: - Updated comment on the gate-recorded-caller test to reference [[no-fallbacks-ever]] task #219 instead of the now-dead TS-bridge fallthrough. ## Architecture-proof linkage This PR adds a **shape-1 (unit-level invariant)** proof for the "No silent TS fallthrough" clause in `docs/architecture/SUBSTRATE-DOCTRINE-ORGANIC-FLOW.md`. The matrix in `docs/architecture/PROVING-THE-DOCTRINE.md` flips this clause from 🟡 to ✅. The test is tagged with the comment `// what this catches:` per the established convention; the future `// proves: no-fallback` tag convention (introduced in the proof discipline doc) will be backfilled in a sweep PR alongside the first architecture-tests addition. ## Test plan - [x] `cargo check -p continuum-core --lib --features metal,accelerate` clean - [x] `cargo test runtime::command_executor` — 86/86 pass - [x] `cargo test routing::command_handler modules::grid` — pass - [x] Full lib suite: 4324/4325 pass; 1 unrelated flake (`routing::uri_layer::tests::no_subscriber_returns_empty_chain`, the known global tracing subscriber pollution from task #203). Confirmed passes in isolation: `cargo test no_subscriber_returns_empty_chain` green standalone. - [ ] Adversarial reviewer on canary ## Doctrine alignment - `[[no-fallbacks-ever]]` — implicit fallthrough was the textbook violation; this commit closes it. - `[[rust-is-the-core-node-is-the-shell]]` — substrate dispatch ends at the Rust registry. TS is an explicit-API destination, not a silent dependency. - `[[headless-rust-must-work-soon]]` — headless boot no longer appears broken just because no TS host is around. Co-Authored-By: Claude Opus 4.7 <[email protected]> * docs(runtime,chat): no-fallbacks review nits — top-of-file doc + chat stub comment + test PR ref Adversarial reviewer's three non-blocking nits on PR #1585: 1. command_executor.rs module-level doc comment (lines 1-21) still described "TypeScript commands: Routed via Unix socket to CommandRouterServer" as if the implicit chain crossed the bridge. After the no-fallbacks fix that's misleading; operators read top-down and would believe the wrong contract. Updated to describe the implicit chain as Rust-only and call out the explicit execute_ts* public API as the documented escape hatch. 2. chat/mod.rs:494-497 comment said the staged-migration stubs reach the back-compat TS impl "through the existing CommandRouterServer bridge". Post-PR the chat module owns its prefixes and emits a deterministic typed error; the bridge is no longer in this dispatch path. Updated to reflect: chat owns the prefix, callers who need the TS surface go through the explicit execute_ts_json API per [[no-fallbacks-ever]]. 3. The regression test comment at command_executor.rs:835 referenced "Pre-PR #1584" as the predecessor — that's the docs PR, not this one. Changed to "Pre-PR #1585" to match. All three are documentation tightenings. No behavior change. Build clean; targeted tests pass. 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
Aug 15, 2026
…uting (#230/#229) Runs a GGUF MoE through the core/llama FFI with LiveExpertObserver attached (the existing cb_eval → ffn_moe_topk seam), generates N tokens to drive real routing, then dumps the model-intrinsic affinity: hot/cold expert distribution + co-occurrence + prefetch candidates. That affinity is the INPUT to expert prefetch (#227), grid placement (#180), compaction, and distillation (#233). Uses the in-process FFI (not the live llama-server lane) because affinity is model-intrinsic — valid data, zero risk to live serving. First run (Qwen3-Coder-30B-A3B, 96 tokens, Metal): 43,640 activations, 6116/6144 expert-slots fired (~99.5%), hottest expert only 0.20% (~12x uniform), 6092 colder share 95.8%. FINDING: for an 8/128 (6.25%-active) MoE, activation over a generation is BROAD, not tiny-hot — so the paging win is the tier ladder + affinity placement, not a small resident set. Prefetch predictor returned 0 candidates over 96 tokens (needs more data). K3 (1.8% active) should be far more concentrated — same harness will quantify it when weights land. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 15, 2026
#2056) (#2252) * fix(chat): ChatModule executor fails loud per-request, not process panic (#201) `ChatModule::executor()` did `.cloned().expect(...)` — a hard panic if a `chat/poll`, `chat/send`, or `persist_posted` landed before `start_server` called `install_executor_on_all` (a boot race). Panicking there SIGABRTs the whole core and takes every other module down with it, for a per-request contract violation that only concerns that one request. Convert `executor()` to `Result<Arc<CommandExecutor>, String>` returning the SAME loud, contract-naming message, and `?`-propagate it in the 3 callers (all already `Result<_, String>`). Faithful to [[no-fallbacks-ever]] — still loud, still names `install_executor_on_all`, no silent default — while satisfying #26 (faculties degrade, never panic): a command that races boot fails loudly to its caller instead of crashing the process. Regression test: a pre-install `poll()` returns the loud error naming the contract instead of panicking. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): expert_observe harness — glass-box LIVE MoE expert routing (#230/#229) Runs a GGUF MoE through the core/llama FFI with LiveExpertObserver attached (the existing cb_eval → ffn_moe_topk seam), generates N tokens to drive real routing, then dumps the model-intrinsic affinity: hot/cold expert distribution + co-occurrence + prefetch candidates. That affinity is the INPUT to expert prefetch (#227), grid placement (#180), compaction, and distillation (#233). Uses the in-process FFI (not the live llama-server lane) because affinity is model-intrinsic — valid data, zero risk to live serving. First run (Qwen3-Coder-30B-A3B, 96 tokens, Metal): 43,640 activations, 6116/6144 expert-slots fired (~99.5%), hottest expert only 0.20% (~12x uniform), 6092 colder share 95.8%. FINDING: for an 8/128 (6.25%-active) MoE, activation over a generation is BROAD, not tiny-hot — so the paging win is the tier ladder + affinity placement, not a small resident set. Prefetch predictor returned 0 candidates over 96 tokens (needs more data). K3 (1.8% active) should be far more concentrated — same harness will quantify it when weights land. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): expert_observe — per-domain concentration + working-set-size + Jaccard (#230) Evolves the MoE glass-box harness from the pooled first cut to the measurement that actually decides the paging architecture (BigMama's three methodological guardrails): diverse multi-domain corpus, PER-DOMAIN concentration (top-K% activation share vs the uniform null), cross-domain hot-set Jaccard, shared-base-vs-own-only activation MASS split, and the working-set-size curve (experts resident for 50/80/90/95% of a domain's mass). Prefill-dominant sampling on realistic input, not a degenerating greedy loop. Ran live on Qwen3-Coder-30B-A3B (Metal): pooled top-10% = 18.6% (mild — the smear), but per-domain = 25–38% with near-disjoint hot sets (code↔prose Jaccard 0.05) and a tiny 38-expert universal core — i.e. paging is domain-working-set SWAPPING, not frequency tiering. This is the #180 evidence; the harness is the reusable probe for any MoE (incl. K3 at weight-drop). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(chat): the anchor lookup missed the fallible-executor conversion Rebase fallout from the fail-loud change itself: executor() became Result<Arc<CommandExecutor>, String> (that IS the 'no process panic' fix), and every call site needs `?`. The chat/poll anchor lookup at mod.rs:155 was the one that did not get converted, so it called execute_json on a Result. One character. Caught by cargo check, not by review. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 4.8 <[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.
Removed inspiration section from README.
Summary
Brief description of changes and why they're needed
Change Type & Scale
Scale:
Testing & Verification
npm run lintpassesnpm testpassespython python-client/ai-portal.py --cmd testsAI Development Notes
Status & Readiness
Known Issues: (if any)
Files Changed
List key files and why they changed
Related Issues
Fixes #(issue) or Relates to #(issue)
For AI Agents: Use
python python-client/ai-portal.py --dashboardto verify system health after merging