text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
{ "schemaVersion": "1", "productId": "mlx-personal-coding-pipeline", "packageName": "mlx-personal-coding-pipeline", "executable": "mlx", "entry": "./src/cli.tsx" }
codex-hackathon
mlx.package.json
JSON
c015d05476093512d4716a52d706f71665ff305c43dd34d9d6335819a5af7281
0
59
{ "name": "mlx-personal-coding-pipeline", "version": "0.2.0", "description": "MLX — the personal coding dataset and model pipeline. Distinct from Apple's MLX project; not affiliated with or endorsed by Apple.", "private": true, "type": "module", "files": [ "README.md", "mlx.package.json", "migra...
codex-hackathon
package.json
JSON
f5e35a648a442f6eb6135459e1d414dc3ef5119765ee3abca8ea2eca00892fc5
0
675
# MLX — the personal coding dataset and model pipeline This product is distinct from Apple's MLX project and is not affiliated with or endorsed by Apple. End-to-end CLI pipeline for producing a narrow product expert model, training it locally with MLX, and running it fully offline on an iPhone with agent-authored Jav...
codex-hackathon
README.md
Markdown
ec5fe2e9aaf0a9fcf431e114d11246d71aca0bd56ca4daa6e8e3d389f2e67b94
0
896
- `data/**/*.safetensors`: adapter checkpoints and fused outputs. These artifacts are the contract between the discovery, training, evaluation, and device-runtime layers. ## CLI Commands ```bash bun src/cli.tsx <command> ``` | Command | Description | |---------|-------------| | `pipeline` | Run the full pipeline (d...
codex-hackathon
README.md
Markdown
e9a751e5c37fa9b71ca6a5b048824a9763197a5d7da0875ecc10364b7bacbe12
1
634
mlx-lm[train]==0.31.2 mlx-lm-lora==0.1.9 wandb datasketch jsonschema
codex-hackathon
requirements.txt
Text
a65f79453a829260f0ecd75431768b4e33a17918bf52d55b576c88a5064cbae3
0
24
{ "compilerOptions": { "target": "ES2022", "lib": ["esnext"], "allowJs": false, "skipLibCheck": true, "strict": true, "noEmit": true, "esModuleInterop": true, "module": "esnext", "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, "jsx": "react-jsx", "incrementa...
codex-hackathon
tsconfig.json
JSON
d1d19273a57a35ae98ffed8b4e6c32c65711a59f6c6935e6f860e730f1570507
0
170
import path from 'node:path'; import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { environment: 'node', globals: false, include: ['lib/**/*.test.ts', 'lib/**/*.spec.ts'], testTimeout: 10_000, hookTimeout: 10_000, fileParallelism: false, }, resolve: { alias: { '@': path.r...
codex-hackathon
vitest.config.ts
TypeScript
426a0b3f947a0fc756c87664dcc9a97f20fcfa83eb6506d48d361cfca4ee06b7
0
111
import path from 'node:path'; import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { environment: 'node', globals: false, include: ['test/integration/**/*.test.ts'], testTimeout: 15_000, hookTimeout: 10_000, teardownTimeout: 10_000, fileParallelism: false, watch: false, }...
codex-hackathon
vitest.integration.config.ts
TypeScript
b69c386480dd46e0046252068fd367cfc72eadc8c183be44e686ae312c0d3e0e
0
109
{ "model_profile": "adaptive", "commit_docs": true, "parallelization": true, "search_gitignored": false, "brave_search": false, "firecrawl": false, "exa_search": false, "tavily_search": false, "ref_search": false, "perplexity": false, "jina": false, "git": { "branching_strategy": "phase", ...
codex-hackathon
.planning/config.json
JSON
17a32940462f65d2546d3de1be69971890e58cd1cb6675be6ef650e32cf7285f
0
691
# MLX ## What This Is MLX — the personal coding dataset and model pipeline is a local-first system for a single developer that turns explicitly authorized GitHub repositories into accurate engineering metrics, a provenance-rich evidence lake, an evidence-backed coding-preference profile, Hugging Face-native datasets,...
codex-hackathon
.planning/PROJECT.md
Markdown
66aed033de5df7975f7f52fad6df57f09d906a26b53fed7c5e1ec44caccc3693
0
896
required GitHub inventory, SQLite catalog and migrations, content-addressed evidence store, Parquet/Hugging Face compiler, leakage-safe repository/task splitting, executable repository benchmark, or local Studio. The authoritative product contracts are `docs/MLX_PROJECT_SPEC.md`, `docs/MLX_DATASET_CONTRACT.md`, `docs/...
codex-hackathon
.planning/PROJECT.md
Markdown
a8997f01dd7cb49b7cd18f2d6fcea7d68c90a307e0d52a4dc3cf4d95b52d9991
1
896
Dataset Viewer, TRL, MLX-LM, and analytical queries | — Pending | | Evaluate with task-group, temporal, whole-repository, and future holdouts | Random rows and sibling leakage would overstate personalization and memorization resistance | — Pending | | Preserve the eight acceptance boundaries mandated by the project spe...
codex-hackathon
.planning/PROJECT.md
Markdown
4f5edc056b1a12f27af8715c6da9ed3ea1e600ebc8571d99875aeeee2bcff9f1
2
340
# Requirements: MLX **Defined:** 2026-07-15 **Core Value:** Produce a privacy-preserving, provenance-rich personal coding dataset whose quality, splits, and benchmark results are reproducible and defensible. ## v1 Requirements ### Identity, Baseline, and Migration - [x] **IDEN-01**: Operator-facing product text ide...
codex-hackathon
.planning/REQUIREMENTS.md
Markdown
9c2833b6e605a938c8745a5e36dc9a5fbef9206413d9318ee6f8d1aecfc577c2
0
896
success, failure, timeout, cancellation, or crash without leaving orphan work - [ ] **FNDN-12**: Operator can inspect disk usage and run retention or `mlx gc` without deleting any object still referenced by a catalog row or immutable manifest ### Repositories, Identities, and Metrics - [ ] **REPO-01**: Operator can i...
codex-hackathon
.planning/REQUIREMENTS.md
Markdown
9ff5454c2270462cafd5df2116e48df4f24fd3bd78ab343db9a9b2df1549598b
1
896
commit, pull request, issue, review chain, or synthetic regression share one stable `task_group_id` - [ ] **EVID-04**: Deterministic extraction is reproducible for the same repository snapshot, extractor version, and configuration - [ ] **EVID-05**: Evidence stores separate accepted-state, survival, verification, seman...
codex-hackathon
.planning/REQUIREMENTS.md
Markdown
b1bf9af3bcc4b517b2ecd3eb9494dfd920bab13e7231586c2522979508a6da22
2
896
format-only, privacy-failing, incoherently large, or context-insufficient examples with recorded reasons - [ ] **DATA-12**: Exact object, normalized patch, and normalized instruction hashes are applied before near-duplicate MinHash and syntax-fingerprint candidates - [ ] **DATA-13**: Deduplication emits representative ...
codex-hackathon
.planning/REQUIREMENTS.md
Markdown
9d3083969c2063f2a87cc0242bceb311097250137b133c5bdf0467de2046b4a4
3
896
- [ ] **BNCH-10**: Compared model variants use identical tasks, tool schemas, context budgets, step budgets, checks, sampling policy, and hardware policy - [ ] **BNCH-11**: The minimum comparison matrix separates E2B base, E4B base, E4B base plus profile, tuned E2B, tuned E4B, and tuned E4B plus profile when those adap...
codex-hackathon
.planning/REQUIREMENTS.md
Markdown
628c419a7be341fd1f1450809a90c9a607698d2d1cc7672d4c1e32edb1f2781a
4
896
supporting evidence, counter-evidence, and exceptions - [ ] **STUD-07**: Dataset Explorer shows configs, splits, examples, tokens, languages, quality, provenance, manifests, and validation status - [ ] **STUD-08**: Benchmark Arena shows paired sample-level results, checks, error categories, component metrics, deltas, a...
codex-hackathon
.planning/REQUIREMENTS.md
Markdown
d150629634f7174366c2d7b84e97bbd33001df9aa91f432c1b624fb9663997bd
5
896
JavaScript tools as production MLX architecture | They are migration inputs or fixtures, not the target repository tool contract | | iPhone deployment in the initial acceptance roadmap | The authoritative product explicitly does not require the earlier device path | | Fixture, replay, or mock output presented as live |...
codex-hackathon
.planning/REQUIREMENTS.md
Markdown
bb926515b1594962c871add72c5d2bc9593b12f9ed41411f797c899848fa3ec7
6
896
| Pending | | DATA-18 | Phase 5 | Pending | | DATA-19 | Phase 5 | Pending | | DATA-20 | Phase 5 | Pending | | DATA-21 | Phase 5 | Pending | | DATA-22 | Phase 5 | Pending | | DATA-23 | Phase 5 | Pending | | DATA-24 | Phase 5 | Pending | | BNCH-01 | Phase 6 | Pending | | BNCH-02 | Phase 6 | Pending | | BNCH-03 | Phase 6 ...
codex-hackathon
.planning/REQUIREMENTS.md
Markdown
f7a4ce6d77b8eede380aab7a6a358a610311b3a5ab0a07fffa1476c849ae3044
7
551
# Roadmap: MLX ## Overview MLX — the personal coding dataset and model pipeline progresses through eight contract-mandated acceptance boundaries: safe identity and brownfield migration control; durable local foundations; authorized repository facts; immutable evidence and preference claims; a Hugging Face-native data...
codex-hackathon
.planning/ROADMAP.md
Markdown
772f280d1073840797ad5a746a347ef9b7fa8a2c051b20c68863406d564aaaeb
0
896
- [x] 01-07-PLAN.md - [x] 01-08-PLAN.md - [x] 01-09-PLAN.md ### Phase 2: Foundation: configuration, SQLite, CAS, runs, and job queue **Goal:** Every later MLX workflow runs on contained configuration, migrated state, immutable artifacts, and recoverable orchestration. **Mode:** mvp **Depends on:** Phase 1 **Requireme...
codex-hackathon
.planning/ROADMAP.md
Markdown
08b42356fc9718d8c631e8006effe6f04e297dcfc466f6f18cd1cdc1ce8240ae
1
896
, or `FIXTURE`. 5. Synthetic repository oracles reproduce expected results for merges, reverts, renames, aliases, binaries, generated files, tests, and temporal history, including binary arithmetic exclusions and the “surviving attributed lines” label. **Event success floor evidence (tracked separately; does not compl...
codex-hackathon
.planning/ROADMAP.md
Markdown
02f48dd744437bc2a5b5238f7b15b828818e0fd45346a9d3c1b3f2e87bfc9003
2
896
cross-split reports, while secret, PII, visibility, rights, license, and export-policy gates block unsafe egress. 5. Validated canonical rows deterministically produce parseable MLX-LM, TRL, and LightEval exports, including next-assistant-action trajectory supervision, token/truncation/template statistics, immutable so...
codex-hackathon
.planning/ROADMAP.md
Markdown
1ac83647d20e88f04f92f37ed2ae471766976eef723e1ba02acd31649247f4d8
3
896
. Experiment manifests, model cards, and paired reports connect every dataset, profile, benchmark, model, adapter, version, resource measurement, result, and limitation while distinguishing profile, tuning, and combined gains and never counting mocks or capability skips as hardware acceptance. **Event success floor ev...
codex-hackathon
.planning/ROADMAP.md
Markdown
9f026d1626789de23fed55e40f7d4acbc3f709f172efa9595444ff00403d4b81
4
862
--- gsd_state_version: 1.0 milestone: v1.0 milestone_name: milestone current_phase: 2 current_phase_name: "Foundation: configuration, SQLite, CAS, runs, and job queue" status: executing stopped_at: Completed 02-05-PLAN.md last_updated: "2026-07-16T10:56:20.016Z" last_activity: 2026-07-16 last_activity_desc: Completed P...
codex-hackathon
.planning/STATE.md
Markdown
b5fa935c1e74cc187bcde069a0d54d4f157eb861e52ffab69432ed812bc2e385
0
896
from Apple's project without adding a fallback executable. - [Phase 01]: Treat mlx.package.json as read-only ownership evidence with no mutation authority. — The shared executable name cannot authorize PATH or unrelated executable changes. - [Phase 01]: Allow identity exclusions only for exact paths explicitly marked i...
codex-hackathon
.planning/STATE.md
Markdown
91092bb4732a55dd49eab45adf725c7934836e45e0a332f60bbcd6e575a73c8e
1
896
append-only events. - [Phase 02]: Return pending for live unique producer claims and recover only after terminal invalid evidence is recorded. ### Pending Todos None yet. ### Blockers/Concerns - [Phase 7]: Apple Silicon acceptance requires real M4 Pro evidence and cannot be closed by portable mocks or skips. ## De...
codex-hackathon
.planning/STATE.md
Markdown
7af33958cd00493acc3280c2b6dcedb9a0afad656d978dde9dd87558571b2427
2
175
<!-- refreshed: 2026-07-15 --> # Architecture **Analysis Date:** 2026-07-15 ## System Overview MLX — the personal coding dataset and model pipeline is specified in `docs/MLX_PROJECT_SPEC.md` as a local-first dataset, metrics, preference, benchmark, training, and Studio system. The implemented repository is a Bun/Typ...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
e2448df39a9d6ea21808f9d27e2714572bf2d7a90ae1c22c8becd31a503e2d21
0
896
─────────────────┬────────────────────────────┘ │ │ ▼ ▼ ┌──────────────────────────────┐ ┌────────────────────────────┐ │ Local Artifacts │ │ iOS Offline Runtime │ │ `data/`, `scripts/` │ │ `ios/SpecialistApp/` │ └───────...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
6e5d3630228fe6364e3912a103679b5aac2a07e739441bad929fbc900cd17bff
1
896
command context, and CLI lifecycle; keep pipeline implementation under `lib/`. - Use dynamic imports in `src/commands/*.ts` so command modules load only when invoked. - Use local files in `data/` as stage contracts: `data/corpus.json`, `data/adapter-tools.json`, `data/split.manifest.json`, `data/training.jsonl`, and `d...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
9f25ad299322d0a1bcbf0553c0dea223548c2c46e40311473589ce6d721d5dfc
2
896
wrapper, train-line parser, supervisor, checkpoint rollback, GRPO transform. - Depends on: Shell scripts, Python MLX-LM environment, adapter directory under `data/training/`. - Used by: `src/commands/train.ts`, `src/commands/pipeline.ts`, and `src/app-oneshot.tsx`. **Adapter and Device Layer:** - Purpose: Fuse adapter...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
c737c3279e2ea3c20d0c35745151ae510c28b53df3e7f470ce0cee9483b243d9
3
896
/adapter/run-adapter.ts:17`). ### Interactive REPL Path 1. No command starts `Repl` (`src/cli.tsx:60`). 2. `Repl` initializes config, transient context, message state, and model-server health checks (`src/repl.tsx:29`, `src/repl.tsx:39`, `src/repl.tsx:66`). 3. Plain text input streams through `streamConversation` (`s...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
c00dd70ea819a842270b59316e6c539c832959a287ced67c36d21458f3a35d35
4
896
. ### iOS Runtime Flow 1. Adapter artifacts and `adapter-tools.json` are deployed by shell scripts invoked through `lib/adapter/run-adapter.ts`. 2. `AdapterLoaderView` discovers adapter directories containing `adapters.safetensors` and `adapter_config.json` (`ios/SpecialistApp/AdapterLoaderView.swift`). 3. `AdapterTo...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
1fc3aa6ce5fb6387977e8ec47382b797a003ddb182d346c5d184559514699099
5
896
`, `bun src/cli.tsx <command>`. - Responsibilities: Parse args, start server, render REPL or one-shot app, stop owned server process. **Interactive command registry:** - Location: `src/commands/index.ts` - Triggers: Slash command input from `src/repl.tsx`. - Responsibilities: Resolve aliases, load command modules, pro...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
fa82ee42736ef1e743de4f9676f85dc3fe937c28a82c501220e0833f3c537856
6
896
PersonalBench worktree runner, and Studio are contracts in `docs/` but not implemented as directories. ## Anti-Patterns ### UI-Owned Business Logic **What happens:** `src/app-oneshot.tsx` contains an independent full-pipeline implementation in addition to `src/commands/pipeline.ts`. **Why it's wrong:** Stage orderin...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
ac6ec9dcf64e553aa19da8dab792c056b0ca60eefb949007fb190879fa3bd8c4
7
896
`), Acorn/deny-list parsing for JS tool bodies (`lib/discovery/validate/parse.ts`), and worker-thread sandbox execution (`lib/discovery/validate/sandbox.ts`). **Authentication:** No GitHub, Hugging Face, or user identity authentication layer is implemented in source. Local model server calls use an OpenAI-compatible c...
codex-hackathon
.planning/codebase/ARCHITECTURE.md
Markdown
d044efa1b8b965b13550ef130ca508625059cb1666a0d7c04e1c92246b016e13
8
220
# Codebase Concerns **Analysis Date:** 2026-07-15 ## Tech Debt **Product identity and CLI contract mismatch:** - Issue: The runnable surface is `bun src/cli.tsx` with demo pipeline commands, while the product contract requires a user-facing `mlx` executable and MLX command set. Non-MLX product identity strings remai...
codex-hackathon
.planning/codebase/CONCERNS.md
Markdown
f9384a7fe0cf5a9819c8b7f3a59166ba6ec73a6a4f0d879eca6174837bc9564e
0
896
`, `biome.json` - Impact: Repository scans, code search, and linting become slow or noisy. `bun run check` scans `.next/` and fails on generated Next.js files. - Fix approach: Move agent worktrees and upstream checkouts outside the project root, add `.next` to Biome ignores, and keep generated build output out of norma...
codex-hackathon
.planning/codebase/CONCERNS.md
Markdown
99bc83a095310d957ab468ff29f9554a06f5be04b8ad112f27e6c88ce95a395a
1
896
.sh`, `docs/MLX_PROJECT_SPEC.md` - Current mitigation: Adapter actions are mapped through a small TypeScript action table in `lib/adapter/run-adapter.ts`. - Recommendations: Replace shell script dispatch with an inspected allowlisted command registry, validate every path against `MLX_HOME`, reject symlink escapes, and ...
codex-hackathon
.planning/codebase/CONCERNS.md
Markdown
9b998d8791af11482a82e251f05b5811981414f8f5fd7f986839f01e57ac4567
2
896
is chunk-based instead of task/repository-based:** - Files: `lib/data/split.ts`, `lib/data/emit-jsonl.ts`, `lib/data/pipeline.ts`, `data/split.manifest.json`, `docs/MLX_DATASET_CONTRACT.md` - Why fragile: The split hash is deterministic, but the unit is a documentation chunk. It does not preserve `task_group_id`, tempo...
codex-hackathon
.planning/codebase/CONCERNS.md
Markdown
20222dd1c234bb970942ab03d91340ac0aa027177e97c26d8199e08bf0c6f8eb
3
896
Repository-scale evidence, metrics, object hashes, provenance, and resumable jobs cannot be queried or recovered reliably. - Scaling path: Implement `packages/core`, `packages/catalog`, migrations, WAL-mode SQLite, content-addressed objects, and Parquet outputs described in `docs/MLX_PROJECT_SPEC.md`. **No Hugging Fac...
codex-hackathon
.planning/codebase/CONCERNS.md
Markdown
675bd59b62b75e365718513816998b32e8ff4aa727b10e407b4e90a23a92750b
4
896
`, Parquet readability, config/split loading, row sizes, object references, duplicate IDs, task-group integrity, leakage, Croissant metadata, and dataset card completeness. - Files: `lib/data/types.ts`, `lib/data/emit-jsonl.ts`, `lib/data/pipeline.ts`, `docs/MLX_DATASET_CONTRACT.md` - Risk: Dataset artifacts can appear...
codex-hackathon
.planning/codebase/CONCERNS.md
Markdown
d033224583e5aea2912f41836a019df43c050a038e06107386fd00b7f72c875b
5
340
# Coding Conventions **Analysis Date:** 2026-07-15 This map covers MLX — the personal coding dataset and model pipeline. Use the conventions below when adding TypeScript/Bun CLI, local pipeline, and validation code. ## Naming Patterns **Files:** - Use lowercase kebab-case for command and multiword modules: `src/com...
codex-hackathon
.planning/codebase/CONVENTIONS.md
Markdown
093a26581951b761cf417f22daedc59232fa366b7c04fbec776f02c3117dabd9
0
896
` in `lib/discovery/pipeline.ts`, `SupervisorSignal` in `lib/training/supervisor.ts`. - Export package-boundary types from the module that owns the contract: `lib/discovery/types.ts` owns discovery contracts; `lib/data/types.ts` re-exports selected discovery types for data-generation code. ## Code Style **Formatting:...
codex-hackathon
.planning/codebase/CONVENTIONS.md
Markdown
3b5fd9b531df9292fb08c1bd10ff0bd36cf25eb1fc83137c40c3707b36ffbdea
1
896
.ts`. - Use domain-specific errors when callers need special handling. `KillPointError` in `lib/discovery/pipeline.ts` lets `src/commands/discover.ts` distinguish SWR-08 fallback from ordinary failures. - Convert unknown caught values with `toErrorMessage` from `lib/server/errors.ts` when surfacing process or stream er...
codex-hackathon
.planning/codebase/CONVENTIONS.md
Markdown
bfc24ab7e8d21bdb3b93afc48ee2dcaf4e5aadd8f726f4c44c4b3f49706bc4b8
2
896
ts` exports `command` as default; `lib/data/dedupe.ts`, `lib/discovery/validate/index.ts`, and `src/lib/config.ts` use named exports. **Barrel Files:** Use barrel-style files only for registries or contract aggregation. `src/commands/index.ts` owns command registry, command types, aliases, and completions. Avoid addin...
codex-hackathon
.planning/codebase/CONVENTIONS.md
Markdown
e6635bbdbd5e905222492f8b5f9cb04f4869243a0c3eae3c58d19456bf2d0a4d
3
290
# External Integrations **Analysis Date:** 2026-07-15 This audit distinguishes current code integrations from product-contract integrations. Current runtime integrations live in `src/`, `lib/`, `scripts/`, and `ios/SpecialistApp/`; target integrations are specified in `docs/MLX_PROJECT_SPEC.md`, `docs/MLX_DATASET_CON...
codex-hackathon
.planning/codebase/INTEGRATIONS.md
Markdown
7ae5251990048826794c64746d77e238b6255e1160e9692893d1d8c28d46462f
0
896
`push_to_hub` code detected in `src/`, `lib/`, or `scripts/`. **GitHub and Git Repository Access:** - GitHub repository ingestion - required by `docs/MLX_PROJECT_SPEC.md` for selected repositories, metrics, PR/review metadata, mirrors, and holdouts. - SDK/Client: target `gh`, GraphQL, REST, and local Git mirrors in ...
codex-hackathon
.planning/codebase/INTEGRATIONS.md
Markdown
ddd5b1b669bb8335609fd64332ac6488e1b83116437b0d6f05e972c5d7e59656
1
896
/corpus.json` in `lib/discovery/corpus.ts`. - Current embedding/model caches: handled by `@huggingface/transformers` and MLX-LM default caches; no repo-specific cache configuration detected. - Target cache paths: `~/.mlx/cache/huggingface/` and `~/.mlx/cache/embeddings/` in `docs/MLX_PROJECT_SPEC.md`. ## Authenticatio...
codex-hackathon
.planning/codebase/INTEGRATIONS.md
Markdown
a1baf0c9537ba32f765601e3061f2616f0ff4991224092faf72b63fcb8c38ed0
2
896
training/fusion: `ADAPTER_DIR`, `MODEL`, `BASE_MODEL`, `DATA_DIR`, `OUT_DIR`, `TOOLS_JSON`, and training hyperparameter env vars consumed by `scripts/*.sh`. **Secrets location:** - `.env.example` and `.env.local` exist and were not read. - No secret manager, keychain, or vault integration detected in current code. - P...
codex-hackathon
.planning/codebase/INTEGRATIONS.md
Markdown
e928a0dd4302c62ff0955f060b997c466b68ee6955a01b0e8b260b64dc935f53
3
393
# Technology Stack **Analysis Date:** 2026-07-15 MLX — the personal coding dataset and model pipeline is currently implemented as a local-first Bun/TypeScript CLI with an MLX-LM Python training and serving toolchain plus an iOS Swift runtime. Use the product contract in `docs/MLX_PROJECT_SPEC.md`, `docs/MLX_DATASET_C...
codex-hackathon
.planning/codebase/STACK.md
Markdown
2b81e24e381522b09b2dab2e96a9e3a1c8c96e8095dca9ba822a5d1708aa175c
0
896
train.sh`, `scripts/fuse.sh`, and `scripts/fuse-bench.sh`. - `mlx-lm-lora` 0.1.9 - GRPO training path invoked by `scripts/grpo.sh` and `scripts/grpo-smoke.sh`. - MLX Swift / MLXLMCommon / MLXLLM - iOS runtime dependencies imported by `ios/SpecialistApp/ModelState.swift`. - JavaScriptCore - on-device dynamic tool execut...
codex-hackathon
.planning/codebase/STACK.md
Markdown
5fb0fd7289a20b2a74820a67914290a056152cbe5819978c46f39fc4576322d5
1
896
. - `LOCAL_MODEL` selects the model ID for `mlx_lm.server` and the AI SDK provider in `src/lib/config.ts`, `src/lib/server-manager.ts`, `lib/model.ts`, and `src/repl.tsx`. - `ADAPTER_DIR` selects adapter output/input paths for training, fusion, and deployment in `src/lib/config.ts`, `lib/training/run-training.ts`, `scr...
codex-hackathon
.planning/codebase/STACK.md
Markdown
63c33506b83dfb0205483c509f22002dbdecc68213a627db0aa9efab6b551a9e
2
844
# Codebase Structure **Analysis Date:** 2026-07-15 ## Directory Layout ```text repository-root/ ├── AGENTS.md # Repository instructions and MLX product constraints ├── README.md # Existing runbook for the local specialist pipeline ├── package.json # Bun/TypeScript scripts and depe...
codex-hackathon
.planning/codebase/STRUCTURE.md
Markdown
10e39c6af35fb60c4c6b4cdd8687dc1075ace1c26ec199f06ab78d96901e4208
0
896
free host boundary. - Contains: Strict Zod normalization, failure-dominant aggregation, immutable eight-check descriptors, fake-tested runner/CLI contracts, a catalog-only Bun process adapter, a named Apple Silicon probe, and an executable internal process entry; package-script wiring remains external. - Key files: `sr...
codex-hackathon
.planning/codebase/STRUCTURE.md
Markdown
c02fca42da4105026d9817510c387d8c4e99e9fa7432152c8f613b8046442580
1
896
`, `lib/discovery/validate/parse.ts`, `lib/discovery/validate/sandbox.ts`, `lib/discovery/validate/sandbox.worker.mjs`, `lib/discovery/validate/fuzz.ts`, `lib/discovery/validate/trajectory.ts`. **`lib/data/`:** - Purpose: Generate, judge, deduplicate, stratify, split, and emit JSONL training/evaluation data. - Contain...
codex-hackathon
.planning/codebase/STRUCTURE.md
Markdown
5bb060f5e04297c9ab972241adb10da0b463f6b3f4ee1be53cd98d6c090a0b3a
2
896
.swift`, `ios/SpecialistApp/ToolRegistry.swift`, `ios/SpecialistApp/AdapterToolsLoader.swift`, `ios/SpecialistApp/DynamicTool.swift`. **`ios/_upstream/`:** - Purpose: Upstream MLX Swift examples and support files used by the iOS runtime. - Contains: Swift package/project content under `ios/_upstream/`. - Key files: `i...
codex-hackathon
.planning/codebase/STRUCTURE.md
Markdown
1a8689fc91c894de8de7c9e4662b14dd6381ac5a92a73302907a824a553b9cc6
3
896
/dependencies, handlers, exit codes, and orchestration result types. - `src/core/mlx-home.ts`: Pure default/absolute-override root resolver with no filesystem access. - `src/core/state-ownership.ts`: Non-following final-path inspection and exclusive state ownership marker creation. - `src/validation/result.ts`: Discrim...
codex-hackathon
.planning/codebase/STRUCTURE.md
Markdown
b27b03aeadd087ea4d949d7ed54ed9e91e54fc4fefd3fd9219f1a82d96ac249f
4
896
python/mlx_dataset/`: Not detected. - `schemas/`: Not detected. - `migrations/`: Not detected. - SQLite catalog implementation: Not detected. - Parquet/Hugging Face dataset compiler implementation: Not detected. - Local Studio application matching `docs/MLX_PROJECT_SPEC.md`: Not detected. ## Naming Conventions **File...
codex-hackathon
.planning/codebase/STRUCTURE.md
Markdown
45d35076b3a28fe7279c46a8ff9c2e97bebed5a4553faeeb59c4af3db04f1384
5
896
<feature>.ts` - Pipeline wiring: `lib/data/pipeline.ts` - Shared row types: `lib/data/types.ts` - Tests: `lib/data/<feature>.test.ts` - Preserve source chunk provenance and split isolation through `DataGenMeta` and `verifyNoOverlap`. **New Training Behavior:** - TypeScript wrapper/supervision: `lib/training/` - Shell ...
codex-hackathon
.planning/codebase/STRUCTURE.md
Markdown
37e3a12f0635d62872a7ac7eced2e7e315923a3316649d74cf1a8f8b26fa086a
6
800
# Testing Patterns **Analysis Date:** 2026-07-15 This map covers MLX — the personal coding dataset and model pipeline. Tests are primarily TypeScript unit and integration-style tests around CLI commands, data generation, validation gates, training supervision, and local pipeline behavior. ## Test Framework **Runner...
codex-hackathon
.planning/codebase/TESTING.md
Markdown
212124807d22de07bcd7ef8b7453e023ae2126cd3dd57906fbe7187a62228913
0
896
validate/ ├── index.ts ├── index.test.ts ├── sandbox.ts ├── sandbox.test.ts └── sandbox.worker.mjs src/lib/ ├── config.ts ├── config.test.ts ├── conversation.ts └── conversation.test.ts ``` ## Test Structure **Suite Organization:** ```typescript import { describe, expect, it } from 'vitest'; import { runInSandbox } ...
codex-hackathon
.planning/codebase/TESTING.md
Markdown
071595490e4095b15835760083048a294f3a8e23b5526df132ce40cdc23bda8c
1
896
/lib/data/pipeline`, `@/lib/training/run-training`, `@/lib/eval/run`, `@/lib/adapter/run-adapter`. - Mock UI components when testing command behavior rather than Ink rendering: `../components/train-view` and `../components/pipeline-view` in `src/commands/commands.test.ts`. - Use `vi.mocked(moduleFn)` when changing mock...
codex-hackathon
.planning/codebase/TESTING.md
Markdown
305b340b0a308aa6902ede36c9e6b403921c62995e9afb325a32cbac6993150a
2
896
benchmark:smoke`, and `local:check`. All eight enter `src/validation/process-entry.ts` through fixed modes and canonical check IDs. Portable commands pass; absent later products fail explicitly with `LIVE` source and owner phase; local host behavior is a probed `LIVE` result. Unit and integration success remains labele...
codex-hackathon
.planning/codebase/TESTING.md
Markdown
a0b394e2e96e8031375d543cc348445e3f19d464467393c68a1b06b81ca4d108
3
814
# Legacy Planning Inventory — Pre-MLX Adaptation **Inventory date:** 2026-07-15 **Legacy snapshot:** `820b0b6e2542026d00efb5f870656f1a6c15acfd` **Deletion commit:** `92342150973a16cfde3ba24aa2034ef946b90ea3` **Archive:** `.planning/milestones/legacy-2026-04-pre-mlx-phases/` ## Purpose and boundary This invento...
codex-hackathon
.planning/migrations/2026-07-15-legacy-planning-inventory.md
Markdown
affcce5941bb75472ae8dce2e13ab42365e1c6c2bb6b047fa87f6ae023c801e1
0
896
+ Eval Gen | Chunk/persona types, deterministic 70/30 chunk split, schema gates, MinHash/cosine dedup, QA and tool trajectories, judge-jury filtering, local JSONL, held-out eval, `/api/data-gen` | Evidence quality and semantic sidecars: Phase 4 (`EVID-*`). Canonical Parquet/Hugging Face schemas, group/repository/tempor...
codex-hackathon
.planning/migrations/2026-07-15-legacy-planning-inventory.md
Markdown
36a3bfed5075ae9803f69921337bb54e82f8a4f6406b7943d90f0fa7fa09d4b7
1
896
files - `01-01-SUMMARY.md` - `01-01-next-scaffold-sentry-providers-PLAN.md` - `01-02-SUMMARY.md` - `01-02-python-venv-microbench-PLAN.md` - `01-03-SUMMARY.md` - `01-03-ios-llmeval-fork-deploy-PLAN.md` - `01-04-SUMMARY.md` - `01-04-adapter-hotswap-PLAN.md` - `01-05-SUMMARY.md` - `01-05-toolregistry-parser-roundtrip-PLA...
codex-hackathon
.planning/migrations/2026-07-15-legacy-planning-inventory.md
Markdown
f52cb59bb10a3680b83ada62e0b06cb96bbbfe6baa1fd05c493c34ea342db9f2
2
896
- `01-foundation-smoke/01-01-next-scaffold-sentry-providers-PLAN.md` - `04-data-eval-gen/04-01-SUMMARY.md` - `04-data-eval-gen/04-01-doc-split-types-personas-PLAN.md` - `04-data-eval-gen/04-05-judge-pipeline-eval-emission-PLAN.md` The original versions remain recoverable from `820b0b6`. ## Removal and reuse rule Arc...
codex-hackathon
.planning/migrations/2026-07-15-legacy-planning-inventory.md
Markdown
e14c26195079ee9999da41fd3a9748de7fe07c5c9a00f0c066137b6069d08a0b
3
222
--- phase: 01-foundation-smoke plan: 01 type: execute wave: 1 depends_on: [] files_modified: - package.json - tsconfig.json - next.config.ts - app/layout.tsx - app/page.tsx - app/instrumentation.ts - app/api/smoke/route.ts - sentry.client.config.ts - sentry.server.config.ts - sentry.edge.config.ts ...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-01-next-scaffold-sentry-providers-PLAN.md
Markdown
5d1b9110e8b2ebe2a10be249339f46bd26c257638865a123f77a74157d2ce628
0
896
` / `claude-opus-4-latest` - OpenAI: `gpt-5` - Google: `gemini-3.1-flash-lite` </interfaces> </context> <tasks> <task type="auto"> <name>Task 1: Scaffold Next.js 15 + AI SDK v6 + pinned deps</name> <files> package.json, tsconfig.json, next.config.ts, app/layout.tsx, app/page.tsx, .gitignore, .env.example </...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-01-next-scaffold-sentry-providers-PLAN.md
Markdown
9406962e22d991603651728cf5d4335c91f38173ff9b6b95922b03547646c061
1
896
install && npx tsc --noEmit && npx next build 2>&1 | tail -20</automated> </verify> <acceptance_criteria> - `package.json` contains the EXACT version strings listed above (grep each). - `grep -E "\"next\": \"~15.5.15\"" package.json` succeeds. - `grep -E "\"ai\": \"\\^6.0.168\"" package.json` succeeds. ...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-01-next-scaffold-sentry-providers-PLAN.md
Markdown
f9550f8ffd105872295ddd82adcb48500342e4c33bb8ca346e3874c7abec6528
2
896
), prompt, experimental_telemetry: { isEnabled: true, functionId: 'smoke.google' } }), ]); const summarize = (r: PromiseSettledResult<{ text: string }>) => r.status === 'fulfilled' ? { ok: true, text: r.value.text } : { ok: false, error: String(r.reason).slice(0, 400) }; return Res...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-01-next-scaffold-sentry-providers-PLAN.md
Markdown
927eec38aa1454e68a3264028ba700681ec13da41ad1b2a9af755aa38ac723e5
3
896
401 bodies (may contain headers). | | T-01-03 | Denial of Service | Public `/api/smoke` hit in a loop burns TPM | accept | Pre-demo dev env only; demo machine not publicly reachable. Remove route before any deploy. | | T-01-04 | Tampering | Unpinned deps drift at install time | mitigate | Exact version pins per researc...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-01-next-scaffold-sentry-providers-PLAN.md
Markdown
1a5657b15db00d0e87082caea7fe87f1f3d2d1ef85f0a6e65f0c9f7e40d93502
4
358
--- phase: 01-foundation-smoke plan: 01 status: complete requirements: [FND-03, FND-04] completed: 2026-04-18 --- # 01-01 SUMMARY — Next.js Scaffold + Sentry + 3-Provider Smoke ## What shipped - **Next.js 15.5.15 App Router scaffold** — hand-authored `package.json` with exact pins per research/SUMMARY.md §2. `npm in...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-01-SUMMARY.md
Markdown
82101377dc73b683da006984f5813697abde3cdce2a1935c2a772c06bff01b85
0
896
AI_APICallError`. Replaced with explicit extraction of `message`, `statusCode`, and `cause.message` so alias drift is actionable in the response body (still <400 chars, still no silent fallback). 4. **`createAnthropic({baseURL})` instead of the default `anthropic()` export.** Needed to neutralize operator's shell `ANTH...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-01-SUMMARY.md
Markdown
25d326cf2e6cad0e729a623ff0a086fd7fffd3d83a39be665ddc346d798f72c9
1
433
--- phase: 01-foundation-smoke plan: 02 type: execute wave: 1 depends_on: [] files_modified: - requirements.txt - scripts/setup-venv.sh - scripts/micro-bench.sh - scripts/grpo-smoke.sh - data/bench/bench.jsonl - data/bench/README.md autonomous: false requirements: [FND-01, FND-02] must_haves: truths: ...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-python-venv-microbench-PLAN.md
Markdown
05ef81c818746ed957f1962eab2cddbe27956b083ca34e21137ab47ebb5773bc
0
896
.lora \ --model unsloth/gemma-4-E4B-it-UD-MLX-4bit \ --train \ --data ./data/bench \ --iters 50 \ --batch-size 2 \ --num-layers 16 \ --max-seq-length 1024 \ --grad-checkpoint \ --steps-per-report 5 \ --learning-rate 1e-5 \ --adapter-path ./data/bench/adapter-50iter ``` KILL-POINT (FND-02): peak m...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-python-venv-microbench-PLAN.md
Markdown
9cccc877882ba5cdf38f17eac3f962748ddb7d4f3d6bc13c193bb63eb53d7f1b
1
896
Users/julianschmidt/Documents/GitHub/codex-hackathon && bash scripts/setup-venv.sh 2>&1 | tail -30 && source .venv/bin/activate && mlx_lm.lora --help 2>&1 | grep -E "(--iters|--num-layers|--grad-checkpoint)" | head -5 && wc -l data/bench/bench.jsonl && python -c "import json; [json.loads(l) for l in open('data/bench/be...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-python-venv-microbench-PLAN.md
Markdown
8ef0ddc6e0ed7c816b15fc7bbf9d020ded37ec2bef0ff53ab84750e4ff605b55
2
896
-50iter 2>&1 | tee -a "$LOG" END=$(date +%s) echo "=== Elapsed: $((END-START)) s ===" | tee -a "$LOG" echo "" echo "=== KILL-POINT CHECK (FND-02) ===" PEAK=$(grep -iE "peak (memory|mem)" "$LOG" | tail -1 || echo "") echo "PEAK line: $PEAK" echo "If peak > 20 GB → switch ...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-python-venv-microbench-PLAN.md
Markdown
8f9d9dcca2f1ebf9b70584dd70bc727f66e2282c1bbe46257082782b5258ee97
3
896
env.base && ./scripts/micro-bench.sh`. Confirm E2B peak is well under 20 GB. Notify plans 01-03, 01-04 to read `.env.base`. 3. Inspect `data/bench/grpo-help.log` — confirm whether `mlx_lm_lora.train` exposes a CLI reward-fn flag (look for `--reward-fn`, `--reward-function`, `--reward-path`). If none present, note "...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-python-venv-microbench-PLAN.md
Markdown
1d80f19d747156d5778e7b77c2d8471db7a5fec8c847fccfc589e30e6967a093
4
896
success_criteria> FND-01 (venv + `mlx_lm.lora --help` responds) and FND-02 (bench run + E2B switch rule honored) both pass. Downstream plans know the pinned base model and the measured sec/iter. </success_criteria> <output> After completion, create `.planning/phases/01-foundation-smoke/01-02-SUMMARY.md` recording: - F...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-python-venv-microbench-PLAN.md
Markdown
3865d91e3bef531c3da611f9f2b5fdd013c4457dcaf86fe81fdaea6c226453a2
5
140
--- phase: 01-foundation-smoke plan: 02 status: complete requirements: [FND-01, FND-02] completed: 2026-04-18 --- # 01-02 SUMMARY — Python venv + 50-iter LoRA micro-bench ## Decision line (resume-signal) `base_model=e4b peak_gb=6.311 sec_per_iter=0.434 grpo_reward_fn=bridge` ## FND-02 kill-point result | Measure |...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-SUMMARY.md
Markdown
0b4af1e3a9997b9e92824512493b52c3c52d9fb438c17f528f3d5722e14048ca
0
896
airplane-mode story. Not pinned — wandb is incidental. 3. **`scripts/setup-venv.sh` uses `uv venv --python 3.12`** instead of the plan's literal `python3.12 -m venv`. `python3.12` is absent from this operator's PATH (miniconda 3.13 + shell-inherited env only); `uv` acquires 3.12 on demand. Plan allowed `PYTHON...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-SUMMARY.md
Markdown
39ecaf56fdd06d61c28e8d382d412096db999866489e357019475807fd41cf23
1
896
FND-01) - (pending after this SUMMARY) feat(01-02/t2): 50-iter E4B LoRA bench + GRPO surface capture (FND-02) ## Self-Check: PASSED - FND-01: venv + `mlx_lm.lora --help` + no authored `.py` ✅ - FND-02: peak memory measured (6.311 GB) and **well under** 20 GB kill-point ✅ - Adapter saved for plan 01-04 hot-swap ✅ - GR...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-02-SUMMARY.md
Markdown
78ce1c91fe97caa5d6947b921c464083051469730339512e7cdc30fd457ab4dc
2
350
--- phase: 01-foundation-smoke plan: 03 type: execute wave: 1 depends_on: [] files_modified: - ios/SpecialistApp/SpecialistApp.xcodeproj/project.pbxproj - ios/SpecialistApp/SpecialistApp/SpecialistApp.swift - ios/SpecialistApp/SpecialistApp/ContentView.swift - ios/SpecialistApp/SpecialistApp/ModelConfig.swift ...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-03-ios-llmeval-fork-deploy-PLAN.md
Markdown
37a8de83401248a4b8dbd3bc3d6f32d9a7e5a68d9cf8345bf672d14e491a93aa
0
896
base` from repo root; default E4B): - `unsloth/gemma-4-E4B-it-UD-MLX-4bit` (primary) - `unsloth/gemma-4-E2B-it-UD-MLX-4bit` (if `.env.base` says so per plan 01-02 kill-point) Entitlement (PRD §8.1 + PITFALLS P8): - `com.apple.developer.kernel.increased-memory-limit` — BOOL true - Requires paid Apple Developer account ...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-03-ios-llmeval-fork-deploy-PLAN.md
Markdown
bd382df0eb66e29144436b5a5090fd7736a38a768395da4a80cc21b729dfa1f6
1
896
EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.developer.kernel.increased-memory-limit</key> <true/> </dict> </plist> ``` Update `project.pbxproj` to reference this entitlements file on the SpecialistA...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-03-ios-llmeval-fork-deploy-PLAN.md
Markdown
de8847de444548c5e557f623723b860685e222acfdf16f653ce0c4456f0af014
2
896
GitHub/codex-hackathon/.planning/research/SUMMARY.md §7 (verify-at-H0 #5 base model pre-fetch) </read_first> <action> Operator-assisted: device must be physically connected via USB-C and "Trust This Computer" confirmed BEFORE airplane mode. 1. Write `scripts/ios-deploy-device.sh`: ```bash #!/...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-03-ios-llmeval-fork-deploy-PLAN.md
Markdown
ae4c14435e604b564e109a4053344e4d4ea656c97954ba523990b191a2ca4c8b
3
896
6. Toggle airplane mode on iPhone Control Center. Orange airplane icon visible; Wi-Fi/BT/Cellular off. 7. Same prompt re-run from cold-start generates tokens end-to-end. 8. Xcode Console (or `log stream`) shows `os_proc_available_memory` ≥ 5000 MB — proving entitlement active. </how-to-verify> <resume-signa...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-03-ios-llmeval-fork-deploy-PLAN.md
Markdown
8b8b143a63af3ba2459ecb408c8f11e7cd341a4c87f33386622eba2e6d0ed89c
4
735
--- phase: 01-foundation-smoke plan: 03 status: complete requirements: [FND-05, FND-06, FND-07] completed: 2026-04-18 --- # 01-03 SUMMARY — iOS LLMEval fork + airplane-mode deploy ## Decision line (resume-signal) `device_udid=5062E62E avail_mb=tbd airplane_generates=yes base=e4b bundle=mlx.LLMEval` ## FND-05/06/07 ...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-03-SUMMARY.md
Markdown
06ad95ffe5c9747e50c28eff82473d9cb96495cdfdb8ed516bc21c118e788e6b
0
896
UDID auto-detect via env) - `ios/SpecialistApp/OPERATOR.md` (Xcode-GUI steps; model pin; deploy playbook) - `data/state/ios-device.json` — **pending** (operator to write on next deploy run) ## Commits - `2b7fb79` feat(01-03/t1): iOS fork bootstrap + deploy script + operator playbook (FND-05) - `670dc6d` fix(01-03): p...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-03-SUMMARY.md
Markdown
72d74b11918a05fb4cbbede83f6c2b286d1d57ec0fce6c03c74944ed38f0eb15
1
388
--- phase: 01-foundation-smoke plan: 04 type: execute wave: 2 depends_on: [02, 03] files_modified: - scripts/fuse-bench.sh - scripts/deploy-adapter.sh - ios/SpecialistApp/SpecialistApp/AdapterLoaderView.swift - ios/SpecialistApp/SpecialistApp/ModelState.swift - ios/SpecialistApp/SpecialistApp/ContentView.swif...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-04-adapter-hotswap-PLAN.md
Markdown
d257cdab24e50114985c3e8268cc0e9d3d7e6c0233450483c37f69cf090d4a93
0
896
(PRD §14 H1): ``` mlx_lm.fuse \ --model unsloth/gemma-4-E4B-it-UD-MLX-4bit \ --adapter-path data/bench/adapter-50iter \ --save-path data/bench/fused-50iter ``` (Adjust base model to E2B if `.env.base` says so.) Canonical `xcrun devicectl` copy: ``` xcrun devicectl device copy to \ --device $UDID \ --domain-t...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-04-adapter-hotswap-PLAN.md
Markdown
d6837585cd5043699ce18eb98f4d6aa3531bd0a7baa430423668b475f56848eb
1
896
scripts/deploy-adapter.sh` with **MANDATORY post-copy verification** (PITFALLS P5): ```bash #!/usr/bin/env bash set -euo pipefail UDID=${IPHONE_UDID:-$(jq -r .udid data/state/ios-device.json 2>/dev/null)} BUNDLE=${IPHONE_BUNDLE:-$(jq -r .bundle_id data/state/ios-device.json 2>/dev/nul...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-04-adapter-hotswap-PLAN.md
Markdown
cfbcb72006946d56ef529f3d94352457868b00e322ea6992668846e911daf9c9
2
896
ios/SpecialistApp/SpecialistApp/ModelState.swift, ios/SpecialistApp/SpecialistApp/ContentView.swift </files> <read_first> - /Users/julianschmidt/Documents/GitHub/codex-hackathon/PRD_SPEC.md §8.2 items 1, 2; §8.3 (hot-swap) - /Users/julianschmidt/Documents/GitHub/codex-hackathon/ios/_upstream/Tools/llm-tool/...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-04-adapter-hotswap-PLAN.md
Markdown
3c056f78e02af1d4cdbc92504ab3aaba8d5c6040e50b511d1ab777cf6b5db222
3
896
area above the existing chat UI. 4. **Probe prompt pattern** — add a button "Probe" that sends a deterministic prompt (e.g., `"Complete: The quick brown fox"`) at temperature 0.0 and records the first 32 tokens before swap and after swap. Both runs' output should be captured in a `.txt` file in `/Documents/probe.l...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-04-adapter-hotswap-PLAN.md
Markdown
1e3a3f109d21ba858ad20140d188044508b68f88bf633bfb6ebe72b74559c277
4
896
-----------|-----------------| | T-01-12 | Tampering | Silent devicectl copy failure yields stale adapter illusion | mitigate | Mandatory `devicectl device info files` post-copy check in `deploy-adapter.sh` (P5). | | T-01-13 | Elevation of Privilege | Malicious adapter file in `/Documents/` executed as weights | accept...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-04-adapter-hotswap-PLAN.md
Markdown
c697d101c6f7cbe74324dbdf0dd54a71e7eb32e717a4b299941bbad0232fb56c
5
366
--- phase: 01-foundation-smoke plan: 04 status: complete requirements: [FND-08] completed: 2026-04-18 --- # 01-04 SUMMARY — LoRA adapter hot-swap (FND-08 kill-point) ## Decision line (resume-signal) `swap1_ms≈1200 swap2_ms≈1200 probe_differs=yes verdict=pass fuse_base=e4b` ## FND-08 kill-point result | Measure | V...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-04-SUMMARY.md
Markdown
a12b372076bdf0509447448e711af2e041b9f4d8086adeaabfefa9a037035546
0
896
to" scripts/deploy-adapter.sh` | ✅ | | `grep -E "devicectl device info files" scripts/deploy-adapter.sh` (P5 guard) | ✅ | | `grep "load(adapter" ios/SpecialistApp/ModelState.swift` | ✅ (3.x surface) | | `grep "lastSwapMs" ios/SpecialistApp/ModelState.swift` | ✅ | | `grep -l "AdapterLoaderView" ios/SpecialistApp/Adapter...
codex-hackathon
.planning/milestones/legacy-2026-04-pre-mlx-phases/01-foundation-smoke/01-04-SUMMARY.md
Markdown
1a20eb3e8f96d83501ba8303ebb44e0626df759fe68b1622a2d13ef1183b861a
1
655