Repository navigation
Description
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
BunsDev commentedon Oct 23, 2026
Refreshed goal prompts — 2026-10-23 (
mainat203a350)On
mainalready:local-model-acceptancespec, nodocs/local-models.mdand no LM entry indocs/status.md;collaborationMode.settings.modelis one of the paths the audit must show cannot retarget a local run.Still open:
048d1e8on the locallm1-contractbranch: the contract plus one native Codex 0.163.0 / Strata probe. It is not pushed, has no PR and Gate A is not accepted. Test design here may start once it is.3654053. A local review (not on GitHub) found two defects still to fix: credentials under a stale revision, and token reflection through metadata.665c095onlm3-isolation.Local worktrees
lm1-contract,lm2-discovery,lm3-isolationandlm-foundationare claimed by other sessions. Don't adopt or edit them.Long-running goal prompt
Follow-up / resume prompt
docs: draft the LM-7 criterion-to-evidence map (#383)
docs: draft the LM-7 criterion-to-evidence map (#383)