Skip to content

Phase 0: plan + pre-flight artifacts for flight-research activation#12

Merged
lewisnsmith merged 4 commits intomainfrom
claude/compassionate-moser-e52a58
Apr 25, 2026
Merged

Phase 0: plan + pre-flight artifacts for flight-research activation#12
lewisnsmith merged 4 commits intomainfrom
claude/compassionate-moser-e52a58

Conversation

@lewisnsmith
Copy link
Copy Markdown
Owner

Summary

  • Adds the full phased-execution design doc at docs/designs/flight-research-activation.md (Phases 0–4 parallel tracks, Phase 5 deferred) with 13 resolved decisions (D1–D13) folded in from CEO + DX + Eng reviews.
  • Phase 0 findings ground-truthed against the current codebase:
    • Package names (D1 updated): PyPI flight is taken → falling back to flight-research; Python import name stays flight. npm flight-proxy already owned by lewisnsmith at v1.3.1 — reuse, no reservation needed.
    • CLI surface: 36 subcommands (not the ~25 originally assumed). Deprecation list in §4 rewritten against real names.
    • flight log compare already exists (src/cli.ts:452) — Phase 4A now promotes it top-level rather than greenfielding.
    • ExperimentConfig.experiment_id rename impact (D6): mapped in src/query.ts:114,232,312,492,496,618,664,1137, src/hooks.ts:107, plus test fixtures. Rename is cheaper than overloading semantics.
  • Adds src/experiment-schema.ts — stub with locked signature for the Phase 2A migration, following the ensureEntriesTurnIdColumn precedent (src/query.ts:653).

Why

Unblocks 4-way parallel track execution planned for Phases 1–4. Every subsequent phase is independently shippable; agents can start Phase 1 tracks in parallel worktrees as soon as this lands.

Test plan

  • Design doc renders correctly in GitHub markdown
  • src/experiment-schema.ts imports cleanly (stub raises Error — by design, not yet called anywhere)
  • npm run check passes (no code behavior changed)

🤖 Generated with Claude Code

Adds FlightDB.listSessionsWithFirstTurn() and annotation-with-context
types to surface richer session metadata in `flight log list`. CLI
gains --all/--run/--status filters. Small TUI detail/tree tweaks
accompany the shared query changes.
- Full phased-execution design doc (Phases 0-4 parallel tracks, Phase 5 deferred)
  with 13 resolved decisions folded in from CEO/DX/Eng reviews
- Phase 0 complete: package-name findings (PyPI flight taken -> flight-research;
  npm flight-proxy already owned), CLI surface ground-truthed at 36 subcommands,
  ExperimentConfig.experiment_id rename impact mapped
- src/experiment-schema.ts stub — signature locked for Phase 2A implementation,
  follows the ensureEntriesTurnIdColumn pattern from src/query.ts:653

Why: unblocks 4-way parallel track execution planned for Phases 1-4.
Resolves PR #12 conflicts caused by the monorepo restructure
(src/ -> packages/flight-proxy/src/).

Ports the Phase 0 flight-research-activation artifacts onto the new layout:
- packages/flight-proxy/src/experiment-schema.ts (stub, signature locked for Phase 2A)
- docs/designs/flight-research-activation.md (unchanged path)

Carries forward the 02a6668 "enrich flight log list" feature into the monorepo:
- listSessionsWithFirstTurn() in packages/flight-proxy/src/query.ts
- --all / --run / --status filters on `flight logs list`
- --compact option on `flight logs verbose`
- adapted banner names from `log` to `logs` (rename happened on main)

Drops the experimental `log replay` (transcript viewer), `log replay-call`,
and `log annotate` aliases from the branch -- they overlapped main's
`logs replay` and top-level `annotate` commands.

Verified: typecheck + lint pass on packages/flight-proxy.
CI lint failed on packages/flight-proxy/src/experiment-schema.ts:23
flagging `_db` as an unused parameter. The underscore prefix is the
standard convention for intentionally-unused params (the function is a
Phase 2A stub with a locked signature), but the eslint config didn't
configure no-unused-vars to honor it. Add argsIgnorePattern of `^_` so
the convention works as intended across the package.

Verified: `npx eslint src/` exits 0.
@lewisnsmith lewisnsmith merged commit 1464018 into main Apr 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant