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 |
|---|---|---|---|---|---|---|
-only fallback on unrecoverable) and TRN-02 kill-point (GRPO reward variance collapse → skip GRPO). Also owns the Phase 4-JSONL → GRPO-JSONL transform so Path A has real data to consume.
Output: Three `lib/training/*.ts` modules with tests + one tsx CLI. No production code paths touched yet — 05-04 wires this into `/ap... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-03-supervisor-rollback-transform-PLAN.md | Markdown | ddf1f17b52e4f28904b5af376e8382a9e185a7935d59c262347da94121b18be1 | 1 | 896 |
` returns `200` and copies the 200-file over `adapters.safetensors`.
- Test 2: Numbered files out of alpha-order (e.g. `0000100`, `0000050`) still returns highest iter (`100`).
- Test 3: Directory with ONLY `adapters.safetensors` (no numbered) throws `Error` with message containing `no numbered checkpoint`.
... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-03-supervisor-rollback-transform-PLAN.md | Markdown | e753f0033437cd1a9e92d191510933809c9b476722312c0acd47398b51d0c77e | 2 | 896 |
</done>
</task>
<task type="auto" tdd="true">
<name>Task 2: supervisor.ts + tests — NaN/spike/variance-collapse state machine</name>
<files>lib/training/supervisor.ts, lib/training/supervisor.test.ts</files>
<read_first>
- lib/training/rollback.ts (just created — supervisor consumes this on rollback)
- .... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-03-supervisor-rollback-transform-PLAN.md | Markdown | 0ad1d54882c04a36e0daaba7f4de2c8ff0d81048607daf94e6b771c08a37136b | 3 | 896 |
', reason: 'variance' };
}
}
}
// Loss branch — NaN + spike detection (TRN-04)
if (pt.loss === undefined) return { kind: 'continue' };
const bad = Number.isNaN(pt.loss) || !Number.isFinite(pt.loss);
if (bad) {
this.nanCount += 1;
if (this.nanCount >= NAN_THRESHOLD) {
... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-03-supervisor-rollback-transform-PLAN.md | Markdown | 16c8b8769e77a3acc39399fe1dd7b718a07e9132b1ffd122a24500f767b12633 | 4 | 896 |
>
<name>Task 3: transformGrpoJsonl.ts + scripts/build-grpo-jsonl.ts — SFT → GRPO data transform</name>
<files>lib/training/transformGrpoJsonl.ts, lib/training/transformGrpoJsonl.test.ts, scripts/build-grpo-jsonl.ts</files>
<read_first>
- .planning/phases/05-train-model-a/05-RESEARCH.md §Pitfall P5 (GRPO data ... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-03-supervisor-rollback-transform-PLAN.md | Markdown | 7ccc1dc5e6d60e72a8417ed6c2211c6307fd27770fdfd1438c326e3a3a6a014f | 5 | 896 |
;
let answer: string;
const m = TOOL_CALL_RE.exec(lastAssistant);
if (m) {
try {
const call = JSON.parse(m[1]) as { name?: string };
answer = call.name ?? lastAssistant.slice(0, 200);
} catch { answer = lastAssistant.slice(0, 200); }
} else {
answer = lastAssistant.slic... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-03-supervisor-rollback-transform-PLAN.md | Markdown | 39f466feb8e64417d99e3a968b3fe1040a64a8b578facb0fe081284ddd837a82 | 6 | 896 |
| grep -E "^0$"</automated>
</verify>
<acceptance_criteria>
- `lib/training/transformGrpoJsonl.ts` exports `transformSftToGrpo` and `GrpoLine` type
- Contains regex matching `<\|tool_call\|>`
- All 6 behavior tests pass
- `scripts/build-grpo-jsonl.ts` is a tsx CLI that imports `transformSftToGrpo`
... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-03-supervisor-rollback-transform-PLAN.md | Markdown | d46c2fb75338cf5f28ab6b41125de0e2b543f2b0b8fb2ac49976bf1a5ea920c6 | 7 | 841 |
# Phase 05-04 E2E Notes
## What Was Wired
- `/api/train` now invokes `bash scripts/train.sh` for SFT and `bash scripts/grpo.sh` for GRPO/skip-path instead of calling Python entrypoints directly.
- `TrainSupervisor` is active per request and can emit:
- `rollback` on repeated NaN or large post-warmup spikes
- `abo... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-e2e-notes.md | Markdown | 2a33ca1e16e0b738f8a458ad5b021266cdb21ea6a37a768b7fee0ee964aece20 | 0 | 483 |
---
phase: 05-train-model-a
plan: 04
type: execute
wave: 3
depends_on: [05-02, 05-03]
files_modified:
- app/api/train/route.ts
- lib/streams/trainParser.ts
- .planning/phases/05-train-model-a/05-04-e2e-notes.md
autonomous: true
requirements: [TRN-01, TRN-02, TRN-03, TRN-04]
must_haves:
truths:
- "`/api/tra... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | e318054ce6e4da2426073826f36baf982f41878f3c11d61d13a0b79c4dc8cb19 | 0 | 896 |
"
---
<objective>
Wire plans 05-02 and 05-03 into Phase 2's `/api/train` so training actually runs end-to-end with live loss+reward streaming, NaN rollback, and kill-point narration — then prove it with one SFT→GRPO dry run. Also patch `lib/streams/trainParser.ts` if the 05-01 smoke revealed a reward-line shape Phase ... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | c78f30a8932f21077cd4461731ead12101e1532f8a2e30061a4a7a946b819212 | 1 | 896 |
version)
- lib/streams/trainParser.test.ts (6 existing tests — all must still pass)
</read_first>
<action>
1. Open `.planning/phases/05-train-model-a/05-01-smoke-notes.md`.
2. If `REWARD_SHAPE_MATCHES_PHASE2=YES` → **STOP**, this task is a no-op. Skip to Task 2.
3. If `REWARD_SHAPE_MATCHES_PHASE2=NO`:
a. Cop... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | 92d62678bb9b5fc0893fc9c050965e3b2eb4a19552ed24a574d1f170b5d34f85 | 2 | 896 |
supervisor**:
```typescript
import { TrainSupervisor, type SupervisorSignal } from '@/lib/training/supervisor';
```
2. **Replace direct Python spawn with bash wrapper spawn**. Inside the stream `execute`, swap:
```typescript
// BEFORE (Phase 2 02-02):
const bin = process.env.MLX_LM_BIN || (mode === 'sft' ? 'mlx_lm.lor... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | c36b0bb1cad9ed854adfb447e3bbfb22d35c8ef31bd12869a8669966e249e6e8 | 3 | 896 |
('SIGTERM'); } catch {}
span.setAttribute('training.aborted', signal.reason);
writer.write({ type: 'data-train', data: { iter: -1, loss: undefined, reward: undefined }, transient: true });
// Frontend pill reads `aborted` via Sentry span OR via a dedicated marker the client interprets.
return;
}
if... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | f3ce152ea06b994744e1a1019fee0123bac65a790967db70fbb2a1e788ec84d3 | 4 | 896 |
/api/train/route.ts && grep -n "ingestRawLine" app/api/train/route.ts && grep -n "performRollback" app/api/train/route.ts && grep -n "RESUME_ADAPTER" app/api/train/route.ts && grep -n "training.aborted\|training.grpo_collapsed" app/api/train/route.ts && grep -n "runtime = 'nodejs'" app/api/train/route.ts && grep -n "dy... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | b069d85ee241e36cb1f5bffcc5ba0a7c5e58e223f9d51de0fac31569b663fde9 | 5 | 896 |
/phases/05-train-model-a/05-01-smoke-notes.md | cut -d= -f2)
curl -N -X POST http://localhost:3000/api/train \
-H 'content-type: application/json' \
-d "{\"mode\":\"grpo\",\"iters\":${FINAL}}" | tee data/bench/e2e-grpo.log
```
Expected: stream of `data-train` events with `{iter, reward}`. If FINAL=0, instead expect... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | 65d564c2f25b2544a55216beef9039456b47e85901fbb4880d41a396113a42dc | 6 | 896 |
of TRN-04 outside 05-03's unit tests; it is not skippable.
7. **Write** `.planning/phases/05-train-model-a/05-04-e2e-notes.md` with all of:
- SFT wall-clock for the 50-iter run (extrapolated to 400-iter).
- GRPO wall-clock for the real FINAL_GRPO_ITERS run (or confirmation of Path C).
- First 10 `data-train` ... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | cbe9b49300faa72b404c89bb6780663862ada757a0596cfeb2061acc0dcd7e51 | 7 | 896 |
style chain; argv is literal constants + validated model string |
| Python stdout → parseTrainLine + supervisor | Regex-match whitelist; non-matching lines ignored or routed to ingestRawLine |
| Rollback file operations → adapter dir | Node-side copyFile of trusted numbered files (pattern-matched) over latest |
## STR... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-04-integration-e2e-PLAN.md | Markdown | 1c872eef5044ac4c953c3a559237cc282830b715a9a48171059487e6679fbb84 | 8 | 810 |
---
name: Phase 5 Context — Train Model A
description: Locked decisions captured after research, before planning
type: project
---
# Phase 5: Train Model A — Context
**Gathered:** 2026-04-18
**Status:** Ready for planning
**Source:** Post-research reconciliation (no discuss-phase run)
<domain>
## Phase Boundary
Pha... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-CONTEXT.md | Markdown | adece283809ee91e89cebfd5a59d2fca5945085c8c79b77b811382d85f291495 | 0 | 896 |
02) → supervisor kills GRPO process, emits `grpo.collapsed`, frontend pill "SFT-only adapter — Tier 2", demo continues.
### Phase 4 Contract — Assumed
- Training JSONL ships in mlx-lm `tools` format: `{"messages": [...], "tools": [OpenAI-schema]}` per PRD §6.1.
- Phase 5 owns a tiny SFT-JSONL → GRPO prompt/answer tran... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-CONTEXT.md | Markdown | 01af7f85e525eae5c276fa1e0466c924afaf782bfd06f1aa30f14ef3a4032cb1 | 1 | 721 |
# Phase 5: Train Model A (H6) — Research
**Researched:** 2026-04-18
**Domain:** MLX LoRA SFT + GRPO training orchestration via Node child_process
**Confidence:** HIGH (every claim below was verified against the actually-installed `mlx-lm==0.31.2` / `mlx-lm-lora==0.1.9` in `.venv/`, or against the Phase 1 01-02-SUMMARY... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | a217819c6de1217bf4b4ad40e881a6274c9e3cad7358d14bb5098522017488e3 | 0 | 896 |
`.py` files authored.** Python is a pinned CLI subprocess only. A sanctioned `.py` carve-out requires explicit PRD-owner sign-off. [CITED: CLAUDE.md Hard Constraints; PRD §19.4; 01-02-SUMMARY §GRPO escalation clause]
- Training runs **≤ 20 min wall-clock** hard cap. TRN budget inside that is ≤ 17 min (12 SFT + 5 GRPO).... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 6d8ac04f3175dc7e92f398ec980c65527b4ad7775f166b55dbf34e7dc44cc19b | 1 | 896 |
, NaN/divergence reverts; SFT-only fallback on unrecoverable | `--save-every 100` verified; dual-file checkpoint shape verified; NaN-detect pattern designed (§Rollback Mechanism). Grad-clip pitfall documented (§Common Pitfalls P3). |
---
## Architectural Responsibility Map
| Capability | Primary Tier | Secondary Tie... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 8ac5dc68fffcea652de510b87a001594f1803e75dee428db20bc5c94904f6886 | 2 | 896 |
----------|----------|
| Bash wrappers | A YAML config file (`--config`) the mlx-lm CLI supports | YAML is nicer but bash is more debuggable mid-demo; stick with bash |
| CLI `mlx_lm_lora.train` | Python-level `from mlx_lm_lora.trainer.grpo_trainer import train_grpo` call site passing custom `reward_funcs` | This is th... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 4e57feadb349407410a9fc4a9fcf78dd33b95b1585dd2b228d1199a88d9ad1d0 | 3 | 896 |
GRPO"). Making it the *default* simplifies the phase.
**Planner recommendation:** Plan Path A as the primary. Keep Path C as the kill-switch. Do not plan for Path B unless the user explicitly signs off on the .py carve-out and concurrently waives the 5-min budget.
---
## Runtime State Inventory
> Phase 5 is a new-a... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 30621c45e3201732f0879f27d188a39fb50394fcee1bc8a16b2567aa0e58c4fe | 4 | 896 |
───────┬───────────────────────────────────────────────┘
│ argv: --model --train --iters 400 …
┌─────────────▼───────────────────────────────────────────────┐
│ Python .venv/bin/mlx_lm.lora (SFT) │
│ ─ writes adapters.safeten... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 4a9d87b39891c365b8c3ad2a910d0bb7c92f40e951c6c59bd9cc01d0db65d96e | 5 | 896 |
A
# Source: derived from PRD §6.2 and Phase 1 01-02 verified flags
set -euo pipefail
source "$(dirname "$0")/_lib.sh"
: "${MODEL:=unsloth/gemma-4-E4B-it-UD-MLX-4bit}"
: "${DATA_DIR:=data/training}"
: "${ADAPTER_DIR:=data/training/model-a-adapter}"
: "${ITERS:=400}"
: "${RANK:=16}"
: "${NUM_LAYERS:=16}"
: "${BATCH:=2}"... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 403de13656eb934985a863a844d83fde5ba7abcf23dfe71e543bd3a45cd14a18 | 6 | 896 |
\
--max-completion-length "$MAX_COMPLETION" \
--learning-rate "$LR" \
--grad-checkpoint \
--save-every "$SAVE_EVERY" \
--steps-per-report "$STEPS_PER_REPORT" \
--reward-weights "$REWARD_WEIGHTS" \
--resume-adapter-file "$ADAPTER_DIR/adapters.safetensors" \
--adapter-path "$ADAPTER_DIR"
```
#... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 0cfd43c71c66274485a9026387023c7f33f833bdcd62d43849ad615d6bca3af5 | 7 | 896 |
Don't reference it in scripts.
- **Baking `--reward-fn` into `grpo.sh`.** The flag does not exist. Only `--reward-weights` exists.
- **Overwriting `adapter-50iter/` from Phase 1.** That's Phase 6's hot-swap fallback. Use a separate `--adapter-path`.
- **Re-parsing stdout in Phase 5.** Phase 2 02-02's `trainParser.ts` a... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | ce5ab857d9c739d69830be2b86ae9ac030e3a72be09913e2719f7b73334a9a7d | 8 | 896 |
per-fn breakdown seen at grpo_trainer.py line 724), `parseTrainLine` in Phase 2 needs a regex tweak — which Phase 5 owns the PR for.
**Planner action:** Wave 0 task — "GRPO 5-iter smoke on R1-format JSONL; capture exact stdout; confirm or amend `REWARD_RE` regex."
---
## Common Pitfalls
### P1: `mlx-lm-lora==0.1.0`... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 13d79847362e80ce33478eb1607b230d798f07abbe1440790f1ab96ec369e643 | 9 | 896 |
`adapters.safetensors` over itself — no-op.
**Root cause:** `adapters.safetensors` is the *current* (potentially-corrupted) file; only `{iter:07d}_adapters.safetensors` preserves history. [VERIFIED: `mlx_lm/tuner/trainer.py:371-380`]
**Avoid:** `rollback.ts` (Pattern 4) explicitly filters for `\d{7}_adapters\.safetenso... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 79216beb76f61a2b10ca106a265f27eef19afd4bb8d77ff1cdd6defba863a7e5 | 10 | 896 |
gen time) OR drop group_size to 2 (halves per-iter).
- **Planner action:** Wave 0 GRPO 5-iter smoke must measure sec/iter and decide final iter count. Do not blindly run 150 iters — it will miss the budget. The PRD §6.2 table's "150 iters" assumption predates the 0.1.9 data-format smoke and must be re-validated.
---
... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 8135f9636dd5c703257bfabc7b07da310777e9748ecf4b021fd2d1541f016115 | 11 | 896 |
| Parser regex miss; reward events silently dropped. Wave 0 smoke verifies. |
| A2 | `mlx_lm.lora` has no `--rank` CLI flag; rank is set via `adapter_config.json` | Pattern 1 + Pitfall P8 | Script fails on invocation. Wave 0 smoke verifies (one `mlx_lm.lora --help \| grep rank`). |
| A3 | GRPO sec/iter ~4–8 s at group ... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | fd8bb23cb0fd805ff1b69297d0e9b4a2a1b040f87d683d2f363ee88be66e2612 | 12 | 896 |
# Applicable ASVS Categories
| ASVS Category | Applies | Standard Control |
|---------------|---------|-----------------|
| V2 Authentication | no | Single-operator laptop demo; no auth surface |
| V3 Session Management | no | — |
| V4 Access Control | no | — |
| V5 Input Validation | yes | Already enforced by Phase 2... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | ab5a0ea857fdb4b8947fc998e4935c6c36bd0081b07616b951334f8c08fc9b9e | 13 | 896 |
/mlx_lm/tuner/trainer.py` — confirmed numbered-checkpoint file format and cadence at lines 371–380
- Phase 1 `data/bench/grpo-help.log` — captured CLI surface (no --reward-fn, no --reward-path)
- Phase 1 `data/bench/grpo-smoke.log` — captured `ValueError: Unsupported data format for GRPO training.`
- Phase 1 `01-02-SUM... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | 646f42a764dfc76a77be0fd3ca61469a1a9010aa8282d705f0a9f0371789ccc1 | 14 | 896 |
-fn surface | HIGH | Python source read directly; 3-path decision matrix authored |
| Pitfalls | HIGH | Mostly observed in Phase 1 logs or source |
| Wall-clock math | MEDIUM | SFT HIGH (measured); GRPO assumed until Wave 0 smoke |
### Open Questions
1. Does the user authorize Path B (sanctioned `.py` carve-out) for j... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/05-train-model-a/05-RESEARCH.md | Markdown | ef0f27027dd43a218991912ef272662eeea60c3596279ca99d61740b77ea0cff | 15 | 345 |
---
phase: 6
plan: 1
type: execute
wave: 1
depends_on: ["05-02"]
files_modified:
- scripts/fuse.sh
- scripts/deploy-adapter.sh
autonomous: true
requirements: [TRN-05, TRN-06]
---
<objective>
Production fuse + deploy scripts. `fuse.sh` merges the Phase 5 SFT+GRPO adapter into fused weights. `deploy-adapter.sh` is u... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/06-fuse-deploy-verify-cassette/06-01-fuse-deploy-scripts-PLAN.md | Markdown | ab968e8f105f70800c1a2651df7d363b004b3a741aca1eea1c86208d09f7a6c0 | 0 | 896 |
adapter-tools.json on device
</acceptance_criteria>
</task>
</tasks>
<verification>
- `bash -n scripts/fuse.sh` passes
- `bash -n scripts/deploy-adapter.sh` passes
- `grep -q "adapter-tools.json" scripts/fuse.sh` succeeds
- `grep -q "adapter-tools.json" scripts/deploy-adapter.sh` succeeds
</verification>
<success_cr... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/06-fuse-deploy-verify-cassette/06-01-fuse-deploy-scripts-PLAN.md | Markdown | 70f99d2e359219881fa3ff69d93883037799f306189cb175b40702c1d0978ca8 | 1 | 191 |
---
phase: 6
plan: 2
type: execute
wave: 1
depends_on: []
files_modified:
- ios/SpecialistApp/ChatView.swift
- ios/SpecialistApp/StatusPill.swift
- ios/SpecialistApp/AdapterLoaderView.swift
- ios/SpecialistApp/AdapterToolsLoader.swift
- ios/SpecialistApp/DynamicTool.swift
autonomous: true
requirements: [TRN-0... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/06-fuse-deploy-verify-cassette/06-02-ios-chatview-statuspill-toolsloader-PLAN.md | Markdown | 7eb02847ce31fbb6a2263ade5704f7c814e3fb2ba507c0557ed5e25583273064 | 0 | 896 |
}
```
The pill shows:
- Green dot + "ONLINE" when network available
- Red dot + "OFFLINE — AIRPLANE MODE" when airplane mode on
- Current adapter name on the right
</action>
<acceptance_criteria>
- `ios/SpecialistApp/StatusPill.swift` exists
- Contains `OFFLINE — AIRPLANE MODE` string literal
- Contains green/red Circ... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/06-fuse-deploy-verify-cassette/06-02-ios-chatview-statuspill-toolsloader-PLAN.md | Markdown | 549f4bcea0c51eb2129c382c30331e9d8404d53be691fe646fb311b80fc3c768 | 1 | 896 |
- StatusPill shows ONLINE/OFFLINE text
- AdapterToolsLoader reads adapter-tools.json and registers into ToolRegistry
- AdapterLoaderView has timer-based file watching
</verification>
<success_criteria>
- iOS app has a full chat interface (DEV-03)
- Status pill always visible showing online/offline state (DEV-04)
- Ada... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/06-fuse-deploy-verify-cassette/06-02-ios-chatview-statuspill-toolsloader-PLAN.md | Markdown | bb6f695c16468fc369612b71306eddb676df45dbe2b34e13481f213e0fe43773 | 2 | 232 |
---
phase: 6
plan: 3
type: execute
wave: 2
depends_on: ["06-01", "06-02"]
files_modified:
- scripts/verify-device.sh
autonomous: false
requirements: [DEV-06, DEV-07]
---
<objective>
Run the on-device verification battery (kill-point DEV-06) and record the 90-second Tier-3 cassette (NEVER CUT DEV-07). This plan requi... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/06-fuse-deploy-verify-cassette/06-03-verify-battery-cassette-PLAN.md | Markdown | 04e52e0e1608d1cc15b252699a5d36763d1ca0fe12e70af004dcc626058dc4d9 | 0 | 896 |
exists with dev06=PASS
</acceptance_criteria>
</task>
<task id="3" type="human_gate">
<title>Record Tier-3 cassette (NEVER CUT)</title>
<action>
Record 90-second screen capture of the verified demo:
1. Start QuickTime Player → New Screen Recording (or iOS Screen Recording)
2. Demo flow: show airplane mode → ask RLS q... | codex-hackathon | .planning/milestones/legacy-2026-04-pre-mlx-phases/06-fuse-deploy-verify-cassette/06-03-verify-battery-cassette-PLAN.md | Markdown | 127559acc681fdeb10ad06ce78fa29a8d851e48fd3529450ad3812c590298c84 | 1 | 362 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "01"
type: tdd
wave: 1
depends_on: []
files_modified:
- migration/phase-1-change-scope.v1.json
- test/support/phase-1-gate.ts
- vitest.integration.config.ts
- test/integration/cli-contract.test.ts
- src/cli/command-tree.ts
- src/cli/render-json... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 992eb4ddbc2ffa92aa76c5963e9141ec1abf6d66234a1afe012a2d047d61394e | 0 | 896 |
ownerPhase metadata resolves before any handler import or side effect"
pattern: "UNAVAILABLE"
- from: "test/support/phase-1-gate.ts"
to: "the three migration inventory RED suites"
via: "the exact migration-inventory gate runs schema, reconciliation, and removal suites independently and accepts onl... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 945bb5b0a2ed00c7d28be814e833b74cef362c1884f8bd83cd80799bcaa90e9d | 1 | 896 |
owns the Bun shebang and currently chooses `ONE_SHOT_COMMANDS` or the legacy REPL.
- `src/commands/index.ts` exports `Command`, `CommandContext`, `UserInput`, `processUserInput`, `getCommandNames`, `getAliases`, and `getCompletions`; these remain brownfield-only and MUST NOT become the new public catalog.
New contract... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | f25526d62dd37d54ea4d7021eecc5379d520507ef3c38442ce92a76bf5f6b90e | 2 | 896 |
</read_first>
<behavior>
- Bare explicit-Bun invocation exits 0, prints the canonical introduction exactly once, ordered help, and the doctor next action.
- `mlx --json` emits one parseable envelope with the six locked keys and one trailing newline.
- `dataset build` parses, returns nonzero `UNAVAILABLE`,... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 21908d22e0f372e0241c3c1ba565f098e6359fc5e1320007aa0e94e7992f2e10 | 3 | 896 |
results match the Phase 1 contract: the first four are successful portable checks; the three absent-product commands are explicit nonzero `LIVE` `FAIL` results owned by Phases 8, 5, and 6 respectively; and `local:check` is either a probed `LIVE` `PASS` or a named unavailable `apple-silicon` capability `SKIP`, never a m... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 70fb39126b788f40631b470e983b07914b837938e34acd273012e8dcf175e151 | 4 | 896 |
UI copy and stable command ownership rather than snapshotting incidental terminal width. Run the test through the harness and preserve the RED evidence in the summary; do not alter production code in this task. This is the mandatory walking-skeleton happy-path test and the TDD RED gate.
</action>
<verify>
<auto... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 392648508ba0cd064cad42c8cf1b5f5635babb5dc766aa04c5a9369589b4946b | 5 | 896 |
>
<name>Task 3: REFACTOR — Harden catalog completeness and terminal edge states</name>
<files>src/cli/command-tree.test.ts, src/cli/renderers.test.ts, src/cli/main.test.ts, src/cli/command-tree.ts, src/cli/render-human.ts</files>
<read_first>
- GREEN implementation from Task 2
- `01-SPEC.md` Edge Coverage... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 6d09c725416072399edb8d505c465ecb796bbae0f7b528079a1b9419bef4c27c | 6 | 896 |
. |
## STRIDE Threat Register
| Threat ID | Category | Component | Severity | Disposition | Mitigation Plan |
|---|---|---|---|---|---|
| T-01-01 | Spoofing | `src/cli/command-tree.ts` | medium | mitigate | One literal typed catalog with uniqueness/owner invariant tests prevents ambiguous command identity. |
| T-01-0... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 4b52e8ee73dd0b79ae815d0071fb581c635afa43352d831590d58f641d6fdfea | 7 | 896 |
| REQ | IDEN-07 | Complete machine-validatable migration inventory | 01-05 | COVERED | Nine repository categories plus runtime-state scope. |
| REQ | IDEN-08 | Replacement evidence before removal | 01-05, 01-09 | COVERED | Computed fail-closed eligibility plus final durable Phase 1 ownership/deletion proof. |
| REQ | I... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 4731f58caba1df17d64d8de3f80e1b7de46fa15fd8393b946f4d712fd6b56ca3 | 8 | 896 |
candidates in order and show effective/shadowed | 01-04 | COVERED | Deterministic list. |
| CONTEXT | CTX-DOC-3 | owned=0; collision/not-found nonzero stable codes | 01-04 | COVERED | Human/JSON parity. |
| CONTEXT | CTX-DOC-4 | Guidance only; no overwrite/unlink/rename/PATH/shell mutation | 01-04 | COVERED | Sentinel ... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 749e54bb22a9454ad608eeec8f9e11671904d21933eca5ef00b9b39306bbd8a5 | 9 | 896 |
COVERED |
Unresolved source items: none. `01-SPEC.md` reports 0 unresolved edges/prohibitions and `01-UI-SPEC.md` reports 0 unresolved UI considerations. Its two dismissed edges remain explicitly dismissed rather than silently reintroduced: a text-free surface has no first-mention obligation, and Phase 1 has no destru... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-PLAN.md | Markdown | 469e0f200882bb2376ec63a156b47c7024566656f32dbad9e4ae4f5cabe376a9 | 10 | 115 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "01"
subsystem: cli
tags: [bun, typescript, vitest, command-catalog, deterministic-json]
requires: []
provides:
- Side-effect-free `mlx` process entry with canonical root, parent, and leaf help
- One typed owner-tagged catalog for all authoritative co... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-SUMMARY.md | Markdown | 65e9072cda16cab8a5967ed96511f9abd59dcb50fa08b673cfbcbdd468b218ba | 0 | 896 |
JSON parse, count, and src/app.tsx ownership assertion"
status: pass
human_judgment: false
duration: 34 min
completed: 2026-07-16
status: complete
---
# Phase 1 Plan 01: CLI Walking Skeleton Summary
**A deterministic, side-effect-free `mlx` command shell now exposes the complete owner-tagged CLI contract... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-SUMMARY.md | Markdown | 5ad4cf8503bbda257f49191108fdbdfe68d0ae9a90433078cc02abb045b0ad67 | 1 | 896 |
dependent sorting.
- The public graph stays plain TypeScript: no React, Ink, configuration, model, server, REPL, app, or legacy command import is reachable from `src/cli.tsx`.
## Deviations from Plan
None - plan executed exactly as written.
## Issues Encountered
None.
## User Setup Required
None - no external ser... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-01-SUMMARY.md | Markdown | 01871d900909499986f75d44c53e68b3ddeff1b5d6e2185cd31b35b13343acd9 | 2 | 381 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "02"
type: tdd
wave: 2
depends_on:
- 01-01
files_modified:
- src/identity/audit.test.ts
- test/integration/package-bin.test.ts
- fixtures/phase-1/identity/scoped-tree.json
- package.json
- mlx.package.json
- README.md
- src/identity/audit.t... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-02-PLAN.md | Markdown | 29ec033eee0ce91068e77ef47bfbabe91b9e43722d3abda425a5c8932b85773e | 0 | 896 |
Operators must know which MLX they are invoking before doctor can classify PATH candidates, while maintainers need a repeatable audit rather than a one-time rename.
Output: Canonical package metadata, packaged ownership marker, isolated bin proof, identity scanner, and corrected legacy UI copy without restoring legacy ... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-02-PLAN.md | Markdown | e0b9db5eca303220fd0f83d1d4e4dfebc04a3f294627cdd5fae0503594527aa1 | 1 | 896 |
reject forbidden user-facing product branding, and report exact path/rule findings.
- Mandatory screenshot/image categories are reported with evidenced zero rather than omitted.
</behavior>
<acceptance_criteria>
- The initial run is RED for missing bin/marker/audit behavior, not because it reads a real home... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-02-PLAN.md | Markdown | 2d394a8fca2fbdeccc2312a642d3088a883edae57ae9b8cdcfee834185264e89 | 2 | 896 |
tree from Task 1
- `01-RESEARCH.md` path-specific identity scope and forbidden-token evidence
- `01-PATTERNS.md` Product package, entry, and public copy assignments
- `01-SPEC.md` AC-01/02 and the dismissed text-free-surface edge
</read_first>
<behavior>
- The audit deterministically scans version-c... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-02-PLAN.md | Markdown | ad48a825705b7ec9d0040a7245912a708234f9ff65b7169d1722bb42059f6460 | 3 | 896 |
/shell sentinels before and after. |
| T-01-08 | Information Disclosure | `src/identity/audit.ts` | high | mitigate | Scope to version-controlled paths and explicit caller artifacts; deny ignored/private/operator roots and test unopened sentinels. |
| T-01-09 | Spoofing | README/help/package copy | medium | mitigate | ... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-02-PLAN.md | Markdown | 4d566fb900933cd19f9b90c2ce4c143a89769dc6ffe5461ca2a51a03cb697ee4 | 4 | 343 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "02"
subsystem: identity
tags: [bun, typescript, package-bin, identity-audit, privacy]
requires:
- phase: 01-identity-cleanup-baseline-and-migration-map
provides: Side-effect-free typed CLI entry and canonical root help from Plan 01
provides:
- On... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-02-SUMMARY.md | Markdown | c3f1b05011c3cab1d2a739d241233b4e304a9f7880f098ad0ab407db5fe571ac | 0 | 896 |
Z
- **Tasks:** 3
- **Files modified:** 10
## Accomplishments
- Replaced the ambiguous package identity with `mlx-personal-coding-pipeline`, exported exactly one `mlx` bin through the checked-in Bun entry, and packaged a matching schema-versioned ownership marker.
- Added a network-disabled pack/install fixture that i... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-02-SUMMARY.md | Markdown | 8078cc1d0d5b1dbe463f776c9190c84d4d51d34f74843ad8e07643b9ed6a7501 | 1 | 896 |
audit and retained-surface normalization; the complete identity, package, CLI, and typecheck gates remained green.
## Deviations from Plan
### Auto-fixed Issues
**1. [Rule 2 - Missing Critical] Prevented exact exclusions from hiding user-facing product text**
- **Found during:** Task 3 (identity audit hardening)
- *... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-02-SUMMARY.md | Markdown | 77bad41082601030158b1fb3ae4d1107a9239313ad39b3e565f3d8d714be7d01 | 2 | 836 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "03"
type: tdd
wave: 2
depends_on:
- 01-01
files_modified:
- src/cli/command-tree.test.ts
- src/core/mlx-home.test.ts
- src/core/state-ownership.test.ts
- test/integration/state-cli.test.ts
- src/core/mlx-home.ts
- src/core/state-ownership.ts... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-03-PLAN.md | Markdown | 60791075612a6310899a34243be2478ad361fa2fcb7f9e971b39e60c7e7e5563 | 0 | 896 |
the result is never success."
- "UI-LONG-TEXT: spaces, Unicode, and long absolute roots are quoted or placed on indented lines without truncation."
---
## Phase Goal
**As an** operator or maintainer, **I want to** use one collision-safe MLX product surface and inspect an honest validation baseline plus complete r... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-03-PLAN.md | Markdown | fd03f74e5b493055eeb714bab7975f324348216ec4aaadaa45ac2b82b15b3f89 | 1 | 896 |
cli/command-tree.test.ts, src/core/mlx-home.test.ts, src/core/state-ownership.test.ts, test/integration/state-cli.test.ts</files>
<read_first>
- `01-SPEC.md` AC-05/06 and R3 edges
- `01-CONTEXT.md` MLX_HOME and Legacy State decisions
- `01-RESEARCH.md` MLX_HOME/state ownership pattern and initialization s... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-03-PLAN.md | Markdown | 2a14a4b31b047688bfee107c15039bfbee6438a5e8291e689b0bd0cb587792e7 | 2 | 896 |
.codex` reader, recursive migration, full containment framework, SQLite, CAS, fsync framework, or Phase 2 storage behavior is introduced.
- Invalid/unowned/unsafe outcomes are structured values and create no partial marker or directory.
</acceptance_criteria>
<action>
Implement the pure resolver, ownership sche... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-03-PLAN.md | Markdown | 7c881f97e5752a22b7daec2f11b904036c35cee253a6f02ac8390d40f2f56447 | 3 | 896 |
the checker-detected unreachable flag, while splitting config would permit a second Phase 1 root policy; each behavior remains behind focused modules and no Phase 2 storage work is introduced.
<threat_model>
## Trust Boundaries
| Boundary | Description |
|---|---|
| Environment/home → root resolver | Untrusted `MLX_H... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-03-PLAN.md | Markdown | 3d4a72eda898ae413f04447b3ec989548af720e24e2c61af0809ef2acc8694d3 | 4 | 585 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "03"
subsystem: state
tags: [bun, typescript, mlx-home, state-ownership, cli, zod]
requires:
- phase: 01-identity-cleanup-baseline-and-migration-map
provides: side-effect-free command tree, typed CLI results, and public process entry
provides:
- Pu... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-03-SUMMARY.md | Markdown | 4b5cde585cd80e1ee023af798f06d9a074e71ebab0e65bd2afbe4e2e3dc943ed | 0 | 896 |
# Task Commits
Each task was committed atomically:
1. **Task 1: RED — Define root, ownership, and no-creation matrices** — `af8b074` (test)
2. **Task 2: GREEN — Implement owned initialization through the public CLI** — `48c0ae3` (feat)
3. **Task 3: REFACTOR — Redirect operator configuration while preserving legacy ev... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-03-SUMMARY.md | Markdown | dfb0dee7d91d6c6074afd04ee05b37621a4fed9870902125de78e1910319a498 | 1 | 896 |
- **Files modified:** `package.json`, `src/cli/main.ts`, `test/integration/package-bin.test.ts`
- **Verification:** The exact combined package/state/CLI integration gate passed all 14 tests; typecheck and focused Biome passed.
- **Committed in:** `099b76e` (RED), `e7e1d2a` (GREEN)
---
**Total deviations:** 2 auto-fix... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-03-SUMMARY.md | Markdown | 99d8d079dd166b0b56a9b40d863fc747de86c21e6301e11cedd242e2e55004b7 | 2 | 695 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "04"
type: tdd
wave: 3
depends_on:
- 01-02
- 01-03
files_modified:
- src/core/doctor.test.ts
- test/integration/doctor-cli.test.ts
- fixtures/phase-1/doctor/candidates.json
- src/core/doctor.ts
- src/cli/doctor.ts
- src/cli/main.ts
- src/... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-04-PLAN.md | Markdown | 6464a8f5fa25d005389bba126a276bea716cb635fc14146ce4f7afb904777337 | 0 | 896 |
without ambiguous identity, unsafe takeover, or false acceptance.
<objective>
Implement the read-only `mlx doctor` classification slice using the package marker from Plan 02 and the non-creating CLI/state boundary from Plan 03.
Purpose: Detect the shared executable-name collision safely before any operator action and... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-04-PLAN.md | Markdown | 0190ded88bd6b995741200c02f7e869f81c74b21ea98bf1763193a4a1aefad95 | 1 | 896 |
interrupted calls preserve bytes, hashes, modes, link targets, PATH/alias/shell fixture data, and state roots.
- Human and JSON process results agree on classification/path/order/reason/exit.
</behavior>
<acceptance_criteria>
- Tests use only fixture PATH directories and injected filesystem ports; no global... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-04-PLAN.md | Markdown | 3e2d6839977a7b7e68885b8f13d5e83a7a8366ba7b81037e9c4bb01c8182aeb0 | 2 | 896 |
/doctor/candidates.json</files>
<read_first>
- GREEN implementation and tests
- `01-SPEC.md` collision prohibition and AC-08
- `01-UI-SPEC.md` partial/overflow/zero-one-many/long-text rules
</read_first>
<behavior>
- Broken/cyclic symlinks and marker read failures produce stable failed evidence ra... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-04-PLAN.md | Markdown | f475114252fe8ee64dc430e07966dcd3a3658bc2e61aa89835b4931a155fb964 | 3 | 896 |
found/inspection-failure matrices pass in human and JSON modes with pinned exits.
- Effective and shadowed candidates are complete and PATH-ordered.
- Filename spoofing, marker mismatch, broken/cyclic symlinks, and execution-sentinel candidates fail safely.
- Repeated and parallel calls preserve all executable, link, P... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-04-PLAN.md | Markdown | 9fcc2d2e8e21fcd3f9c0fbbda6111d1afc3f3f6837db92f7c54f5ea7d79ac5f1 | 4 | 122 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "04"
subsystem: identity
tags: [bun, typescript, doctor, path, executable-ownership, security]
requires:
- phase: 01-identity-cleanup-baseline-and-migration-map
provides: sole packaged mlx executable, ownership marker, typed CLI dispatch, and non-cre... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-04-SUMMARY.md | Markdown | cc903fd896d5b622ed041ef325ef99e4d21d387033f3ac337ad4e78af586873c | 0 | 896 |
Added an injected doctor core that inspects exact `mlx` candidates with read-only metadata calls, preserves PATH order and duplicates, and reports broken or incomplete inspection as safe evidence.
- Wired the public `doctor` leaf to deterministic `OWNED`, `COLLISION`, and `NOT FOUND` human output plus equivalent struct... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-04-SUMMARY.md | Markdown | 9eafd0aaac00bc9f1c7b6a461b96bb9a35f8fe6562fc34e939c0eacd3a2b8a48 | 1 | 896 |
* `test/integration/doctor-cli.test.ts`
- **Verification:** Owned, foreign-first/owned-shadowed, and not-found process scenarios pass; repository entry mode remains untouched.
- **Committed in:** `c2588db`
**2. [Rule 1 - Cross-Plan Test Assumption] Updated the CLI unit contract for the newly implemented doctor leaf**
... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-04-SUMMARY.md | Markdown | 7783b698aef58ccb7d71a96bf6907f4a108dc27b968d49c04ab00920052a71f4 | 2 | 729 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "05"
type: tdd
wave: 4
depends_on:
- 01-02
- 01-03
- 01-04
files_modified:
- src/migration/inventory-schema.test.ts
- src/migration/repository-scanner.test.ts
- src/migration/removal-gate.test.ts
- src/migration/inventory-schema.ts
- src/mi... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-PLAN.md | Markdown | d4bf416f18284b258771539b5cf70f3745b479ac48fd00fb87ae5104bcd1d6e1 | 0 | 896 |
placeholders, mocks, fixtures, replays, unavailable shells, category-only mappings, stale digests, or unreviewed evidence MUST NOT authorize removal."
- "The scanner MUST NOT recursively read ignored data, .env.local, operator homes, private mirrors/manifests, models, adapters, credentials, or raw traces."
ui_con... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-PLAN.md | Markdown | cb1fbf29ad9510e9aed232d42439bf0dc305da0d68765a28e5243301e0c5c6bc | 1 | 896 |
, `MigrationRecord`, `MigrationCategory`, `ExactLocator`, `CategoryCoverage`, `PathExclusion`, `ReplacementEvidence`, `DiscoveredLocator`, `ReconciliationResult`, `RemovalEligibility`, `scanLegacyAssets`, `reconcileInventory`, `computeRemovalEligibility`, `validateRemovalEligibility`, and `renderMigrationReview`.
- Inv... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-PLAN.md | Markdown | 3cc0809c1a10af2cd9f63fe63ec0afe5258a854a7b4501e82db5262c89dd0fd6 | 2 | 896 |
migration/repository-scanner.ts, src/migration/removal-gate.ts, migration/legacy-assets.v1.json</files>
<read_first>
- RED tests from Task 1
- Final Plan 02/03/04 paths and summaries for replacement owners/evidence
- `01-RESEARCH.md` canonical JSON shape, stable ID/sort rules, and scanner scope
- `AGE... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-PLAN.md | Markdown | 5f94a2e885948849af94fa191c79e084a28f0c7b755a62a727000dd974c3deb4 | 3 | 896 |
of legacy production source/runtime assets.</done>
</task>
</tasks>
## Scope Justification
This plan owns 10 paths because canonical inventory validity, one-to-one reconciliation, computed eligibility, and the generated review are one fail-closed authority: splitting schema/scanner/gate from the exact JSON they vali... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-PLAN.md | Markdown | c8108af84d5d5ba2530137b85c738e16f05373de9c34d3819a3ad44870314acc | 4 | 708 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "05"
subsystem: migration
tags: [bun, typescript, zod, migration-inventory, reconciliation, removal-gate, deterministic-review]
requires:
- phase: 01-identity-cleanup-baseline-and-migration-map
provides: canonical CLI/package/state/doctor paths and i... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-SUMMARY.md | Markdown | 28da3807eee6acc649629b5479f651def5b1a4496f950e7f663903f6af06523f | 0 | 896 |
."
requirement: IDEN-08
verification:
- kind: unit
ref: "src/migration/removal-gate.test.ts#computeRemovalEligibility"
status: pass
human_judgment: false
- id: D3
description: "The complete maintainer review regenerates byte-identically, detects drift without rewriting, and leave... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-SUMMARY.md | Markdown | 75797745552a512e8fd0baded21242ff884fe3f029fd182b893e753e8ea881b8 | 1 | 896 |
-scanner.ts` — Controlled tracked/source discovery, exact exclusion checks, mandatory-category enforcement, and one-to-one reconciliation.
- `src/migration/removal-gate.ts` — Current-evidence digest calculation and fail-closed removal computation/validation.
- `src/migration/render-review.ts` — Pure complete Markdown p... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-SUMMARY.md | Markdown | 1221d5d118c51288a70c04732217f60bfdc90dd48cd54eeae4b239844d347dd1 | 2 | 896 |
's default regex error for a broad exclusion did not identify the fail-closed rule clearly. The scanner now converts it into an actionable exact-path/broad/wildcard error before reconciliation.
- Vitest runs under Node in this repository, so the renderer process test invokes the checked-in Bun runtime explicitly instea... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-05-SUMMARY.md | Markdown | 4b641586b73215bbead7114c2bf38e89bfdc917d5d04e75694cd57f3c4259d90 | 3 | 575 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "06"
type: tdd
wave: 5
depends_on:
- 01-05
files_modified:
- src/validation/result.test.ts
- src/validation/capabilities.test.ts
- src/validation/check-catalog.test.ts
- src/validation/result.ts
- src/validation/capabilities.ts
- src/validati... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-06-PLAN.md | Markdown | 29ea4b526020000f8c94776945c07e2186e15a231ecce55cd41bd96bbd73288a | 0 | 896 |
-safe MLX product surface and inspect an honest validation baseline plus complete replacement map, **so that** I can operate and evolve the brownfield system without ambiguous identity, unsafe takeover, or false acceptance.
<objective>
Establish the pure validation semantics and ordered eight-check contract before any... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-06-PLAN.md | Markdown | d45e7f7c635db7d7d84a2e044baa08b82e802c198179b890f14346f290f608de | 1 | 896 |
md` AC-21 through AC-23 and R10 edges
- `01-CONTEXT.md` independent status/source and capability-only skip decision
- `01-UI-SPEC.md` empty, partial, failure, and capability-skip copy
- `01-PATTERNS.md` result discriminant analog from `lib/training/supervisor.ts`
</read_first>
<behavior>
- Valid row... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-06-PLAN.md | Markdown | 29386666a846eb7942e1334a867a45061b90ad7ded5eca0e679a8cc202c66e5d | 2 | 896 |
<behavior>
- Exactly eight unique ordered descriptors exist with stable script and check IDs.
- Fixed-process descriptors contain immutable executable/argument arrays and no shell text: check selects Bun→Biome `check .`, typecheck selects Bun→TypeScript `--noEmit`, and test selects Bun→Vitest with the unit conf... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-06-PLAN.md | Markdown | ea636da1ab1e6a0975cba484e5ad4681ca506385bfea15641dd107d846ab746b | 3 | 896 |
Status and evidence source are independent; a valid SKIP requires named unavailable capability evidence.
- The eight required scripts have one ordered typed descriptor each.
- Product absence is LIVE FAIL, and the integration descriptor cannot recursively run itself.
</success_criteria>
<output>
Create `.planning/phas... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-06-PLAN.md | Markdown | 7d1b04f752083fde5f37eb20ae93bea06c4ac3d616cbb85290456a8295dc7e8f | 4 | 87 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "06"
subsystem: validation
tags: [bun, typescript, zod, validation, capabilities, immutable-catalog, tdd]
requires:
- phase: 01-identity-cleanup-baseline-and-migration-map
provides: canonical CLI identity, safe state/doctor behavior, and complete mig... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-06-SUMMARY.md | Markdown | c09c9429ca91228385dfc32e4ca1234b9326af5f827177f5f5989f2a0450fd8c | 0 | 896 |
**Started:** 2026-07-16T08:47:00Z
- **Completed:** 2026-07-16T09:03:00Z
- **Tasks:** 3
- **Files modified:** 6
## Accomplishments
- Added strict capability and validation boundaries that preserve honest source labels, turn malformed or contradictory input into stable visible failures, and never promote fixture, repla... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-06-SUMMARY.md | Markdown | fc2805cd2ae8c293b24af84b5bace07b0f3f0b2915c9b1f5fe7ceb270d8fc8d4 | 1 | 896 |
src/validation/check-catalog.test.ts` — 3 files and 55 tests passed.
- `bun run typecheck` — passed.
- `bun x biome check src/validation` — 6 files passed.
- Catalog static assertions — exactly eight unique ordered IDs; all descriptors/execution records frozen; no shell field, recursive `bun run`, mutable argv, alias, ... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-06-SUMMARY.md | Markdown | faa900d79354dcff137e5441305ddebad38081c9c5d1dfaad85ad89a5c0f2a6f | 2 | 387 |
---
phase: 01-identity-cleanup-baseline-and-migration-map
plan: "07"
type: tdd
wave: 6
depends_on:
- 01-06
files_modified:
- src/validation/runner.test.ts
- src/validation/report.test.ts
- src/validation/cli.test.ts
- src/validation/runner.ts
- src/validation/report.ts
- src/validation/cli.ts
autonomous: ... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-07-PLAN.md | Markdown | 411ed8d91351c149757c0a70694077ed31548be35ebd402ddbec664564764e8c | 0 | 896 |
clipping decisive evidence."
---
## Phase Goal
**As an** operator or maintainer, **I want to** use one collision-safe MLX product surface and inspect an honest validation baseline plus complete replacement map, **so that** I can operate and evolve the brownfield system without ambiguous identity, unsafe takeover, or ... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-07-PLAN.md | Markdown | 3ddbf8d742a05bd7f35917f383a4bdf9b7351218797278fc3aa51621864a065a | 1 | 896 |
/cli.test.ts</files>
<read_first>
- Plan 06 result/capability/catalog interfaces
- `01-RESEARCH.md` fixed-argument runner, recursion warning, and eight-script outcomes
- `01-UI-SPEC.md` validation report, JSON, responsive, interruption, and empty/partial state rules
- `01-PATTERNS.md` runner no-analog... | codex-hackathon | .planning/phases/01-identity-cleanup-baseline-and-migration-map/01-07-PLAN.md | Markdown | 4a182aafc07b5dded9da19a878412652d4a69bdb1bfb62b32da12c3a8300911e | 2 | 896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.