Skip to content

Replace the free-model wrapper with top-level fast tier flags #283

Done

Description

@DocksDocks

Goal

Retire the kit’s free-model launcher and model picker. Keep the two existing OpenAI/Codex tier toggles, but expose them as docks-kit --fast and docks-kit --ultrafast. Use omp directly for normal sessions; the kit no longer launches them.

Yolo: the user delegated every decision except the merge to the agent.

Mode: plan-and-implement

Research

Repository facts (at d3731bc)

  • Root command: cli/src/main.ts builds Command.make("docks-kit", {}, handler) with no flags and registers COMMANDS from cli/src/argv.ts. The handler prints the command summary, which lists docks-kit omp [--model|--pick] [...]. prepareArgv (cli/src/argv.ts) validates argv before Effect parses it: with no subcommand it scans against the global surface only, so docks-kit --fast exits 2 with unknown flag --fast (cli/test/unit/argv.test.ts "rejects an unknown root flag without a subcommand scope").
  • cli/src/argvSurface.ts derives each command's surface from command.config.flags (buildCommandSurface) and the built-in global flags. It also owns spliceOmpBoundary, used only by argv.ts passthroughBoundary for the omp word.
  • Effect 4.1.7 (node_modules/effect/src/cli/internal/parser.ts): flags of a Command.make config are local. A local flag given before a subcommand name is an UnrecognizedOption error, and a subcommand does not inherit it. So root flags --fast and --ultrafast do not leak into sync or other commands, and prepareArgv already rejects docks-kit sync --fast as unknown flag --fast for 'sync'.
  • cli/src/commands/omp.ts (455 lines) holds the launcher (--model, --pick, forwarded args, the free catalog read through omp models --json, the picker, the overlay write under kitCacheDir, and the omp launch spawn) and the toggles (fast, ultrafast flags, TIER_MODES, toggleTierUnderLocks). toggleTierUnderLocks checks config.yml before any lock, takes the home sync lock and the agent-folder lock (syncDispatch.ts withHomeAndFolderLocks), calls ompFastMode.ts toggleDeployedOpenAiTier, and returns 0, 1 (held lock), or 2. The handler refuses --fast with --ultrafast, --model, --pick, or an argument before any write, with --<flag> toggles <flag> mode and exits; pass it alone and exit 2 (engine.ts bail).
  • Launcher-only modules: cli/src/engine-native/ompOverlay.ts (overlay render, catalog parse, omp argv and child environment; only omp.ts and its tests import it) and the session-model half of cli/src/engine-native/ompSession.ts (DEFAULT_OMP_SESSION_MODEL = opencode-zen/muse-spark-1.3-contributor-free, readOmpSessionModel, writeOmpSessionModel). OmpSessionModel lives in cli/src/engine-native/sharedTypes.d.ts.
  • ompSession.ts engineHome is shared: cli/src/commands/scratch.ts, cli/src/commands/tidy.ts, cli/src/engine-native/deps.ts, cli/src/engine-native/engineCtx.ts, and cli/src/plan/services.ts import it.
  • Kit store cli/src/engine-native/kitDb.ts: append-only MIGRATIONS, schema 1 creates harness_selection, omp_session, and cache_entry; KitDbTooNewError refuses a newer schema. withKitDb also imports a legacy ~/.docks-kit/state.json session model into omp_session once and renames the file. cache_entry serves toolchain outdated (toolchain.ts readCache, writeCache) and stays.
  • Tests: cli/test/unit/ompCommand.test.ts and cli/test/unit/ompOverlay.test.ts test only the launcher. cli/test/unit/ompSession.test.ts mixes store tests (no store on a read, corrupt store, newer schema, migration record, private modes, separate homes, engineHome) with session-model and legacy-import tests. cli/test/unit/ompFastMode.test.ts runs Command.runWith(ompCommand) in process for the lock and --ultrafast tests. cli/test/unit/argv.test.ts has an omp passthrough boundary block. cli/test/unit/removedNames.test.ts spawns the real CLI and pins the refusal of removed names (Unknown subcommand "<x>" for "docks-kit", exit 1). cli/test/goldens/dryrun.json records the root summary and --help output.
  • Packaged entry: cli/scripts/package-smoke.ts packs the tarball, installs it in a clean folder, and runs the installed bin with --version, --help, and sync --dry-run from an unrelated folder, with CHILD_ENV that drops BUN_OPTIONS, DOCKS_KIT_ENGINE, and NODE_OPTIONS. Its bun add runs in a consumer folder without a lockfile, so on a cold Bun cache it reads the registry that Bun's configuration names. On this host no user .npmrc or bunfig.toml exists, the repository bunfig.toml holds only [fmt], and no *registry* or BUN_CONFIG_* variable is set (checked 2026-12-01), so the read goes to the public npm registry: a probe against a public read-only source, which the yolo effect table permits. The plan does not change how the smoke resolves its registry.
  • Text that names the launcher: README.md (CLI list), cli/AGENTS.md (module map rows, kit store rule, ### docks-kit omp launcher), cli/docs/flags.md (## omp session flags, lock notes), cli/docs/omp-models.md (## Free session launcher, its two subsections, ## OpenAI fast mode, and references at the role map and the catalog note), cli/docs/overview.md, cli/src/engine-native/DESIGN.md, .agents/skills/omp-sync-context/SKILL.md and references/state-and-launcher.md (source_files metadata names the deleted modules), .agents/skills/sync-orchestration-context/SKILL.md, and .agents/skills/tidy-context/SKILL.md (the lock file list names omp --fast twice). CHANGELOG.md history and .agents/skills/review-benchmark/cases/ fixtures are frozen.
  • Project skills under .agents/skills/ carry no metadata.content_hash (grep -c content_hash .agents/skills/*/SKILL.md printed 0 for each); bun cli/scripts/skill-content-hash.ts --check checks only the SoT plugin skills, which this plan does not edit. cli/test/unit/skillMetadata.test.ts checks the source_files ranges of the project skills.
  • Goldens: cli/test/goldens/dryrun.json records the root summary and --help; cli/test/goldens/mutation.json pins hashes of the deployed talk.js and plugin manifest (cli/test/lib/goldenSnapshot.ts hashes them without normalizing the version), so the version bump changes both. Root AGENTS.md asks for bun run format after --update-goldens.
  • Tests that pin the launcher besides the launcher files: cli/test/unit/ompFastMode.test.ts (omp --ultrafast refusals with --fast, --model, --pick, and an argument, asserting --ultrafast toggles ultrafast mode and exits; pass it alone) and cli/test/unit/argv.test.ts (the REGISTERED_SUBCOMMANDS list with omp, and the omp passthrough boundary block). cli/test/unit/removedNames.test.ts sets HOME and USERPROFILE only and inherits PI_CODING_AGENT_DIR, OMP_PROFILE, PI_PROFILE, and PI_CONFIG_DIR.
  • No SoT file names the launcher (git grep over SoT/). package.json is 0.31.3; root AGENTS.md asks for a version bump on a user-visible change, a payload regeneration after a package.json change, ./docks-kit sync --dry-run, and bun run smoke:package. The talk bundle SoT/.omp/plugin/extensions/talk.js embeds the package version (cli/talk/extension.ts), and check:generated runs bun cli/scripts/build-talk.ts --check, so the bump needs bun cli/scripts/build-talk.ts before bun cli/scripts/generate-sot-payload.ts. After a skill edit, bun cli/scripts/skill-content-hash.ts --write refreshes metadata.content_hash; skillMetadata.test.ts checks source_files ranges.
  • Handle empty OMP tier sections in the fast toggles #284 changes ompFastMode.ts toggleOpenAiTier (null tier) and adds a spawned docks-kit omp --fast test to cli/test/unit/ompFastMode.test.ts. When Handle empty OMP tier sections in the fast toggles #284 lands first, this branch merges the default branch and moves that test to docks-kit --fast; when this plan lands first, Handle empty OMP tier sections in the fast toggles #284 does the same.

Tool facts

  • Bun 1.4.5: bun --version on 2026-12-01 and the SoT/toolchain.json pin.
  • Node.js v26.13.0: node --version on 2026-12-01; bunx vitest runs Vitest through its #!/usr/bin/env node shebang.
  • Effect 4.1.7, Vitest 5.1.2, YAML 2.9.1: exact pins in package.json.
  • OMP 19.2.1: SoT/toolchain.json. No step or acceptance row runs OMP; the removal makes the kit spawn no omp launch or omp models.
  • Host tools for the Linux acceptance rows, versions read on 2026-12-01: GNU Bash 5.3.0 (./docks-kit is a Bash script), GNU tar 1.35 (package-smoke.ts lists the tarball), GnuPG 2.4.8, Git 2.53.0, and util-linux script 2.41.3. bun run check runs test:unit, which on Linux includes the review-benchmark project; root AGENTS.md (Testing) states that it needs git, gpg, GNU tar, script, and full history with origin/main. This checkout is not shallow (git rev-parse --is-shallow-repository printed false).

Decisions

  • Question: where the root flags and their handler live.
    • Options: (a) a new cli/src/commands/root.ts that defines the docks-kit root command (flags, summary, toggle handler) without subcommands; main.ts adds Command.withSubcommands(COMMANDS), and argv.ts builds a root surface from the same value; (b) flags in main.ts and a second flag list in argv.ts; (c) keep a hidden omp command for the toggles.
    • Evidence: buildCommandSurface reads config.flags from any Command.make value; main.ts runs at import, so tests cannot import it.
    • Failure modes: (b) two flag lists drift; (c) keeps the retired word alive.
    • Durability: (a) one definition feeds parse, validation, help, and tests.
    • Pre-mortem: a later root flag added in main.ts bypasses prepareArgv. Guard: the root surface comes from the same exported command, and argv.test.ts checks that --fast is accepted at the root and refused after sync.
    • Choice: (a). Rejected: (b) drift; (c) a removed command must not stay reachable.
  • Question: how a removed docks-kit omp invocation fails.
    • Options: (a) the repository's removed-name pattern: omp becomes an unknown subcommand (Unknown subcommand "omp" for "docks-kit", exit 1; with a flag, unknown command 'omp', exit 2), pinned in removedNames.test.ts, and the changelog names omp and the root flags; (b) a special migration message in prepareArgv.
    • Evidence: removedNames.test.ts pins model, plugins, models, status, harnesses, and skills this way since 0.23.0 and 0.24.0.
    • Failure modes: (a) a user who typed docks-kit omp --fast reads no pointer to --fast; the changelog and the root summary give it. (b) a second refusal convention.
    • Durability: (a) reuses the one convention and adds no special case.
    • Pre-mortem: users keep typing the old command. Guard: the root summary lists --fast and --ultrafast, and the changelog entry names the replacement for each old form.
    • Choice: (a). Rejected: (b), because the repository has one refusal convention for removed names.
  • Question: what happens to the kit store data of the launcher.
    • Options: (a) keep schema 1 unchanged, stop reading and writing omp_session, and remove the legacy state.json import; (b) append migration 2 that drops omp_session and harness_selection; (c) keep the import.
    • Evidence: kitDb.ts refuses a newer schema with KitDbTooNewError. Under (b), an older kit on the same home cannot open the store: its readCache and writeCache absorb the error (kitDb.ts), and toolchain.ts then fetches upstream and returns the result without caching it. So toolchain outdated still works on an older kit but loses its cache. The issue asks to preserve forward migration compatibility and not reset databases.
    • Failure modes: (a) a dead table stays, as harness_selection already does; an old state.json is no longer renamed. (b) every older kit loses store access, and with it the lookup cache. (c) dead code that writes a table nothing reads.
    • Reversibility: (a) and (c) keep store access for older kits and every row; (b) deletes data and cannot be undone for an older kit.
    • Durability: (a) removes every reader and writer and keeps the schema that older kits open.
    • Pre-mortem: a later schema change forgets that omp_session is dead. Guard: the migration comment names both dead tables and the release that retired each.
    • Choice: (a). Rejected: (b) takes store access, and the cache with it, from older kits on the same home and deletes rows; (c) keeps selector-only code.
  • Choice: move engineHome unchanged to a new cli/src/engine-native/home.ts and delete ompSession.ts; update the five importers. Rejected: keep ompSession.ts with only engineHome, because the name would describe a removed feature.
  • Choice: move the store tests of ompSession.test.ts to cli/test/unit/kitDb.test.ts and the engineHome tests to cli/test/unit/home.test.ts; delete the session-model, legacy-import, launcher, and overlay tests. Rejected: keep them, because they test removed code.
  • Choice: leave the cached overlay files under ~/.cache/docks-kit alone. Rejected: a tidy rule, because the files are cache data that an older kit can still read, and tidy removes only agent leftovers.
  • Choice: version 0.32.0 (minor), the next minor version over the landing base (0.31.3 now; when Handle empty OMP tier sections in the fast toggles #284 lands first with 0.31.4, still 0.32.0), because the release removes a command and adds two root flags. Rejected: a patch bump.
  • Choice: both root flags together exit 2 with Pass either --fast or --ultrafast, not both, in the wording of the existing Pass either --model <selector> or --pick, not both, before the config check and any lock. Rejected: the old --<flag> toggles <flag> mode and exits; pass it alone, because at the root no other launcher flag or argument exists.
  • Choice: cover the packaged entry in cli/scripts/package-smoke.ts with one --fast on/off pair and one --fast --ultrafast refusal in a temporary home with a seeded config.yml, with PI_CODING_AGENT_DIR, OMP_PROFILE, PI_PROFILE, and PI_CONFIG_DIR set empty. Rejected: a run against the real home, because the toggle writes config.yml.
  • Choice: the spawned spec tests live in a new cli/test/unit/rootFlags.test.ts (real CLI, temporary home, the same four variables empty). Rejected: a new verify skill flow, because the spawned test already drives the real surface in every gate.

Request corrections

  • Asked: acceptance bun run test:unit:portable as the CLI proof. Did: focused rows for the new and changed test files, plus the full gate. Reason: the focused rows name the behavior; the full gate runs every unit test.

Engineering standards

  • Step 1 (root_flags): tdd-workflow (spec tests first, red baseline), code-clarity, type-safety-discipline (flag config types), commit-discipline.
  • Step 2 (remove_launcher): refactor-style removal inside this plan with code-clarity and commit-discipline; language server references before each moved export.
  • Step 3 (package_smoke): test-coverage, code-clarity, commit-discipline.
  • Step 4 (docs_release): code-clarity for prose, commit-discipline; source_files ranges of the edited project skills checked by skillMetadata.test.ts (project skills carry no content hash).

Steps

# Id Task Files Depends Effect Status Done when
1 root_flags Write spec tests first: spawned docks-kit --fast and --ultrafast on and off in a temporary home; --fast --ultrafast refused with exit 2, the seeded file unchanged, and neither the home sync lock file nor the agent-folder lock file created; a missing config.yml refused with exit 2, the <path> does not exist; run 'docks-kit sync' first diagnostic of ompFastMode.ts requireDeployedConfig, and no omp folder; and prepareArgv accepting --fast at the root. docks-kit sync --fast refused is a regression guard, not a red spec. Each spawned run sets PI_CODING_AGENT_DIR, OMP_PROFILE, PI_PROFILE, and PI_CONFIG_DIR empty. Then add cli/src/commands/root.ts (root flags, summary, toggle handler with the lock path moved from omp.ts), give argvSurface.ts a root surface, use it in prepareArgv when no subcommand is given, build the root in main.ts from it, move the in-process lock and --ultrafast tests of ompFastMode.test.ts to the root command, and delete its launcher-only refusal cases (--model, --pick, an argument); the two-flag case moves to the root refusal. cli/src/commands/root.ts, cli/src/main.ts, cli/src/argv.ts, cli/src/argvSurface.ts, cli/src/engine-native/ompFastMode.ts, cli/test/unit/rootFlags.test.ts, cli/test/unit/ompFastMode.test.ts, cli/test/unit/argv.test.ts - local done The spec tests fail before the change and pass after it; both root flags toggle only tier.openai under the same locks and exit codes as before; both flags together exit 2 before any lock or write; no test in ompFastMode.test.ts names a launcher flag.
2 remove_launcher Delete cli/src/commands/omp.ts and cli/src/engine-native/ompOverlay.ts; move engineHome to cli/src/engine-native/home.ts, update its importers, and delete ompSession.ts; remove OmpSessionModel, the legacy state.json import, and spliceOmpBoundary; update the kitDb.ts comments. Delete the launcher, overlay, and session tests, move the store and home tests, remove omp from REGISTERED_SUBCOMMANDS and delete the omp passthrough boundary block in argv.test.ts, and pin omp and omp --fast in removedNames.test.ts: its environment sets the four agent-folder variables empty and puts a test-only omp executable that records each call first on PATH, and its temporary home holds a seeded config.yml that stays unchanged. cli/src/commands/omp.ts, cli/src/engine-native/ompOverlay.ts, cli/src/engine-native/ompSession.ts, cli/src/engine-native/home.ts, cli/src/engine-native/sharedTypes.d.ts, cli/src/engine-native/kitDb.ts, cli/src/engine-native/deps.ts, cli/src/engine-native/engineCtx.ts, cli/src/commands/scratch.ts, cli/src/commands/tidy.ts, cli/src/plan/services.ts, cli/src/argv.ts, cli/src/argvSurface.ts, cli/test/unit/ompCommand.test.ts, cli/test/unit/ompOverlay.test.ts, cli/test/unit/ompSession.test.ts, cli/test/unit/kitDb.test.ts, cli/test/unit/home.test.ts, cli/test/unit/removedNames.test.ts, cli/test/unit/argv.test.ts 1 local done git grep finds no ompOverlay, ompSession, omp_session reader or writer, spliceOmpBoundary, or opencode-zen default in cli/src; docks-kit omp and docks-kit omp --fast are refused as removed names, the stub omp records no call, and the seeded config.yml stays unchanged; the store and home tests pass from their new files.
3 package_smoke Add the packaged --fast on/off and --fast --ultrafast checks to the package smoke in a temporary home with a seeded config.yml and the four agent-folder variables set empty. Running the smoke reads the public npm registry on a cold cache. cli/scripts/package-smoke.ts 1 probe done bun run smoke:package prints the two toggle lines and the refusal, and exits 0.
4 docs_release Update the launcher text in the README, cli/AGENTS.md, the CLI docs, DESIGN.md, and the three skills (with source_files ranges that fit the new files); add the 0.32.0 changelog entry with the replacement for each old form; bump package.json; rebuild the talk bundle; regenerate the payload; then regenerate the dry-run and mutation goldens with --update-goldens and run bun run format. README.md, cli/AGENTS.md, cli/docs/flags.md, cli/docs/omp-models.md, cli/docs/overview.md, cli/src/engine-native/DESIGN.md, .agents/skills/omp-sync-context/SKILL.md, .agents/skills/omp-sync-context/references/state-and-launcher.md, .agents/skills/sync-orchestration-context/SKILL.md, .agents/skills/tidy-context/SKILL.md, cli/test/goldens/dryrun.json, cli/test/goldens/mutation.json, CHANGELOG.md, package.json, SoT/.omp/plugin/extensions/talk.js, cli/src/generated 2, 3 local done git grep outside CHANGELOG.md and the frozen benchmark cases finds no docks-kit omp launcher text and no omp --fast; docks-kit docs flags and docks-kit --help show the root flags; the generated, golden, and skill-metadata checks pass.

Acceptance

ID Command Expected
root bunx vitest run --reporter=verbose cli/test/unit/rootFlags.test.ts cli/test/unit/ompFastMode.test.ts cli/test/unit/argv.test.ts Exit 0, and the verbose report lists as passed each spawned case of rootFlags.test.ts: in a temporary home with the four agent-folder variables empty, --fast toggles tier.openai none -> priority -> none and --ultrafast none -> ultrafast -> none with the state line and the /fast hint and the other keys kept; both flags together exit 2 with Pass either --fast or --ultrafast, not both, the seeded file unchanged, and no lock file; a missing config.yml exits 2 with the does not exist; run 'docks-kit sync' first line. It also lists the root-command lock cases of ompFastMode.test.ts and the root --fast case of argv.test.ts as passed.
removed bunx vitest run --reporter=verbose cli/test/unit/removedNames.test.ts cli/test/unit/kitDb.test.ts cli/test/unit/home.test.ts Exit 0, and the verbose report lists as passed: the removed omp case (in a temporary home with the four agent-folder variables empty and a recording stub omp first on PATH, docks-kit omp exits 1 with Unknown subcommand "omp" for "docks-kit", docks-kit omp --fast exits 2 with unknown command 'omp', the stub records no call, the seeded config.yml stays unchanged, and no ~/.docks-kit/kit.db appears), and the schema-1 and newer-schema cases of kitDb.test.ts and the engineHome cases of home.test.ts.
help ./docks-kit; ./docks-kit --help The summary lists docks-kit --fast and docks-kit --ultrafast and no docks-kit omp line; --help lists both flags. Both commands only print.
dry ./docks-kit sync --dry-run Exit 0, and each preview line starts with [dry-run].
smoke bun run smoke:package Exit 0, with the packaged --fast on and off lines and the refusal of both flags, in its temporary home.
meta bunx vitest run cli/test/unit/skillMetadata.test.ts Exit 0: every source_files entry of the edited skills names an existing file and a range inside it.
gate bun run check Exit 0: lint, types, format, generated files, unit tests, and both golden suites pass.

Do not touch

OMP’s own model picker, provider credentials, user models and unrelated kit state. No deployment or release is authorized by this issue. Do not edit or reorder a shipped kitDb.ts migration. Do not rewrite CHANGELOG.md history or the review-benchmark case fixtures.

Open questions

Verification Results

Baseline d3731bc: npm package docks-kit 0.31.3 installed via Bun in an isolated Linux home. Root --fast refuses with exit 2; the old subcommand advertises the picker. Both nested toggles changed only the tier in a disposable config. No provider authentication or paid calls.

Candidate f65ef567 on Linux x64, 2026-12-01:

  • Red baseline, step root_flags: bunx vitest run cli/test/unit/rootFlags.test.ts cli/test/unit/argv.test.ts: 7 failed, 71 passed (the five spawned root-flag cases and the two root prepareArgv cases failed on their assertions with unknown flag --fast; the sync --fast regression guard passed, as planned). bun run format then wrapped one import line of rootFlags.test.ts; no assertion changed.
  • root: bunx vitest run --reporter=verbose cli/test/unit/rootFlags.test.ts cli/test/unit/ompFastMode.test.ts cli/test/unit/argv.test.ts: exit 0, 85 passed; the report lists each of the six rootFlags.test.ts cases as passed, among them refuses ["--fast","--ultrafast"] with exit 2 before any lock or write and refuses a missing config.yml with exit 2 and creates no omp folder.
  • removed: bunx vitest run --reporter=verbose cli/test/unit/removedNames.test.ts cli/test/unit/kitDb.test.ts cli/test/unit/home.test.ts: exit 0, 16 passed; the report lists refuses the removed omp launcher and its toggles without starting omp or writing config.yml, refuses a store from a newer schema and keeps its rows, keeps schema 1 with its unused tables, so an older kit still opens the store, and both engineHome cases as passed.
  • help: ./docks-kit printed docks-kit --fast | --ultrafast toggle omp fast or ultrafast mode for OpenAI/Codex models and no docks-kit omp line; ./docks-kit --help lists --fast and --ultrafast under FLAGS and no omp subcommand; both exit 0.
  • dry: ./docks-kit sync --dry-run: exit 0; every preview line starts with [dry-run], then the Sync complete summary.
  • smoke: bun run smoke:package: exit 0; docks-kit --fast printed the ON and then the OFF line in its temporary home, and docks-kit --fast --ultrafast: exit 2, config.yml unchanged.
  • meta: bunx vitest run cli/test/unit/skillMetadata.test.ts: 1 passed.
  • gate: bun run check: exit 0; 6382 unit tests passed, 12 skipped; golden-dryrun: OK (12 case(s)); golden-mutation: OK (13 case(s)).
  • Extra check of the rebuilt talk bundle: bun .agents/skills/verify/scripts/omp-smoke.ts: exit 0, skills: 34, talk tool: offered, warnings: 0 (omp 19.4.0).
  • Paths outside the Steps Files cells: .agents/skills/engine-native-context/SKILL.md and .agents/skills/toolchain-context/SKILL.md, whose source_files ranges the removals shortened (cli/src/main.ts 1-60, kitDb.ts 1-177, sharedTypes.d.ts 1-12); root AGENTS.md asks to clamp them after file moves.

Candidate 3622fc37 on Linux x64, 2026-12-01, after code-review rounds 1 to 3 (repair commits 611ae928, a597761d, 3622fc37):

  • root: exit 0, 93 passed; the report lists the new cases refuses both flags before the config check, so a home without config.yml gets the conflict and no folder and offers --fast and --ultrafast without negated spellings, and the prepareArgv refusals of the tier conflict with --help and --version, a tier flag with --wizard, and --fast false.
  • removed: exit 0, 17 passed, with leaves a legacy state.json alone: a read creates no store, and a write keeps the file.
  • help: ./docks-kit printed docks-kit --fast | --ultrafast toggle omp fast or ultrafast mode for OpenAI/Codex models and no docks-kit omp line; ./docks-kit --help shows the usage lines docks-kit [--fast | --ultrafast] and docks-kit <subcommand> [flags] and lists both flags under FLAGS; both exit 0.
  • dry: exit 0; every preview line starts with [dry-run], then the Sync complete summary.
  • smoke: exit 0; the packaged docks-kit --fast printed the ON and then the OFF line, and docks-kit --fast --ultrafast: exit 2, config.yml unchanged.
  • meta: 1 passed.
  • gate: bun run check: exit 0; 6391 unit tests passed, 12 skipped; golden-dryrun: OK (12 case(s)); golden-mutation: OK (13 case(s)).
  • The repairs change no file under SoT/, so the talk bundle and the omp smoke result of f65ef567 still hold.

Activity

  1. self-assigned this
    on Dec 1, 2026
  2. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Delegation grant: yolo: "check all open issues and solve them please."

  3. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 1

    Plan-review: repair

    • goal_fit - Steps 1 root_flags and 2 remove_launcher; Acceptance root - cli/test/unit/ompFastMode.test.ts:332-348 still expects the old launcher diagnostic for both flags and for retired launcher arguments. Moving the shared runner to the root command makes those assertions fail. cli/test/unit/argv.test.ts:15-28,264-305,324-330 also expects omp registration and argument forwarding after Step 2 removes both - Retire the launcher-only assertions and use the new root refusal check for the two-flag case. Update the registered command list and remove the old forwarding cases. - class: tests still require retired behavior
    • goal_fit - Step 4 docs_release; Acceptance gate - Step 4 regenerates only the dry-run goldens. cli/test/goldens/mutation.json:26-29 pins the deployed talk.js and plugin manifest hashes. The version bump changes both files, and cli/test/lib/goldenSnapshot.ts:97-109,162-167 hashes them without normalizing the version. The mutation golden therefore fails after the planned rebuild - Add cli/test/goldens/mutation.json to Step 4 and regenerate it after rebuilding the bundle and payload. Run bun run format after regeneration as required by AGENTS.md:71. - class: generated snapshot omitted from scope
    • goal_fit - Research, launcher references; Step 4 docs_release - .agents/skills/tidy-context/SKILL.md:174 still names omp --fast as a user of both sync locks. An agent following that guidance after the cutover gets the retired command rather than the root flag - Include tidy-context/SKILL.md in Step 4, update both lock references, and refresh the skill hash. - class: active guidance points to a retired command
    • security_risk - Step 2 remove_launcher; Acceptance removed and e2e - cli/test/unit/removedNames.test.ts:17-31 changes HOME and USERPROFILE but inherits PI_CODING_AGENT_DIR. If the old omp --fast handler is still reachable, it can overwrite the real deployed config through that override (cli/src/commands/omp.ts:265-271,314-318; cli/src/engine-native/ompPaths.ts:72-90). The direct e2e command also uses the real home if the new refusal fails, and it checks no file state - Apply the same temporary-home and cleared-override isolation already planned for rootFlags.test.ts to both refusal checks. Make e2e check that the seeded config stays unchanged. - class: refusal check can write to live user state
    • security_risk - Step 3 package_smoke, Effect and Done when; Acceptance smoke - The step is marked local, but cli/scripts/package-smoke.ts:140-155,398-409 runs bun add in a lockfile-free consumer. On a cold cache that resolves and downloads dependencies from a registry. The plan contract classifies external requests as probe - Record the smoke execution as a probe against the public read-only package registry, separate from the local edit if needed. - class: external registry request marked local
    • research_gap - Research, kit-store decision, Evidence, Failure modes, and Rejected - The decision says schema 2 makes every older kit fail and breaks toolchain outdated. In cli/src/engine-native/kitDb.ts:203-242, the cache wrappers absorb the schema error. cli/src/engine-native/toolchain.ts:177-198 then fetches upstream and returns the result without caching it - Keep schema 1, but distinguish refusal to open the database from command failure. Record that an older toolchain outdated loses its cache, while schema 1 preserves access and the existing rows. - class: database refusal mistaken for caller failure
  4. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 2, delta

    Plan-review: repair

    • goal_fit - Step 1 root_flags; Acceptance root - On the unchanged CLI, docks-kit --fast exits 2 with unknown flag --fast and creates no omp folder. That passes the planned missing-config assertions without reaching the toggle handler (cli/src/argv.ts:42-49,75-84; cli/src/argvValidate.ts:27-33). The two-flag case can also pass if the handler creates a lock database before printing the expected refusal, because it checks only config.yml (cli/src/engine-native/kitLock.ts:87-93) - Require the missing-config diagnostic from ompFastMode.ts:53-57 and check that the two-flag refusal creates neither lock file. Treat the already-rejected sync --fast case as a regression guard, not a red spec. - class: refusal check can pass on the wrong execution path
    • goal_fit - Acceptance root and removed - Vitest treats the listed paths as alternative filters, not required files. If rootFlags.test.ts or the new store tests are absent, the command can still exit 0 after running the other matches. The repository also sets no reporter, so the default and minimal reporters do not list each passing case in these multi-file runs (vitest.config.ts; node_modules/vitest/dist/chunks/index.6pLw0FLK.js:6467-6485) - Make both rows require the named cases to appear as passed, using --reporter=verbose or an equivalent report. - class: focused command can pass without running the required cases
    • security_risk - Research, OMP tool fact; Step 2 remove_launcher; Acceptance removed - The temporary home protects the toggle target, but removedNames.test.ts:17-31 inherits PATH. If the bare omp route remains reachable, the check runs the real omp models --json before asserting the refusal. If the catalog contains the default model, it can launch a session with inherited user configuration (cli/src/commands/omp.ts:176-189,324-349,429-443; cli/src/engine-native/ompOverlay.ts:248-259) - Put a test-only omp executable ahead of the real one and assert that neither removed invocation calls it. - class: removal check can invoke the live launcher on regression
    • security_risk - Research, Packaged entry; Step 3 package_smoke; Acceptance smoke - The plan authorizes a public read-only registry probe, but installConsumer inherits the caller's registry configuration (cli/scripts/package-smoke.ts:55-60,140-155). On a cold cache, a configured private or scoped registry can receive the request and its credentials. A clean consumer directory does not prevent that, as Bun's configuration precedence shows - Run the consumer install with isolated registry configuration and no inherited registry credentials, so the probe reaches only the public registry. - class: probe target is not constrained to the authorized source

    Previous findings:

    • Round-1 finding on Steps 1 root_flags and 2 remove_launcher; Acceptance root: resolved - Step 1 replaces the old refusal assertions. Step 2 removes the registration and forwarding assertions.
    • Round-1 finding on Step 4 docs_release; Acceptance gate: resolved - Step 4 adds mutation.json, regenerates both goldens after the bundle and payload, and runs bun run format.
    • Round-1 finding on Research, launcher references; Step 4 docs_release: resolved - Step 4 includes tidy-context/SKILL.md and covers both old lock references. Acceptance meta checks the project skill metadata instead of plugin-only hashes.
    • Round-1 finding on Step 2 remove_launcher; Acceptance removed and e2e: resolved - The tests isolate the config path and check the seeded file. The direct refusal against the live home is gone.
    • Round-1 finding on Step 3 package_smoke, Effect and Done when; Acceptance smoke: resolved - The Effect cell now says probe. The registry-target restriction is a separate finding above.
    • Round-1 finding on Research, kit-store decision, Evidence, Failure modes, and Rejected: resolved - The decision now distinguishes loss of database access from command failure: an older kit can still fetch upstream without caching.

    Manager response to round 1

    Repaired:

    • Round 1 goal_fit on Steps 1 and 2 (tests still require retired behavior): Research fact "Tests that pin the launcher"; Step 1 Task moves the --ultrafast and lock tests to the root command and deletes the launcher-only refusal cases, Done when "no test in ompFastMode.test.ts names a launcher flag"; Step 2 Task removes omp from REGISTERED_SUBCOMMANDS and deletes the omp passthrough boundary block.
      • Instances: ompFastMode.test.ts refusals (--fast, --model, --pick, argument), argv.test.ts registered list, argv.test.ts boundary block.
    • Round 1 goal_fit on Step 4 (mutation golden): Research fact "Goldens"; Step 4 Task regenerates both goldens after the bundle and payload, then bun run format; Step 4 Files adds cli/test/goldens/mutation.json.
    • Round 1 goal_fit on tidy-context: Research launcher-text fact lists .agents/skills/tidy-context/SKILL.md; Step 4 Task (three skills) and Files; Step 4 Done when (git grep finds no omp --fast). The suggested hash refresh does not apply: project skills carry no content hash (new Research fact); Acceptance hash replaced by meta (skillMetadata.test.ts).
      • Instances: both omp --fast mentions in the tidy-context lock file list.
    • Round 1 security_risk on refusal checks writing live state: Step 2 Task isolates removedNames.test.ts (four agent-folder variables empty, seeded config.yml unchanged); Step 2 Done when; Acceptance removed. The direct e2e row is removed; Acceptance root now proves the two-flag refusal in a temporary home with the seeded file unchanged.
      • Instances: removedNames.test.ts, Acceptance e2e (removed), Acceptance root, Step 3 smoke (same isolation).
    • Round 1 security_risk on Step 3 Effect: Step 3 Effect is probe; Research "Packaged entry" fact records the public read-only registry read.
    • Round 1 research_gap on the kit-store decision: Evidence, Failure modes, Reversibility, and Choice rewritten: an older kit loses store access and its cache, toolchain outdated still works uncached.

    Rejected: none.

  5. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 3, delta

    Plan-review: pass

    None.

    Previous findings:

    • Round-2 finding on Step 1 root_flags; Acceptance root: resolved - Step 1 requires the missing-config diagnostic and checks that neither lock file is created when both flags are passed. It treats sync --fast as a regression guard.
    • Round-2 finding on Acceptance root and removed: resolved - Both rows use --reporter=verbose and require the named cases to appear as passed.
    • Round-2 finding on Research, OMP tool fact; Step 2 remove_launcher; Acceptance removed: resolved - Step 2 puts a recording omp executable first on PATH, and Acceptance removed requires zero calls across both removed invocations.
    • Round-2 finding on Research, Packaged entry; Step 3 package_smoke; Acceptance smoke: rejected - not repeated.

    Manager response to round 2

    Repaired:

    • Round 2 goal_fit on Step 1 and Acceptance root (refusal check on the wrong path): Step 1 Task requires the requireDeployedConfig diagnostic for a missing config.yml, and no home sync lock file and no agent-folder lock file for the two-flag refusal; sync --fast is a regression guard. Step 1 Done when ("before any lock or write"); Acceptance root.
      • Instances: the missing-config case, the two-flag case, the sync --fast case.
    • Round 2 goal_fit on Acceptance root and removed (filters can pass without the cases): both rows run --reporter=verbose and require the named cases listed as passed.
      • Instances: Acceptance root, Acceptance removed.
    • Round 2 security_risk on removedNames.test.ts inheriting PATH: Step 2 Task puts a recording stub omp first on PATH; Step 2 Done when and Acceptance removed require that it records no call.

    Rejected:

    • Round 2 security_risk on Step 3 and Acceptance smoke (probe target not constrained): the plan does not change how package-smoke.ts resolves its registry; its bun add is the existing install. On this host no user .npmrc or bunfig.toml exists, the repository bunfig.toml holds only [fmt], and no *registry* or BUN_CONFIG_* variable is set (checked 2026-12-01; recorded in Research "Packaged entry"), so the run reads only the public npm registry. Changing the smoke's registry handling is outside the Goal.
  6. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Self-review

    Reviewed head f65ef567 against d3731bc9, one pass per lens of the code-review panel.

    correctness

    No findings. The root flags are local to the root command in Effect 4, so docks-kit --fast sync and docks-kit sync --fast are refused; prepareArgv scans the root surface only when no subcommand is given. The two-flag check runs before engineHome, the config check, and the locks. withKitDb no longer reads state.json, so a read on a home with only that file creates no store. No importer of a deleted module remains (check:types passed).

    spec-and-tests

    No findings. Each spawned test empties the four agent-folder variables; the removed-name test also puts a recording omp stub first on PATH and uses its own seeded home. The store tests now drive readCache, writeCache, and withKitDb directly, which are the remaining callers of the store.

    text-and-safety

    No findings. The docs and skills describe only the root flags and the store; the changelog names the replacement for each removed form. No machine path is added to a tracked file.

  7. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 1, lens correctness

    Code-review: pass

    Standards

    • [LOW] Bug - cli/src/commands/root.ts:111-115, cli/src/main.ts:49-55 - docks-kit --fast --ultrafast --version prints the version and exits 0, although cli/docs/flags.md:91-93 says both flags exit 2. Effect handles --version and --help before it calls the root handler, so neither action reaches the conflict check. No config changes. - Check the conflict during public argument validation, before Effect dispatches global actions. - class: argument conflict checked after action dispatch
    • [LOW] Bug - cli/src/argv.ts:72-77, cli/src/argvSurface.ts:201-220 - docks-kit --fast false reports unknown command 'false', while docks-kit --fast=false reports that the flag does not take a value. The subcommand scan treats the separate Boolean literal as a command and discards the root flag scope. The same issue affects --ultrafast. - Skip separate Boolean literals after declared root Boolean flags during subcommand detection, then let flag validation reject them. - class: Boolean value misclassified as subcommand
    • [LOW] Bug - cli/src/main.ts:11-19, cli/test/goldens/dryrun.json:25 - The root help shows only docks-kit <subcommand> [flags] under USAGE and lists the root toggles below it. A user who follows that synopsis and types docks-kit sync --fast gets a refusal. - Show separate usage forms for root toggles and subcommands. Leave subcommand help unchanged. - class: help synopsis contradicts accepted arguments
    • [LOW] Bug - cli/src/commands/root.ts:60, cli/src/main.ts:11, cli/src/main.ts:55 - docks-kit --fast --wizard discards --fast and opens a subcommand picker. Effect drops the typed root flags and prompts only for inherited flags when a command has visible children. The same applies to --ultrafast. - Reject a root toggle combined with --wizard before opening the picker, and tell the user to run the toggle directly. - class: wizard silently drops root action
    • [LOW] Performance - cli/src/argvSurface.ts:181-197 - Even a plain docks-kit --fast copies every command surface into a temporary array on each of its two subcommand scans. The same allocation recurs for each prefix flag, including repeated --help flags that the CLI accepts and normalizes. - Check the root surface separately, then iterate the existing command surfaces without copying them. - class: per-token copy of static lookup data

    Spec

    None.

    Code review round 1, lens spec-and-tests

    Code-review: pass

    Standards

    • [LOW] Bug - cli/scripts/package-smoke.ts:349-365, cli/test/unit/removedNames.test.ts:56-74 - The new checks can fail on a healthy build because they inherit caller settings. An invalid DOCKS_KIT_SYNC_LOCK_WAIT_MS makes the package toggle exit 2. An inherited DOCKS_KIT_ENGINE=native-raw sends the removed-name cases to EngineNative instead of the public parser. Both outcomes are inferred from the child dispatch. - Set a valid lock wait in the smoke and clear the engine override in the removed-name child environment. - class: ambient environment changes test behavior
    • [LOW] Maintainability - cli/test/unit/kitDb.test.ts:31-34, cli/test/unit/kitDb.test.ts:61-77 - Every fixture lacks state.json, so restoring the old importer would leave these tests green. A cache lookup could once again create kit.db and rename the legacy file on upgrade without failing the suite. - Seed a valid legacy file and assert that a cache read does not create the database and that a cache write leaves the legacy file untouched. - class: missing legacy-state regression fixture
    • [LOW] Maintainability - cli/test/unit/rootFlags.test.ts:176-189 - Both conflict cases seed config.yml. A regression that checks for that file before rejecting the flag pair would still pass them. - Add an unseeded case that expects the conflict diagnostic rather than the missing-config diagnostic and verifies that no folders or locks appear. - class: missing validation-order coverage

    Spec

    • [MEDIUM] Spec - CHANGELOG.md:20-24 - Following the migration advice turns docks-kit omp commit, which sent commit as prompt text, into omp commit, which invokes an omp subcommand. The old launcher inserted launch before forwarding arguments. This is not a working replacement for that old form as required by plan-283.md:89, “the replacement for each old form.” - Recommend omp launch [args...] for forwarded session arguments and omp for a bare interactive session. - class: migration command changes argument meaning
    • [LOW] Spec - cli/src/commands/root.ts:111-115, cli/src/argv.ts:70-79 - docks-kit --fast --ultrafast --help reaches Effect's help action before the root handler, so it prints help and exits 0 rather than reporting the conflict, an inference from the action order. plan-283.md:67 says “both root flags together exit 2” with the conflict diagnostic. - Check mutual exclusion on the scanned root flags before dispatching Effect's global actions. - class: action dispatch bypasses argument validation
    • [LOW] Spec - cli/src/commands/root.ts:25-36, cli/src/argv.ts:70-79 - Bash completion offers --no-fast and --no-ultrafast, which the public parser rejects. The mismatch follows from Effect's default Boolean negation. plan-283.md:5 exposes the two positive toggles, and plan-283.md:45 says “one definition feeds parse, validation, help, and tests.” - Apply Flag.withoutNegation to both root flags so completion and validation agree. - class: completion advertises rejected flags
    • [LOW] Spec - .agents/skills/omp-sync-context/references/state-and-launcher.md:17-18 - The new guidance requires dropping and recreating cache_entry on every shape change, even when an additive migration can retain the rows. cli/src/engine-native/kitDb.ts:13-15 makes recreation optional, and plan-283.md:89 calls for updating launcher text, not changing cache migration policy. - Remove the new mandate or restate recreation as optional. - class: unrelated migration policy change

    Code review round 1, lens text-and-safety

    Code-review: pass

    Standards

    • [MEDIUM] Bug - CHANGELOG.md:20-24 - The advised prefix replacement turns a former prompt such as docks-kit omp commit into an invocation of omp's commit subcommand. The old launcher inserted launch to prevent this. Plain omp also uses the normal configuration, which can select paid models. - Recommend omp for interactive sessions and omp launch [args] for scripts that pass session arguments. State that neither replacement preserves the free-model checks or role overrides. - class: misleading migration command
    • [LOW] Bug - cli/test/goldens/dryrun.json:25, cli/src/main.ts:16-19 - Root help says docks-kit <subcommand> [flags], which tells users to supply a subcommand for flags that work only without one. For example, docks-kit sync --fast is refused. - Show separate usage forms for the root tier flags and subcommands in the root help formatter, then update the snapshot. - class: incorrect root usage syntax
    • [LOW] Bug - cli/docs/flags.md:86-87, cli/docs/omp-models.md:721-728, cli/AGENTS.md:77 - A user with OMP_PROFILE=work is told to look for the changed tier in ~/.omp/agent/config.yml, but the handler resolves the active profile and writes ~/.omp/profiles/work/agent/config.yml. - Identify the documented path as the default and say that the flags target the active profile or agent-directory override. - class: default path stated as universal
    • [LOW] Bug - cli/docs/flags.md:3-4, cli/docs/flags.md:77-95 - The flag reference says a flag that edits a tool's configuration uses --<tool>-<setting>, but the newly documented root flags have no tool prefix and are not global. A reader applying the convention would infer the wrong spelling or scope. - Correct the convention to distinguish root-only flags from global and subcommand flags. - class: stale flag naming convention
    • [LOW] Bug - .agents/skills/omp-sync-context/references/state-and-launcher.md:22-23, cli/src/engine-native/kitDb.ts:103-126 - The new reference promises that cache reads work on a home that cannot be written. The opener skips chmod, but it still opens SQLite without read-only mode, enables write-ahead logging, and can apply migrations. Inference: on a read-only mount where SQLite needs to create its journal files, toolchain outdated misses the cache and makes a network request instead. - State that ordinary reads do not change permissions, but SQLite may still need write access. Correct the matching source comment. - class: unsupported read-only guarantee
    • [LOW] Bug - .agents/skills/sync-orchestration-context/SKILL.md:136, cli/src/commands/root.ts:120-125 - A maintainer tracing a root tier write is told that mutating commands go through engine(args). The root handler calls the native lock and toggle helpers directly, so checks at the engine entry do not govern that path. - Identify sync and toolchain as users of engine(args) and point tier writes to root.ts. - class: incorrect dispatch documentation
    • [LOW] Bug - cli/src/main.ts:25-26, cli/src/engine.ts:7-9, cli/src/engine-native/DESIGN.md:13-16 - The engine entry documentation still says Effect parses pickers before engine execution. The only kit model picker is gone, and it ran in the former command handler, not at this engine boundary. - Describe argument and flag parsing without referring to pickers. - class: stale removed-feature reference
    • [LOW] Bug - cli/scripts/package-smoke.ts:378-390 - The refusal diagnostic calls its assertion “no write,” but the smoke checks only the final bytes against the original seed. It cannot detect a rewrite with identical bytes. - Compare with the bytes immediately before the refusal and describe the assertion as “config unchanged.” - class: overstated verification diagnostic
    • [LOW] Maintainability - cli/test/unit/removedNames.test.ts:34-64, cli/test/lib/goldenResources.ts:342-352, cli/test/lib/goldenResources.ts:373-426 - The removed-name test adds a second implementation of the cross-platform command recorder and the child environment override. A change to the Windows launcher rules now needs two updates, and the new environment spread omits the shared helper's case-insensitive override handling. - Reuse the shared recorder and childEnv so the refusal tests use the same platform behavior as the other spawned CLI tests. - class: duplicated subprocess fixture

    Spec

    None.

  8. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 2, delta

    Code-review: pass

    Previous findings

    • Round-1 finding on cli/src/commands/root.ts:111-115: fixed - cli/src/argv.ts:75-94 rejects both tier flags before Effect can print the version or help.
    • Round-1 finding on cli/src/argv.ts:72-77: fixed - cli/src/argvSurface.ts:225-234 leaves separate Boolean literals in root scope so validation rejects them as flag values.
    • Round-1 finding on cli/src/main.ts:11-19: fixed - cli/src/main.ts:22-30 and cli/test/goldens/dryrun.json:25 show separate root and subcommand usage forms.
    • Round-1 finding on cli/src/commands/root.ts:60: fixed - cli/src/argv.ts:75-94 rejects either tier flag with --wizard before dispatch.
    • Round-1 finding on cli/src/argvSurface.ts:181-197: fixed - cli/src/argvSurface.ts:181-202 iterates existing command surfaces without copying them.
    • Round-1 finding on cli/scripts/package-smoke.ts:349-365: fixed - cli/scripts/package-smoke.ts:350-359 sets a valid lock wait, and cli/test/unit/removedNames.test.ts:37-48 clears the engine override.
    • Round-1 finding on cli/test/unit/kitDb.test.ts:31-34: fixed - cli/test/unit/kitDb.test.ts:37-52 seeds valid legacy state and checks that neither a cache read nor a write imports it.
    • Round-1 finding on cli/test/unit/rootFlags.test.ts:176-189: fixed - cli/test/unit/rootFlags.test.ts:193-207 expects the conflict diagnostic and no new folders in an unseeded home.
    • Round-1 Spec finding on CHANGELOG.md:20-24: fixed - CHANGELOG.md:22-31 uses omp launch to preserve positional prompts and omp for a bare interactive session.
    • Round-1 Spec finding on cli/src/commands/root.ts:111-115: fixed - cli/src/argv.ts:75-94 refuses the flag pair before help can run.
    • Round-1 Spec finding on cli/src/commands/root.ts:25-36: fixed - cli/src/commands/root.ts:25-38 disables negation for both flags, so Effect no longer generates the rejected spellings.
    • Round-1 Spec finding on .agents/skills/omp-sync-context/references/state-and-launcher.md:17-18: fixed - The reference now describes cache-table recreation as optional.
    • Round-1 Bug finding on CHANGELOG.md:20-24: fixed - CHANGELOG.md:22-31 distinguishes the commit prompt from the commit subcommand and warns that normal configuration can select paid models.
    • Round-1 finding on cli/test/goldens/dryrun.json:25: fixed - The root snapshot shows the tier flags on a separate usage line.
    • Round-1 finding on cli/docs/flags.md:86-87: fixed - cli/docs/flags.md:90-98, cli/docs/omp-models.md:721-727, and cli/AGENTS.md:77 identify the active agent folder and distinguish it from the default.
    • Round-1 finding on cli/docs/flags.md:3-4: fixed - cli/docs/flags.md:3-8 removes the tool-prefix rule and identifies the tier flags as root-only.
    • Round-1 finding on .agents/skills/omp-sync-context/references/state-and-launcher.md:22-23: fixed - The reference and cli/src/engine-native/kitDb.ts:104-106 now warn that SQLite may need write access.
    • Round-1 finding on .agents/skills/sync-orchestration-context/SKILL.md:136: open - repeated under Standards.
    • Round-1 finding on cli/src/main.ts:25-26: open - picker references are gone, but the engine design still names the removed launcher as a current command.
    • Round-1 finding on cli/scripts/package-smoke.ts:378-390: fixed - cli/scripts/package-smoke.ts:380-394 compares the bytes immediately before and after the refusal and reports only that the file stayed unchanged.
    • Round-1 finding on cli/test/unit/removedNames.test.ts:34-64: fixed - cli/test/unit/removedNames.test.ts:26-48 uses the shared stub recorder and environment helper.

    Standards

    • [LOW] Bug - .agents/skills/sync-orchestration-context/SKILL.md:136, cli/src/engine-native/DESIGN.md:20-22 - A maintainer tracing docks-kit docs flags is told that commands outside sync and toolchain call EngineNative directly. The docs handler prints bundled text without calling it (cli/src/commands/docs.ts:56-82). - Name the root toggles, tidy, and scratch as examples rather than describing every other command. - class: incorrect dispatch documentation
    • [LOW] Bug - cli/src/engine-native/DESIGN.md:3-7 - A maintainer following the engine overview still sees omp listed as a current kit command with a direct engine path. The command no longer exists in cli/src/argv.ts:29-39. - Replace the omp example with the root tier flags. - class: stale removed-feature reference
    • [LOW] Bug - cli/docs/flags.md:3-5 - The built-in flag guidance omits the raw argument boundary. Inference: docks-kit plan --version prints plan usage and exits 1, not the kit version, because cli/src/argv.ts:54-67 forwards --version to the plan dispatcher (cli/src/plan/commands.ts:1455-1469). - Tell readers to put kit-wide flags before plan, agent-docs, or skill. - class: undocumented flag placement restriction
    • [LOW] Bug - CHANGELOG.md:23-27 - The migration note says omp launch treats every forwarded word as prompt text. Recognized options are still parsed: the old launcher forwarded --continue to omp launch to resume a session. - Say that launch treats positional words as prompt text instead of subcommands, while still parsing options. - class: inaccurate argument forwarding description
    • [LOW] Maintainability - cli/src/commands/root.ts:25-38, cli/test/unit/argv.test.ts:177-196 - Inference: reverting Flag.withoutNegation would bring back the rejected spellings in shell completion without failing the committed tests. The parser tests exercise validation, not generated completions. - Spawn docks-kit --completions bash and check that it includes both positive spellings and neither negated spelling. - class: missing completion regression coverage

    Spec

    • [LOW] Spec - cli/src/commands/root.ts:25-41, cli/src/argv.ts:75-79, cli/src/main.ts:25-29 - plan-283.md:45 requires that “one definition feeds parse, validation, help, and tests.” The repair adds a second literal flag list for early validation and repeats it in the usage line. Inference: renaming a flag in its Effect declaration alone would let it bypass the conflict or wizard refusal and leave the usage line stale. - Share the flag names across the Effect declarations, early validation, and usage line. - class: duplicated flag definitions

    Manager response to round 1

    Repaired:

    • correctness LOW, root.ts:111-115 (conflict after action dispatch) and spec-and-tests LOW, same class (--help bypass): argv.ts rootTierRefusal refuses both tier flags in prepareArgv, before Effect runs --help or --version; tests in argv.test.ts ("refuses %j before Effect runs a global action or reads a subcommand") and rootFlags.test.ts (unseeded conflict).
      • Instances: --help, --version, plain conflict.
    • correctness LOW, argv.ts:72-77 (--fast false as a subcommand): argvSurface.ts subcommandName skips a separate Boolean literal after a root flag, so validation reports flag --fast does not take a value; tests for --fast false and --ultrafast no.
    • correctness LOW and text-and-safety LOW, root help usage: main.ts kitFormatter shows docks-kit [--fast | --ultrafast] above docks-kit <subcommand> [flags] in the root help only; dryrun.json updated.
    • correctness LOW, --fast --wizard: prepareArgv refuses a root tier flag with --wizard (TIER_WITH_WIZARD); test in argv.test.ts.
    • correctness LOW, per-token copy in argvSurface.ts:181-197: the root surface is checked separately, with no array copy.
    • spec-and-tests LOW, ambient environment: the smoke sets DOCKS_KIT_SYNC_LOCK_WAIT_MS=10000; removedNames.test.ts sets DOCKS_KIT_ENGINE empty through childEnv.
    • spec-and-tests LOW, missing legacy-state fixture: kitDb.test.ts "leaves a legacy state.json alone: a read creates no store, and a write keeps the file".
    • spec-and-tests LOW, validation order: rootFlags.test.ts "refuses both flags before the config check, so a home without config.yml gets the conflict and no folder".
    • spec-and-tests MEDIUM and text-and-safety MEDIUM, CHANGELOG.md:20-24 (migration command): the entry recommends omp for an interactive session and omp launch [args] for forwarded arguments, explains the commit example, and says that neither keeps the free-model checks or the role overrides.
    • spec-and-tests LOW, completion offers --no-fast: both flags use Flag.withoutNegation; docks-kit --completions bash printed no no-fast or no-ultrafast.
    • spec-and-tests LOW, state-and-launcher.md:17-18 (cache recreation mandate): restated as optional, as kitDb.ts says.
    • text-and-safety LOW, default path stated as universal: flags.md, omp-models.md, and cli/AGENTS.md name the active omp agent folder and the default path.
      • Instances: the three files.
    • text-and-safety LOW, flag naming convention in flags.md:3-4: rewritten for built-in, subcommand, and root-only flags.
    • text-and-safety LOW, read-only guarantee: state-and-launcher.md and the kitDb.ts comment say a read changes no permissions but SQLite can still need write access.
      • Instances: the reference and the source comment.
    • text-and-safety LOW, dispatch documentation: sync-orchestration-context/SKILL.md names sync and toolchain as the engine(args) users and points tier writes to root.ts.
    • text-and-safety LOW, stale picker references: main.ts, engine.ts, and DESIGN.md describe flag parsing without pickers.
      • Instances: the three files.
    • text-and-safety LOW, smoke diagnostic: the refusal compares with the bytes read right before it and reports config.yml unchanged.
    • text-and-safety LOW, duplicated subprocess fixture: removedNames.test.ts uses makeStubDir and childEnv with GOLDEN_ARGV_LOG, and checks that the log holds no omp call.

    Rejected: none.

    Redesigned: none.

    Self-review findings: none.

  9. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 3, delta

    Code-review: pass

    Previous findings

    • Round-2 finding on .agents/skills/sync-orchestration-context/SKILL.md:136, cli/src/engine-native/DESIGN.md:20-22: fixed - Both passages give examples of direct EngineNative calls without claiming that all other commands use that path.
    • Round-2 finding on cli/src/engine-native/DESIGN.md:3-7: fixed - The overview names the root tier toggles instead of the removed launcher.
    • Round-2 finding on cli/docs/flags.md:3-5: fixed - cli/docs/flags.md:8-10 explains where built-in flags go for plan, agent-docs, and skill.
    • Round-2 finding on CHANGELOG.md:23-27: fixed - CHANGELOG.md:24-27 distinguishes positional prompt text from options such as --continue.
    • Round-2 finding on cli/src/commands/root.ts:25-38, cli/test/unit/argv.test.ts:177-196: fixed - cli/test/unit/rootFlags.test.ts:210-225 checks that the generated Bash completion script includes both positive spellings and neither negated spelling.
    • Round-2 finding on cli/src/commands/root.ts:25-41, cli/src/argv.ts:75-79, cli/src/main.ts:25-29: open - Parsing, early validation, and the usage line share the names, but two user-visible copies remain. Repeated under Spec.

    Standards

    None.

    Spec

    • [LOW] Spec - cli/src/commands/root.ts:71, cli/src/commands/root.ts:149 - plan-283.md:45 says “one definition feeds parse, validation, help, and tests.” The bare-command summary and the --help description still hardcode both flag spellings. Inference: renaming a flag at its definition would update parsing, validation, and the usage line, but leave both texts advertising the old spelling. - Build the summary and help description from the shared flag names, or remove the redundant spellings from the help description. - class: duplicated flag definitions

    Manager response to round 2

    Repaired:

    • Standards LOW, sync-orchestration-context/SKILL.md:136 and DESIGN.md:20-22 (dispatch documentation): both say that some other commands call engine-native modules directly, with the root toggles, tidy, and scratch as examples.
      • Instances: the SKILL row and DESIGN.md Selection Contract.
    • Standards LOW, DESIGN.md:3-7 (stale omp example): the overview names the root --fast and --ultrafast toggles.
    • Standards LOW, flags.md:3-5 (raw argument boundary): the convention paragraph says to put a kit-wide flag before plan, agent-docs, or skill; ./docks-kit plan --version printed the plan usage and exited 1.
    • Standards LOW, CHANGELOG.md:23-27 (launch forwarding): launch reads positional words as message text and still parses its options, such as --continue.
    • Standards LOW, completion regression: rootFlags.test.ts "offers --fast and --ultrafast without negated spellings" spawns docks-kit --completions bash.
    • Spec LOW, duplicated flag definitions: root.ts builds the Effect flags, TIER_FLAGS, TIER_USAGE, TIER_CONFLICT, TIER_WITH_WIZARD, and the mode names from the FAST and ULTRAFAST names; main.ts uses TIER_USAGE.

    Rejected: none.

    Redesigned: none.

  10. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 4, delta

    Code-review: pass

    Previous findings

    • Round-3 finding on cli/src/commands/root.ts:71, cli/src/commands/root.ts:149: fixed - The bare-command summary now derives both flag spellings from the parser’s constants. The help description no longer repeats either spelling; the generated usage and flags still list both. The help golden matches the new description at cli/test/goldens/dryrun.json:25.

    Standards

    None.

    Spec

    None.

    Manager response to round 3

    Repaired:

    • Spec LOW, root.ts:71 and root.ts:149 (duplicated flag spellings): the summary line builds docks-kit --fast | --ultrafast from FAST and ULTRAFAST; the root description no longer spells the flags (the FLAGS section and the usage line show them); dryrun.json updated.
      • Instances: the summary line and the root description.

    Rejected: none.

    Redesigned: none.

  11. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Archived with landing pull request #289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions