Repository navigation
Dispatch: feature/bug/review overrides simple command gate - #432
Conversation
"read the bug report and fix it" was blocked by isSimpleCommand (starts with "read") even though it's clearly a bug fix task. Now feature/bug/review signals override the simple command gate. Suggested by Fireworks AI during code review in general chat.
There was a problem hiding this comment.
Pull request overview
Adjusts sentinel dispatch gating so that “simple command” phrasing (e.g., starting with “read”) doesn’t prevent dispatch when the message clearly indicates a feature request, bug fix, or code review task.
Changes:
- Updates the
isSimpleCommandrejection condition to allow dispatch whenisFeature/isBugFix/isReviewsignals are present. - Adds inline rationale/comments documenting the intended override behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| // Simple commands are rejected UNLESS they also contain feature/bug/review signals. | ||
| // "read the bug report and fix it" starts with "read" (simple) but IS a bug fix task. | ||
| // Suggested by Fireworks AI during code review of PR #419. | ||
| if (signals.isSimpleCommand && !signals.isFeature && !signals.isBugFix && !signals.isReview) { | ||
| return this._noDispatch('Message is a simple command'); |
There was a problem hiding this comment.
The inline example "read the bug report and fix it" still won't dispatch: it clears the isSimpleCommand gate with this change (since isBugFix becomes true), but it will still be rejected by the later hasTechnicalContext check because that regex doesn't match "bug report" and needsBuild/needsTest/needsGit are likely false. If the intent is to allow bug/feature/review tasks even without explicit artifact keywords, consider (a) bypassing the technical-context gate when isFeature || isBugFix || isReview is true, or (b) expanding the technical-context regex to include terms like "bug report"/"ticket"/"Jira".
| // Questions and simple commands are never dispatched | ||
| if (signals.isQuestion && !signals.isFeature && !signals.isBugFix && !signals.isReview) { | ||
| return this._noDispatch('Message is a question, not a task'); | ||
| } | ||
| if (signals.isSimpleCommand) { | ||
| // Simple commands are rejected UNLESS they also contain feature/bug/review signals. |
There was a problem hiding this comment.
The comment Questions and simple commands are never dispatched is no longer accurate now that questions/simple commands can pass this gate when isFeature/isBugFix/isReview is true. Please update the comment to reflect the actual conditional behavior (e.g., only reject when not feature/bug/review).
…aviors - New section: The Distributed Intelligence Hypothesis — why 100 laptops with specialized models outperform trillion-dollar data centers at domain-specific tasks - Updated alpha roadmap: 88 tracked, 55 closed, 26 open, Phase 0 complete - New emergent behaviors: autonomous code generation (ProductCostCalculator with TDD), AI-driven code review (PR #432), collective debugging - Grid Governor reference + MoE expert paging + federated publication
…aviors (#474) - New section: The Distributed Intelligence Hypothesis — why 100 laptops with specialized models outperform trillion-dollar data centers at domain-specific tasks - Updated alpha roadmap: 88 tracked, 55 closed, 26 open, Phase 0 complete - New emergent behaviors: autonomous code generation (ProductCostCalculator with TDD), AI-driven code review (PR #432), collective debugging - Grid Governor reference + MoE expert paging + federated publication
… live benchmark-room purpose mismatch (#431) (#2302) A recipe string is a reference into the recipe REGISTRY, not free text. Before this gate an unknown one "worked" — room made, binding published — then resolved to no manifest, so every client projected the room as plain chat. The live instance: benchmark/dispatch bound "benchmark" while the shipped recipe declares "benchmark/hard-rs", so EVERY benchmark run room rendered as chat for the whole campaign (the scoreboard region was the point of the recipe). The registry's own ids()/purposes() doc named this exact validation as its purpose; it was never wired. - experience::source: shipped_purposes() + shipped_purpose(id), both derived from the SAME embedded() iterator the registry is built from — validation set == resolution set by construction. Doc notes both must grow the disk overlay when #432 wires it. - activity::validate_recipe: pure gate called by spawn_activity_room; refusal names the actionable set. - benchmark/dispatch: binds the purpose resolved from shipped::BENCHMARK_HARD_RS — the string stays authored in exactly one place, the recipe JSON. Tests (existing mods): validate_recipe passes every shipped purpose and refuses the old "benchmark" literal with the set named; the shipped constant resolves to "benchmark/hard-rs". modules::activity + experience::source: 15 passed, 0 failed. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
… + drop vestigial default_room gate (#432, slices 4+5) (#2303) Three fixes from the spawn-gate survey, all landing the same contract: citizens spawn cleanly from recipe registries, and nothing on disk is silently ignored. FLOOR ORPHANS (5a): the spawner's plan was sized to CONTINUUM_PERSONA_FLOOR while ResumeOrMintProvider held every resumed seed — 5 citizens on disk with floor=1 meant one hosted and four orphaned forever. The boot task now calls supervisor.set_population(provider.identities_available()) after provider construction: the floor stays a MINT floor, never a resume CAP. New: ResumeOrMintProvider::identities_available(), PersonaSpawnerModule/ PersonaSpawnSupervisor::set_population (same >=1 clamp as with_population). VESTIGIAL ROOM GATE (5b): persona bootstrap zipped daemon_socket with default_room, so "no default room => no citizens, for no reason" (#298 removed the operator-room birth dep; the zip outlived it). The persona block now gates on the SOCKET alone; the room stays a dep only for its genuine consumers — GridCapacityModule (registered when present, loud warn when not) and the node-presence emitter (pair rebuilt explicitly). RECIPE OVERLAY IN PROD (4): builtins_with_overlay existed with zero production callers — "a new experience is a new recipe entry, zero code" was false in the running system. The chat projection now resolves embedded + <continuum_root>/recipes (one canonical overlay_dir helper), and #431's validate_recipe grows the SAME union via known_purposes(overlay_dir), so validation and resolution cannot drift: an authored on-disk recipe is spawnable the moment the file exists. A malformed overlay file refuses loudly naming the file — at boot in the log, and at activity/spawn as the command error. Tests: identities_available floor/resume matrix; set_population plan resize with clamp; overlay-authored purpose validates + malformed overlay refuses naming the file; all existing recipe/activity/projection tests green. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
…oded plan_for_tier vec (#430) (#2305) ExperienceRecipe gains `citizens` (a ROLE list — identity is minted/resumed at hosting time, the MODEL is the serving daemon's per-host decision, so a recipe stays portable across the grid). The embedded chat recipe — the DEFAULT experience fresh minds land in (#298) — declares the shipped floor: one Helper. RecipeExperienceSource::resident_roles reads it embedded+overlay with the registry's own later-wins-by-purpose law, so authoring a chat.json on disk changes the node's resident population with zero code. Boot injects the recipe roster via PersonaSpawnerModule::with_citizens; plan_for_tier's hardcoded role vec is gone — plan_for_roles maps DATA roles onto the serving scaffold (LCD fallback model until with_serving overrides, as before). plan_for_tier survives only as the documented data-absent floor for tests/fixtures. Slice-14 guard moves from a debug_assert to an enforced runtime rule on DATA: a recipe may author several citizens, but until role-in-seed.json lands (#133 slice 14) only the FIRST is hosted, with a loud error naming each deferred role — never a silent cap, never a debug-only tripwire an author could sail past in release. An EMPTY authored roster is legitimate (headless serving node) and plans nobody. Malformed overlay while reading the roster refuses loudly and hosts the embedded floor (#432's arm). ts-rs: CitizenRecipe.ts new + ExperienceRecipe.ts regenerated. Tests: embedded chat declares [helper]; authored overlay chat.json replaces the roster (zero code); with_citizens drives plan (empty -> nobody, coder -> coder, multi-role -> first only); existing tier-floor tests green. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
…ith the machine scenarios as tests (card 2eec3977) (#4259) * feat(cognition): the grid allocates its minds — one pure allocation over declared roles, the minds on disk and every node's runnable plans, with the machine scenarios as tests Card 2eec3977 (Joel, 2026-09-20: why 25 personas, what determines this, run every computer scenario and prove competency). Before: the population was every identity on disk (#432), bounded per node by its own warm slots (7c38ff6f); no node decided which minds belong on it, and a node joining or dropping changed nothing but its own draw. grid_allocation::allocate(GridInputs) -> GridAllocation. Inputs: roles in priority order, each a Requirement (window, min capability, decode floor); minds (role + home); a NodeOffer per node holding the LanePlans its own serving planner already computed (LanePlan::of a ServingPlan — no translation layer); the minds-per-lane ratio passed in. Output: what each node serves and why (Hosts / BelowEveryRequirement{best_window, best_capability} / NothingRunnable), who sits where, who is dormant, and the open seats per node and role — the spawn signal. Objective in order: every seated mind at its role's requirement (a 2k lane is not a seat), then capability, then lanes, then window. A mind seats at home when home holds her role, else anywhere the grid has a seat; extras dormant with identity kept. Scenarios: a box that serves only 2k seats nobody and says how far off it is; a lone 64 GB box seats coders on the 27B at 2 lanes (capability before the 7B's 4 lanes, lanes before the 1×131k); a GPU box joining wakes the dormant on it, keeps the seated home, opens seats to mint; a node dropping reseats what fits and the rest go dormant; a 16 GB laptop hosts orchestration and coders go where the capability is; a 6.3 t/s lane does not seat a coder with a 10 t/s floor and an unmeasured one is not refused; 1 mind on 4 seats opens 3, 25 minds on 4 seats leaves 21 dormant; the real planner's plan reads as an offer. Pure, no daemon yet: the module that holds offers and calls this once per change follows. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): a node seats every role its plan holds, in priority order — Cormac's condition on #4259 One engine at one window holds every role whose requirement is at or below it. decide_node still chooses the plan for the highest-priority role the node can hold (coders stay on the capability) and now records every role that plan holds; the fill walks roles in priority order across every node holding them, so a 4-seat coder box with 2 coders and 3 orchestrators seats 2 + 2 with 1 dormant and 0 open — before it held 2 seats open for coders that did not exist and sent 3 orchestrators dormant. open stays per node for the role the node was chosen for. One scenario pins it, with the pressure case (5 coders + 3 orchestrators on 4 seats → 4 coders). Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
AI team code review suggestion from Fireworks AI. 'read the bug report and fix it' was blocked. Now feature/bug/review signals override isSimpleCommand.