Skip to content

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

Merged
DocksDocks merged 7 commits into
mainfrom
283-replace-the-free-model-wrapper-with-top-level-fast-tier-flags
Dec 1, 2026
Merged

DocksDocks merged 7 commits into
mainfrom
283-replace-the-free-model-wrapper-with-top-level-fast-tier-flags

Conversation

@DocksDocks

@DocksDocks DocksDocks commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

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

Pull request: #289. Checks: Full CI passed (run 46717502876, attempt 1, head 3622fc37; the first run 46714254746 ended when the macOS job got no runner in 15 minutes). Reviewed head: 3622fc37.

What changed

  • docks-kit --fast and docks-kit --ultrafast toggle tier.openai in the deployed omp config.yml, with the locks, output, and exit codes of the old nested toggles (cli/src/commands/root.ts).
  • Both flags together, also with --help or --version, and a tier flag with --wizard exit 2 before Effect runs; --fast false is refused as a flag value (cli/src/argv.ts, cli/src/argvSurface.ts).
  • docks-kit omp and its free-model launcher, overlay, and session files are removed; omp is a removed name (cli/src/commands/omp.ts, cli/src/engine-native/ompOverlay.ts, ompSession.ts, deleted).
  • The legacy state.json import is removed; kit.db keeps schema 1 (cli/src/engine-native/kitDb.ts).
  • The package smoke checks the packaged root flags (cli/scripts/package-smoke.ts).
  • Version 0.32.0, changelog, docs, skills, goldens, payload, and talk bundle updated.

Decisions and corrections

  • Root help shows docks-kit [--fast | --ultrafast] above docks-kit <subcommand> [flags]; one pair of names feeds parse, early validation, help, and messages (code review rounds 1 to 3).
  • Migration advice: omp for an interactive session, omp launch [args] for forwarded arguments; neither keeps the free-model checks (code review round 1, MEDIUM).

Delegated decisions

  • Worktree for the plan while the checkout was clean: a worktree under the agent worktree folder, because Replace the free-model wrapper with top-level fast tier flags #283 and Handle empty OMP tier sections in the fast toggles #284 ran in parallel and land one at a time. Rejected: the main checkout, because two plans shared it. Reversibility: remove the worktree. Record: none.
  • Package smoke against the public npm registry (package_smoke, effect probe): run it. Rejected: skipping it, because root AGENTS.md asks for bun run smoke:package on user-facing changes. Reversibility: read-only install in a temporary folder. Record: Verification Results entry for f65ef567.

Reviews

Plan review passed in round 3. Code review passed in round 4.
Open findings: none.

Verification

  • root (bunx vitest run rootFlags, ompFastMode, argv): exit 0, 93 passed.
  • removed (bunx vitest run removedNames, kitDb, home): exit 0, 17 passed.
  • help (./docks-kit; ./docks-kit --help): both flags shown, no docks-kit omp line.
  • dry (./docks-kit sync --dry-run): exit 0, every preview line starts with [dry-run].
  • smoke (bun run smoke:package): exit 0, packaged --fast ON and OFF, both flags exit 2 with config.yml unchanged.
  • meta (bunx vitest run cli/test/unit/skillMetadata.test.ts): 1 passed.
  • gate (bun run check): exit 0, 6391 passed, 12 skipped; both golden suites OK.

Limits and failures

  • Local checks ran on Linux x64 only; Full CI passed on Ubuntu, macOS, and Windows. The first Full CI run (46714254746) failed because its macOS job was cancelled after 15 minutes with no runner; the PR went back to draft and was marked ready again with the same head.

Kept resources

  • After Merge now: none.
  • After Leave pull request open: the worktree issue-283, the local and remote branch 283-replace-the-free-model-wrapper-with-top-level-fast-tier-flags.

After merge

Checklist

  • bun run check passes
  • Tested locally end to end (root, removed, help, dry, smoke, meta, gate)
  • Code review passed

Closes #283

- Move the tier toggle and its lock path from the omp command to a new
  root command module, and accept both flags at the root of the CLI.
- Refuse both flags together before any lock or write.
- Move the in-process lock tests to the root command and add spawned
  tests of the public CLI.

Refs #283

