Skip to content

[P1][LM-7] Prove local-model integration and publish the supported compatibility matrix #383

Open

Description

@BunsDev

Outcome and dependencies

Verify the actual Modex app, native harness and local runtime together before claiming supported local coding. Integrate producer evidence rather than treating mocked responses or assistant success prose as acceptance.

Parent: #376. Test-design/start prerequisite: #377's accepted contract. Completion dependencies: #377 (LM-1), #378 (LM-2), #379 (LM-3), #381 (LM-4), #380 (LM-5) and #382 (LM-6). Delivery group: Local models v1 / final Gate C. Priority: P1. The optional LM-8 experiment is NOT a completion dependency. Producers own their own tests and do not depend back on this issue.

Follow the shared execution contract in #376. Pilot evidence for Gate B may be produced before the broad matrix is complete; do not confuse partial pilot readiness with final closure.

Context and source entry points

Refresh main, scoped instructions, all producer PRs/evidence and open ownership. Publication baseline: ec7be578765f9ce54976882853e57ca190252361.
Existing: apps/desktop/test/, apps/desktop/e2e/, paired client/Store/iPhone test infrastructure, docs/status.md, docs/reviews/ and existing site documentation surfaces. Reuse #381's UI fixtures and #273's conversation/request/replay contracts; #373's phone question broker is already implemented on the publication baseline.
Proposed: apps/desktop/e2e/local-model-acceptance.spec.ts, docs/reviews/<actual-date>-local-models-acceptance.md. No second integration harness or transcript store.

Consumes: accepted producer implementations and their criterion-level evidence. Produces: a reproducible supported/unsupported/unverified configuration matrix, end-to-end receipts, setup/troubleshooting/rollback documentation and an evidence-based readiness recommendation. It does not publish a release.

Implementation steps

  • Design the golden and negative fixtures once [P1][LM-1] Define local-model contracts and prove the native Codex integration seam #377 is accepted. Map every producer criterion to evidence and a responsible owner. Route producer defects back to their issue with a minimal reproducer rather than rewriting their architecture here.
  • Exercise Settings → choose local connection/model → native plan/read → explicit approved edit → actual test command → inspect diff/result → Stop/continue → restart/replay in a disposable repository with known expected bytes. Test the actual Electron/main/native path; separately identify cases using fake CLIs versus a real local runtime.
  • Cover same model name on different endpoints, credential/profile changes, corrupted snapshots, stale capability evidence, server loss mid-tool, truncated arguments, invalid schemas, duplicate/late frames, OOM, context overflow, queue cancellation and unsupported images. Assert dispatched-action counts and real file bytes; deny/replay/reconnect must not create unintended effects.
  • Exercise supported paired desktop/Store/iPhone display and main admission: correct inference-host provenance, stale target controls, denial, Stop and reconnect. Unsupported clients have readable non-actionable fallbacks. Do not require a new mobile Settings product or duplicate the question broker.
  • Keep normal PR CI offline and GPU-free through existing fake-CLI/loopback fixtures. Real native qualification, network-denied inference-service tests and human keyboard/screen-reader acceptance are distinct gates. Do not auto-download large models or silently consume remote inference budgets in default CI.
  • Record OS/architecture, app SHA, native CLI/runtime/model versions, template/parser/quantization/effective context and fixture/artifact revisions. Measure cold-start and warm-turn behavior on named hardware; no fabricated universal speed target or all-platform claim from one OS.
  • Document setup, tested coverage, no-cloud-fallback scope, network/offline caveats, failure remedies, migration and rollback. Feature disable preserves profiles/history and performs no inference or action replay. Update existing docs/site claims only to the verified scope; do not publish a separate promotional claim in another repo.
  • Run existing cloud/native, account, approval, worktree, Changes, Notes and recovery regressions. Pin the integrated candidate SHA and distinguish fresh whole-build checks from historical producer receipts. Preserve evidence outside directories Playwright wipes.

Acceptance criteria

  • AC1: the golden workflow is verified through real Electron/main/native paths and observed file/test evidence, not a visible success sentence.
  • AC2: protocol/unit, app fixtures, real runtime, network-denied and human acceptance have separate columns in the criterion-level evidence matrix.
  • AC3: each advertised supported combination has versioned native evidence; missing/failed configurations remain explicitly unverified/unsupported.
  • AC4: fresh required build/test/E2E results name the candidate SHA, with failures/skips and platform limitations retained.
  • AC5: no silent cloud fallback, unintended action replay, cross-profile credential/session bleed or misleading offline claim remains in accepted scope.
  • AC6: supported paired clients preserve target/provenance/authority and unknown outcomes; older clients cannot alter unsupported local controls.
  • AC7: setup and rollback are reproducible, existing cloud behavior regresses nowhere in accepted scope, and documentation/site language matches actual evidence. Optional Claude qualification cannot delay the core gate.

Verification and handoff

Run focused acceptance and producer regressions, then current repository-required pnpm build && pnpm test and pnpm test:e2e; use pnpm typecheck when supported by current scripts. Record exact commands/results and runtime/native/human methods, never just green checkmarks. All native canaries require authorization and preinstalled artifacts. Deliver a signed review-ready PR, updated status, evidence matrix, residual blockers and one next action. No merge, release, flag activation or upstream mutation merely to make acceptance green.

