Repository navigation
Build(deps): Bump inquirer from 8.2.6 to 12.9.4 - #114
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 8.2.6 to 12.9.4. - [Release notes](https://github.com/SBoudrias/Inquirer.js/releases) - [Commits](https://github.com/SBoudrias/Inquirer.js/compare/[email protected]@12.9.4) --- updated-dependencies: - dependency-name: inquirer dependency-version: 12.9.4 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
Author
|
Superseded by #123. |
joelteply
added a commit
that referenced
this pull request
Jun 2, 2026
Enumerates every direct adapter.generate_text call site in the tree as of 2026-05-31. 19 hits total; classified as: - 4 canonical paths (the command + handle store implementations themselves; can%27t go through themselves) - 6 confirmed bypasses (cognition / persona / agent / http) — should route through InferenceHandleStore / Commands.execute - 1 debatable (rag_inspect probe — acceptable as a one-shot) - 8 test-only call sites (allowed; testing the adapter contract) The 6 bypasses split into 3 priority tiers and become tasks #112 (persona response — highest, the hot path), #113 (cognition gating + validation — medium), and #114 (agent + http — lower). The audit doc explains the boundary (when adapter.generate_text is canonical vs bypass), provides the grep command for re-running the audit before merging new inference-using code, and documents when to update the doc.
joelteply
added a commit
that referenced
this pull request
Jun 2, 2026
…trict opt-in (#128) ## Why Joel (2026-06-01) called out a recurring failure mode: "You mix this fake shit in and it's going live ALL THE TIME. Why fallbacks are forbidden. The fake shit is a CHOSEN model adapter no other form. Declaration. Gating in test is smart." The HeuristicInferenceAdapter was registered unconditionally at boot in `modules::ai_provider`, and its `supports_model()` returned `true` for any model name including production IDs like `anthropic/claude-opus-4-7`. Two structural leaks: auto-discovery could pick it via tier-3 walk in `AdapterRegistry::select()` when callers passed `model: None`; explicit-by-name lookups for real production models silently degraded to it when no real adapter was registered first. Both paths "go live ALL THE TIME." This commit closes the leaks structurally — not via runtime guards that can be forgotten, but via the compiler. ## What ships ### 1. Compile-time elimination (the no-going-back gate) - `Cargo.toml`: new `test-fixtures` feature flag. Production builds do not enable it. - `src/ai/mod.rs`: `pub mod heuristic_adapter` and re-exports gated behind `#[cfg(any(test, feature = "test-fixtures"))]`. Without the feature, the entire module + struct + constants don't exist in the binary. Unit tests in continuum-core get it free via `cfg(test)`; external test code / fixtures opts in via the feature. - `Cargo.toml`: `airc_chat_demo` bin target now declares `required-features = ["test-fixtures"]` — it uses heuristic and must opt in like any other test-fixture consumer. ### 2. Removal of unconditional production registration - `src/modules/ai_provider.rs`: deleted the unconditional `registry.register(HeuristicInferenceAdapter::new(), 99)` block. The comment about "lowest priority so never auto-selects" was wrong; nothing prevented `select()` with `model: None` from landing there. Tests that legitimately want heuristic register it explicitly in setup (no global default registration). ### 3. Trait-level self-declaration (belt-and-suspenders) - `src/ai/adapter.rs`: new `fn is_production_capable(&self) -> bool` on `AIProviderAdapter` (default `true`). Real adapters keep the default; heuristic returns `false`. - `src/ai/adapter.rs`: new `AdapterSelectionError` type with `Display` impl that names what was requested, what's registered, and what remediation looks like. Designed for downstream `select_production` callers in follow-up slices. - `src/ai/adapter.rs`: `AdapterRegistry::select()` now refuses calls with no `preferred_provider` AND no `model` — the textbook auto-discovery path forbidden by [[no-fallbacks-ever]]. Hard return None with a diagnostic. Callers must specify intent. ### 4. Heuristic strict opt-in - `src/ai/heuristic_adapter.rs`: `supports_model()` overridden to match ONLY model names starting with "heuristic" (case-insensitive). Previously returned `true` unconditionally — THE leak path. The test asserting that behavior (renamed: `supports_only_heuristic_model_names_never_substitutes_for_real_models`) now pins the opposite: production model names like `anthropic/claude-opus-4-7`, `gpt-4`, `qwen3.5-4b-code-forged-Q4_K_M` MUST NOT match. - `supported_model_prefixes()` declares `vec!["heuristic"]` (was empty + comment claimed "opt-in only" but the empty list combined with always-true `supports_model` meant anything went). The two methods now agree and the registry's prefix-based auto-routing cannot pick heuristic for any real model name. ## Layered defense Heuristic adapter cannot reach production traffic via FOUR independent barriers: 1. cfg-gate: not in the binary unless `test-fixtures` is on 2. No auto-registration: even with the feature, nothing in production code registers it 3. Trait self-declaration: `is_production_capable() = false` for `select_production` (follow-up #128 slice 2) 4. Strict model match: even at test time, only "heuristic-*" model names route here Joel: "No fallbacks ever it's forbidden." Now structural, not policy. ## Tests (47 passing, no regression) - `ai::heuristic_adapter::tests` — 10/10 pass with `test-fixtures` including the rewritten `supports_only_heuristic_model_names_never_substitutes_for_real_models`. - `ai::adapter::tests` — pass - `modules::generator::tests` — 8/8 pass (regression check) - `persona::hw_tier_descriptor::tests` — 11/11 pass (regression check) - `persona::orm_entity_registration_tests` — 2/2 pass (regression check) - `orm::entity::tests` — 10/10 pass (regression check) - Full lib test sweep with `test-fixtures` green (regression sweep) - Production build (`cargo build --lib --features metal,accelerate`) with NO test-fixtures: clean, heuristic adapter physically absent from the binary ## Follow-up (deferred) - Wire qwen3.5-4b-code-forged-Q4_K_M (the local GGUF on this Intel MacBookPro15,1) through the persona path so we have a REAL model running. The chat-flawless work continues on top of this clean base. - `select_production()` method that wraps `select()` and additionally filters `is_production_capable()`. Will land when the first production cognition call site is migrated to use it. - Audit existing `select()` callers — anyone passing `model: None` is now broken loud; either give them a real model or refactor. References: [[no-fallbacks-ever]], [[no-if-statements-use-llms-for- cognition]], [[persona-chat-flawless-before-video]], [[persona-webrtc-all-tiers-latency-obsessed]], #103 (heuristic promotion that this constrains), #105 (bypass audit), #112-#114 (routing the cognition path through inference command — chat-flawless slices C+). Co-Authored-By: Claude Opus 4.7 <[email protected]>
This was referenced Jun 6, 2026
joelteply
added a commit
that referenced
this pull request
Jun 9, 2026
… (#1587) * cleanup(ts): delete dead TS cloud-inference adapter classes (task #229) Per headless-Rust doctrine + the no-fallbacks campaign (#1585): the TS-side cloud-inference adapter classes are dead infrastructure now that: - continuum-core's `model_registry/catalog.rs` enumerates all 9 cloud providers (anthropic, openai, groq, deepseek, together, mistral, fireworks, google/gemini, xai) as Rust catalog rows - ai_provider.rs Rust module owns cloud inference dispatch via `LateBound<CommandExecutor>` + the inference handle store - The inference routing campaign (#112/#113/#114) is finishing the cognition-side migration so every persona turn routes through the inference command, not the TS daemon This commit removes the now-unreachable TS surface: Deleted (8 cloud-inference adapter classes): - anthropic/shared/AnthropicAdapter.ts - deepseek/shared/DeepSeekAdapter.ts - fireworks/shared/FireworksAdapter.ts - google/shared/GoogleAdapter.ts - groq/shared/GroqAdapter.ts - openai/shared/OpenAIAdapter.ts - together/shared/TogetherAIAdapter.ts - xai/shared/XAIAdapter.ts (Mistral had no inference adapter in TS — only fine-tuning. Fine-tuning adapters across all providers remain in place; their deletion follows the TS persona-chain collapse, separate card.) Deleted (stale planning docs that referenced the now-dead architecture): - adapters/CONSOLIDATION-PLAN.md - adapters/MULTI-MODAL-ARCHITECTURE.md Edited (AIProviderDaemonServer.ts): - Removed the 8 cloud-adapter import + register_adapter calls - Removed Candle/Sentinel orchestration scaffolding that was only needed because of the cloud adapters - Kept only the Sentinel adapter registration path (separate provider, its own migration card pending) - Added doctrine pointers: SUBSTRATE-DOCTRINE-ORGANIC-FLOW.md forbidden moves clause 7 + CANARY-ALPHA-EXECUTION-ROADMAP.md Group A Out-of-scope (deliberate — follow-up cards): - BaseConfig files per provider (fine-tuning adapters still depend on them) - FineTuning adapter classes (TS persona chain still calls them via FineTuningAdapterFactory; deletion follows the TS persona-chain collapse) - candle/ and candle-grpc/ adapter dirs (entangled with PersonaUser, AIProviderDaemon; deletion is its own scoped PR) - SentinelAdapter + BaseAIProviderAdapter (sentinel is a separate provider migration card) - AIProviderDaemon itself (still needed until the full TS persona chain dies; this PR just removes its dead registrations) Verified: - `npx tsc --noEmit` produces zero errors from this change (the only errors are pre-existing rootDir issues on generated TS bindings) - `cargo check -p continuum-core --lib --features metal,accelerate` clean Doctrine alignment: - [[rust-is-the-core-node-is-the-shell]] — TS no longer owns cloud inference registration - [[no-fallbacks-ever]] — the TS bridge for cloud inference is one step closer to deletion - [[headless-rust-must-work-soon]] — headless boot needs zero of these adapters; their presence was vestigial Co-Authored-By: Claude Opus 4.7 <[email protected]> * cleanup(ts): delete broken tests + empty adapter dirs (review fix for #1587) Adversarial reviewer BLOCK on PR #1587: three tsx-script test files imported the deleted cloud-inference adapter classes and would fail at runtime when a developer ran them by hand. They were excluded from tsc (tsconfig exclude) so the build check missed them. Per CLAUDE.md test-fixtures STOP block + "Tests must justify themselves": dead tests that test deleted code go away with the code. Leaving them as broken-on-execute landmines violates the no-fallbacks campaign that motivated #1587 in the first place. Deleted: - src/tests/integration/ai-cost-tracking.test.ts (imported OpenAIAdapter) - src/tests/integration/quick-provider-test.ts (dyn-imported 6 deleted adapters) - src/tests/integration/test-provider-diagnostics.ts (same 6) Also cleaned (cosmetic nit from review): - Empty adapters/groq/ dir (no FineTuning, no inference) - Empty adapters/xai/ dir (no FineTuning, no inference) Reviewer nits not addressed in this commit (would-be-nice but non-blocking): - Stale BaseConfig docstrings referencing deleted classes (4 files) - Promise.allSettled single-element redundancy - discoverModelsViaRust becoming dead-on-the-TS-side These are TS persona-chain hygiene targets, follow with #143/#215 when the broader chain collapse lands. Co-Authored-By: Claude Opus 4.7 <[email protected]> --------- Co-authored-by: Claude Opus 4.7 <[email protected]>
3 tasks done
joelteply
added a commit
that referenced
this pull request
Jun 10, 2026
…ratchet (task #240 — fourth proof shape) (#1592) Fourth proof in the architecture-test matrix. Pins the "module compose-by-event" doctrine clause — substrate-internal modules compose via the event substrate (MessageBus subscribe/emit) or via pre-bound handles, not by imperative `CommandExecutor::execute_*` round-trips through the outer command interface inside the cognition hot path. ## What ships `core/continuum-core/tests/architecture_compose_by_event.rs` — two integration tests: 1. `cognition_command_executor_calls_ratchet` — scans every `.rs` file under `core/continuum-core/src/cognition/`, finds lines matching `.execute_json(`, `.execute_with_caller(`, `.execute_ts(`, `.execute_ts_json(`, asserts the count doesn't grow beyond the current grandfathered budget of **1**. NEW calls BLOCK; the existing one is tracked under #112-#114 (route persona response / should_respond / validate through inference handle). Bare `.execute(` is intentionally NOT in the forbidden list — it would generate false positives across futures, queues, and other APIs. If a typed `executor.execute(typed_args)` pattern appears inside cognition in a future refactor, extend the list. Test mods (`#[cfg(test)] mod ... { ... }`) are exempted via the same brace-depth parser as the singleton-ban test, with inline `#[cfg(test)] mod tests {` handling. Line comments (`//` lines) are skipped so doc comments quoting the very pattern being banned don't trip the scanner — this matters for cognition module top-of-file docs that reference `Commands.execute('cognition/...')` as the TS-side caller contract. 2. `command_executor_remains_the_outer_boundary` — positive pin: `runtime/command_executor.rs` exists, declares `pub struct CommandExecutor`, exposes `pub async fn execute_json`. If the type is renamed or `execute_json` moves, the test is loud, not silent — and the FORBIDDEN list in this test file needs updating to match. ## The 1 grandfathered violation `cognition/vision_describe.rs::describe_image_via_ai_generate` calls `executor.execute_json("ai/generate", ...)`. The clean fix is a pre-bound `InferenceHandle` (cf. tasks #107-#108), called directly the same way `airc_chat_demo` already does. Migration tracked under #112-#114 (the inference-command-routing campaign) and #106 (ai/* namespace consolidation). ## Why ratchet (not strict) Same reason as engine-OS layering and singleton-ban: the single existing violation needs a considered migration (which `InferenceHandle` to pre-bind, where to wire the lifecycle), not a sed sweep. NEW violations BLOCK at PR time; the ratchet count graduates to ✅ when #112-#114 land. ## Matrix update `PROVING-THE-DOCTRINE.md` row for "Module compose-by-event" flips from 🔴 (no proof) to 🟡 (ratchet active, target ✅ when count = 0). ## Test plan - [x] `cargo test -p continuum-core --test architecture_compose_by_event --features metal,accelerate` — 2/2 pass; grandfathered count = 1 (exact match) - [x] `// proves: module compose-by-event` tag applied - [x] Ratchet logic verified (both grow-detection and shrink-detection paths via inspection) - [x] Line-comment skip verified — the two pre-existing `Commands.execute(...)` doc references in `vision_describe.rs` and `rate_proposals/mod.rs` do NOT trip the scanner ## Doctrine alignment - Substrate doctrine § "Module compose-by-event" — cognition composes via event substrate or pre-bound handles, not imperative request-response round-trips - [[no-fallbacks-ever]] — the ratchet IS the no-fallback equivalent for the cognition→command-executor coupling at build-graph layer ## Related - Task #240 — architecture-test matrix, fourth proof - Builds on PR #1589 (ratchet pattern) and PR #1591 (singleton ban — same scanner shape) - Migration follow-up: tasks #112-#114 (#113 is currently in_progress) → ratchet count goes 1 → 0 → strict Co-authored-by: Claude Opus 4.7 <[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.
Bumps inquirer from 8.2.6 to 12.9.4.
Release notes
Sourced from inquirer's releases.
... (truncated)
Commits
fdc9201Publish3deee5cfix(@inquirer/core): Remove vim/emacs easter eggs conflicting with type-to-se...df341a8Publish2d8ddccfix(@inquirer/confirm): Fix when using with unix yes command. (#1815)f5c39a8chore: Document known issue with setRawMode(true). Closes #1721daf4d6fPublishb4992d3fix: lockfile regenerated7ddf02bchore (@inquirer/external-editor): Add keyword to help search82df7a2fix (@inquirer/external-editor): Make@types/nodean optional peer dependency28c2f20chore (@inquirer/external-editor): Add note to README about being a replacementDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)