Verified: bunx vitest run cli/test/unit/rootFlags.test.ts cli/test/unit/ompFastMode.test.ts cli/test/unit/argv.test.ts cli/test/unit/ompCommand.test.ts; bun run check:types; bun run lint; bun run format
- Delete the omp command, the run overlay, and the session-model store.
  Move engineHome unchanged to engine-native/home.ts.
- Stop importing the legacy state.json session model; keep kit.db schema 1
  with its unused omp_session table, so older kits still open the store.
- Drop the omp passthrough boundary from argv parsing.
- Move the store and engineHome tests, delete the launcher tests, and pin
  `omp` as a removed name with a recording omp stub on PATH.
- Clamp skill source ranges that the removals shortened.

Refs #283

Verified: bunx vitest run cli/test/unit/removedNames.test.ts cli/test/unit/kitDb.test.ts cli/test/unit/home.test.ts cli/test/unit/argv.test.ts cli/test/unit/rootFlags.test.ts cli/test/unit/ompFastMode.test.ts cli/test/unit/skillMetadata.test.ts cli/test/unit/toolchain.test.ts cli/test/unit/scratch.test.ts; bun run check:types; bun run lint
- Toggle --fast on and off in a temporary home of the installed package,
  with the agent-folder variables empty, and check that both root flags
  together exit 2 with no write.

Refs #283

Verified: bun run smoke:package; bun run lint; bun run check:types
- Replace the launcher text in the README, cli/AGENTS.md, the CLI docs,
  DESIGN.md, and the omp-sync, sync-orchestration, and tidy skills with
  the root --fast and --ultrafast flags.
- Add the 0.32.0 changelog entry with the replacement for each old form.
- Bump to 0.32.0; rebuild the talk bundle, the payload, and both goldens.

Refs #283

Verified: bun run check:generated; bun run golden:dryrun; bun run golden:mutation; bunx vitest run cli/test/unit/skillMetadata.test.ts
- Refuse both root tier flags, also with --help or --version, and a root
  tier flag with --wizard, in prepareArgv before Effect runs a global action.
- Read a separate Boolean literal after a root flag as the flag's refused
  value, not as a subcommand; drop Boolean negation from both flags.
- Show the root tier usage form in the root help; scan surfaces without
  copying them.
- Correct the migration advice for `docks-kit omp [args]` (`omp launch`),
  the default config path, the flag convention, the dispatch and read-only
  notes, and the stale picker references.
- Isolate the removed-name and smoke checks from ambient settings, reuse the
  shared stubs, and cover the legacy state.json and the unseeded conflict.

Refs #283

Verified: bunx vitest run cli/test/unit/argv.test.ts cli/test/unit/rootFlags.test.ts cli/test/unit/removedNames.test.ts cli/test/unit/kitDb.test.ts cli/test/unit/ompFastMode.test.ts cli/test/unit/skillMetadata.test.ts; bun run golden:dryrun; bun run smoke:package; bun run check:types; bun run lint
- Build the tier flag list, usage line, and refusals from one pair of names.
- Say that only some commands call engine-native modules directly, drop the
  removed `omp` example, and tell readers to put kit-wide flags before
  `plan`, `agent-docs`, and `skill`.
- Say that `omp launch` reads positional words as prompt text and still
  parses its options.
- Cover the completion script: no negated tier spellings.

Refs #283

Verified: bunx vitest run cli/test/unit/argv.test.ts cli/test/unit/rootFlags.test.ts cli/test/unit/skillMetadata.test.ts; bun run golden:dryrun; bun run check:types; bun run lint
- The bare-command summary builds its tier line from the shared names.
- The root description names the root tier flags without their spellings,
  which the FLAGS section and the usage line already show.

Refs #283

Verified: bun run golden:dryrun; ./docks-kit; ./docks-kit --help
@DocksDocks DocksDocks linked an issue Dec 1, 2026 that may be closed by this pull request
@DocksDocks
DocksDocks marked this pull request as ready for review December 1, 2026 18:23
@DocksDocks
DocksDocks marked this pull request as draft December 1, 2026 18:40
@DocksDocks
DocksDocks marked this pull request as ready for review December 1, 2026 18:40
@DocksDocks
DocksDocks merged commit 820d4fa into main Dec 1, 2026
18 of 20 checks passed
@DocksDocks
DocksDocks deleted the 283-replace-the-free-model-wrapper-with-top-level-fast-tier-flags branch December 1, 2026 19:01
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.

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

1 participant