Long-running goal prompt

Complete LM-7 for TypeSafeAI/modex under #376 as an integration audit of actual #377/#378/#379/#381/#380/#382 artifacts. Read current AGENTS.md, producer PRs/evidence, current main and open ownership; verify your worktree and candidate SHA. Build the golden local-model workflow plus adversarial cases through existing Electron/main/native infrastructure. Assert file bytes, execution counts, policy, profile identity and truthful Stop/recovery, including supported paired clients. Keep GPU-free fixtures, real runtimes, network-denied service tests and human accessibility evidence separate. Route producer defects to existing owners; no architecture rewrite or duplicate harness. Run targeted/full checks, preserve artifacts, update setup/rollback/status and prepare signed reviewable commits. Checkpoint exact SHAs, versions, results, remaining gates and one next action. LM-8 is optional. Do not merge, release, activate defaults or download models without separate authority.

Follow-up / resume prompt

Resume LM-7 from live issues/PRs and the evidence checkpoint. Verify ownership and actual diff; compare the current candidate/configuration with the last tested SHA and invalidate affected claims. Rerun the golden smoke, affected checks and final required checks for any whole-build readiness claim. Work the smallest remaining release-blocking criterion; never count mocks as real runtime/human evidence or infer completion from issue closure. Reconcile unknown native actions before any retry. Record exact fresh results and keep missing hardware, offline or human gates open. No automatic golden acceptance, merge, publication or scope expansion.

Independent review prompt

Review the final local-model implementation and evidence independently. Trace effective native configuration and every auxiliary inference destination, then exercise profile/credential changes, same-name models, stale qualification, malformed tools, Stop after side effects begin and restart after unknown results. Inspect actual app/paired-client controls and real file/request counts. Verify the no-cloud-fallback boundary includes helper paths and offline evidence includes the inference server. Recheck cloud/native regressions and unchanged global user settings. Classify each criterion verified/failed/deferred/unverified with reproducible evidence and the smallest repair. Do not approve untested configurations or authorize merge/release.

Activity

  1. BunsDev commented on Oct 23, 2026

    @BunsDev
    ContributorAuthor

    Refreshed goal prompts — 2026-10-23 (main at 203a350)

    On main already:

    Still open:

    Local worktrees lm1-contract, lm2-discovery, lm3-isolation and lm-foundation are claimed by other sessions. Don't adopt or edit them.

    Long-running goal prompt

    Complete LM-7 (#383) in TypeSafeAI/modex under tracker #376 as an integration audit of the accepted #377, #378, #379, #380, #381 and #382 work. #384 is optional and never blocks this. Read AGENTS.md, #376's shared execution contract, every producer issue, PR and receipt, docs/status.md and docs/local-models.md; then verify main's SHA. Create your own worktree with scripts/worktree.sh new and check; never edit the primary checkout or another session's worktree. Gates: test design may start once #377 is accepted. Gate B pilot evidence (Ollama and LM Studio) needs #378–#381. Final closure needs all six producers. Slice 1: map every producer criterion to evidence and an owner, and send defects back to the producer's issue with a minimal reproducer instead of rewriting their code. Slice 2: build the golden workflow in apps/desktop/e2e/local-model-acceptance.spec.ts on the existing Electron fixtures. Settings → local model → plan/read → approved edit → real test command → diff → Stop/continue → restart/replay, in a disposable repo with known bytes. Slice 3: negative cases: same model name on two endpoints, profile or credential change mid-run, corrupt snapshots, stale qualification, server loss mid-tool, bad tool arguments, late frames, OOM, context overflow and unsupported images. Assert file bytes and dispatch counts, not success text. Slice 4: paired desktop, Store and iPhone show the right inference host, and stale controls, deny, Stop and reconnect behave. Slice 5: authorized native runs on preinstalled runtimes, a network-denied run that covers the inference server, and human keyboard and screen-reader checks. Each goes in its own evidence column. Default CI stays offline and GPU-free. Coding turns run only through the codex and claude CLIs, with no API mode and no silent cloud fallback. Run the cloud, account, approval, worktree, Changes, Notes and recovery regressions, then pnpm build && pnpm test && pnpm test:e2e on a pinned candidate SHA. Keep artifacts outside apps/desktop/test-results/. Write setup, troubleshooting and rollback in docs/local-models.md, update docs/status.md, and record docs/reviews/<date>-local-models-acceptance.md. Site claims match only what was verified. Open signed PRs and wait for Val's go-ahead to merge.
    

    Follow-up / resume prompt

    Resume LM-7 (#383). Confirm you own the worktree, fetch main, and read the latest comments here and on #376–#382. Compare the current candidate SHA and runtime configuration with the last tested ones, and invalidate any claim they affect. Re-run the golden smoke and the affected checks, and run the full checks before any readiness claim. Work the smallest remaining blocking criterion; never count a mock as native or human evidence, or a closed issue as acceptance. Record codex, claude and runtime versions with any native run. Post a checkpoint: SHA, results by evidence column, what's left for hardware, network-denied or human checks, and one next action.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:local-modelsenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions