Repository navigation
Description
Goal
Let the kit toggle OpenAI tiers when OMP has a valid YAML config with an empty tier:, tier: null, or tier: ~, which OMP reads as no tier setting. Preserve every other setting as OMP reads it: when a rewrite would change another setting, refuse with no write. Continue to reject actual incompatible scalars or sequences.
Yolo: the user delegated every decision except the merge to the agent.
Mode: plan-and-implement
Research
Repository facts
- At d3731bc,
toggleOpenAiTierincli/src/engine-native/ompFastMode.tsreads the YAML node withdoc.get("tier", true)and throwsomp config.yml key 'tier' must be a mappingwhen that node is not a map. Fortier:,tier: null, andtier: ~, YAML 2.9.1 returns aScalarnode whosevalueisnull, so the guard rejects a config that OMP 19.2.1 reads astier.openai: none.tier: {}and an absenttieralready succeed. toggleDeployedOpenAiTier(same file) is the only writer.cli/src/commands/omp.ts(toggleTierUnderLocks) checks that config.yml exists, takes the home sync lock and the agent-folder lock, then calls it. The atomic 0600 write isreplaceFileincli/src/engine-native/atomicWrite.ts. The fix changes neither the locks nor the write.- Tests:
cli/test/unit/ompFastMode.test.tscovers the pure toggle, the symlinked config, the locks, andomp --ultrafastthrough an in-processCommand.runWith(ompCommand). No test starts the real CLI for a toggle.cli/test/lib/cliEntry.tsgives the spawned entry (a bundle ofcli/src/main.ts), andcli/test/unit/commandsReporting.test.tsshows the pattern:spawnSync(BUN_RUNTIME, [cliEntry(), ...args], { env: childEnv({ HOME, USERPROFILE, ... }) }). - Comments: an experiment in the plan scratch directory (
bunscript overparseDocument) showed that the null scalar holds a trailing comment (tier: null # keep megivescomment: " keep me").doc.set("tier", map)afterdoc.createNode({})keeps the key and its leading comment; copyingcommentandcommentBeforefrom the scalar to the new map keeps the value comment (it prints inside the new block). A quoted'null'is a string scalar, not a null, and stays rejected. doc.setIn(["tier", "openai"], …)throws on a scalar intermediate (dist/nodes/Collection.jssetIn), so the scalar must be replaced before the set.- OMP's reader differs from the kit's YAML writer: OMP reads
config.ymlwith Bun's YAML parser, while the kit edits it with YAML 2.9.1 and writes the whole document withdoc.toString()(also at the base, for every toggle of an existingtiermapping). Experiments in the plan scratch directory found these disagreements:anchor.ts(replacing an anchored null makestoStringthrowUnresolved alias),alias-binding.tsandanchored-refusal.ts(Bun and YAML 2.9.1 bind a repeated anchor name differently:Bun.YAML.parsereadastGrep.enabledasnull, YAML 2.9.1 bound*ato the enclosing map), a verbatim-tagged null (Bun.YAML.parsereadtier: !<tag:yaml.org,2002:null> nullas the string"null",!!nullasnull), andverbatim-base.ts(on the based3731bc9, togglingtier: {}besidelabel: !<tag:yaml.org,2002:int> 123printedlabel: !!int 123, and Bun then read the label as the number123instead of the string"123"). Bun also readstier: *a(withunset: &a null) and an emptytier: !customasnull, where YAML 2.9.1 holds an alias node or a string scalar. OMP also migrates a legacyserviceTierkey after it parses the file (OMP 19.2.1config/settings.ts): only whentierhas noopenaikey, the valuespriority,openai-only,auto,default,flex, andscalesettier.openai(priorityalso setstier.anthropicandtier.google,claude-onlysets onlytier.anthropic), and other values are dropped. So the rawtier.openaiis not the effective OpenAI tier while such a value is active. The prototypeomp-view-guard-3.tsclassifiestierbyBun.YAML.parse, replaces the writer node when Bun readstieras null, re-reads the result withBun.YAML.parse, and compares it with the expected reading by value (Object.isfor scalars, so.inf,NaN, and-0compare exactly; a map of visited object pairs ends the walk at a cyclic alias, which Bun's reader supports). OMP reads some maps by key order: the retry fallback chains take the first matching key (OMP 19.2.1session/retry-fallback-chains.ts), so mapping keys must compare in order. The prototype kept only the latest partner of each visited object, which overflows the stack when a two-node cycle meets a one-node cycle with the same values; the comparison must record every visited pair. Bun keeps alias identity (one object for an anchor and its aliases), and OMP's settings migration changes some objects in place (OMP 19.2.1config/settings.ts: the legacysearch.enabledmigration writes into the existinggrepobject), so a rewrite that splits or joins shared objects can change a setting that the values alone do not show. The comparison therefore pairs each object of the old reading with exactly one object of the new reading in both directions; a rewrite that turns a two-node cycle into a one-node cycle, or that rebinds an alias so that two settings stop sharing one object, is refused. The round-9 cases (round9-cases.ts, outputround9-cases.out, on the Step 2 code): an anchor name that the rewrite moves to an earlier fallback-chain key is refused, the two-node versus one-node cycle compares equal and toggles, andserviceTier: &old prioritybesidetier: { advisor: *old }is refused as a legacy tier. Its outputomp-view-guard-3.out: toggledtier:,tier: null,tier: ~,tier: !!null,tier: !custom,tier: *a, and an unused anchored null; refused the verbatim-tagged null,tier: 5, and a list as not a mapping; refusedserviceTier: openai-onlybesidetier: null; toggledserviceTier: noneandserviceTier: claude-onlybesidetier: null,serviceTier: prioritybeside an explicittier.openai, andtier: nullbeside a cyclicmetadata: &m { self: *m }; and refused the anchored null with an alias (not serializable), both verbatim-tagged labels, and the repeated-anchor case with.inf(rebindingwarnfromnullto infinity) as rewrites that change other settings. - Spawned runs:
childEnvincli/test/lib/goldenResources.tsinherits each variable that it does not override, andcli/src/engine-native/ompPaths.tsresolves the agent folder fromPI_CODING_AGENT_DIR,OMP_PROFILE,PI_PROFILE, andPI_CONFIG_DIR. The spawned test sets each of them to an empty value, so the child resolves<temporary home>/.omp/agent, which the in-process tests also assume (fastHomestubs the same four keys). package.jsonis 0.31.3. RootAGENTS.mdasks for a version bump on a user-visible behavior change and a payload regeneration (bun cli/scripts/generate-sot-payload.ts) after apackage.jsonchange;bun run check:generatedverifies it. ThetalkbundleSoT/.omp/plugin/extensions/talk.jsembeds the package version (cli/talk/extension.ts), andcheck:generatedalso runsbun cli/scripts/build-talk.ts --check, so the bump needsbun cli/scripts/build-talk.tsbefore the payload regeneration. RootAGENTS.mdalso asks to verify user-facing changes with./docks-kit sync --dry-runandbun run smoke:package.CHANGELOG.mdentries start## <date> - docks-kit <version>: <summary>.- Replace the free-model wrapper with top-level fast tier flags #283 moves the toggles to root flags
docks-kit --fastanddocks-kit --ultrafast. This plan keeps the currentdocks-kit omp --fastentry point. When Replace the free-model wrapper with top-level fast tier flags #283 lands first, this branch merges the default branch, moves the spawned test to the root flag, and takes the next patch version over the merged version.
Tool facts
- Bun 1.4.5:
bun --versionon 2026-12-01, and theSoT/toolchain.jsonpin. - Node.js v26.13.0:
node --versionon 2026-12-01.bunx viteststarts Vitest through its#!/usr/bin/env nodeshebang, so the focused rows and the gate run Vitest on this Node.js;vitest --versionprintedvitest/5.1.2 linux-x64 node-v26.13.0. - YAML 2.9.1 and Vitest 5.1.2: exact pins in
package.json. - OMP:
SoT/toolchain.jsonverifies 19.2.1;omp --versionprintedomp/19.4.0on 2026-12-01. The rebuilttalkbundle carries the bumped version into the extension factory's compatibility check (cli/talk/extension.ts), so Acceptancetalkloads the linked plugin in an isolated omp withbun .agents/skills/verify/scripts/omp-smoke.ts(verify skill V6, load mode). The smoke spawns a baredocks-kitfromPATHforscratch newandscratch remove(.agents/skills/verify/SKILL.mdprerequisites); on this host that is the global Bun install of the published package (command -v docks-kitnames the Bun global bin folder;docks-kit --versionprinted0.31.3on 2026-12-01). The smoke links the checkout'sSoT/.omp/plugin, so the rebuilt bundle is the one it loads. - Host tools for the Linux acceptance rows, versions read on 2026-12-01: GNU Bash 5.3.0 and uutils coreutils 0.10.0
dirnameanduname(./docks-kitis a Bash script that calls both),/bin/sh(dash), GNU tar 1.35 with gzip 1.14 (package-smoke.tslists the gzipped tarball), GnuPG 2.4.8 withgpgconfandgpg-connect-agent2.4.8, Git 2.53.0, util-linuxscript2.41.3, andps0.2.0.bun run checkalso runs the pinned@effect/tsgo0.74.1 (effect-tsgo) andoxlint1.95.0 frompackage.json.test:unitincludes thereview-benchmarkproject on Linux; rootAGENTS.md(Testing) states that it needsgit,gpg, GNU tar,script, and full history withorigin/main. This checkout is not shallow (git rev-parse --is-shallow-repositoryprintedfalse). - Effect 4.1.7 (
node_modules/effect/package.json): its shippedAGENTS.mdasks forSchema.TaggedErrorerrors in the error channel, an error with a taggedreasonunion for one failure with several causes (ai-docs/src/01_effect/04_errors/20_reason-errors.ts),Effect.fnandEffect.fnUntracedfor reusable functions,Context.Servicewith a staticlayerfor dependencies, and thePredicatemodule instead of localisRecordguards.Predicate.isObjectis a non-null, non-array object check (src/Predicate.ts). TheFileSystemservice (exists,readFileString) comes fromBunServices.layer, whichmain.tsalready provides. The 36 files ofcli/src/engine-native/import noeffectmodule; plan Move the engine-native layer to Effect #290 moves that layer.syncDispatch.ts withHomeAndFolderLockstakes an async body and has one caller, the root tier toggle (cli/src/commands/root.tsafter Replace the free-model wrapper with top-level fast tier flags #283).
Decisions
- Question: how the toggle keeps every other setting as OMP reads it, given that the kit's writer and OMP's reader disagree on anchors and tags.
- Options: (a) classify
tierand check the result with OMP's own parser (Bun.YAML.parse): refuse with exit 2 and no write when the rewrite changes any setting other thantier.openaior cannot be serialized; (b) refuse each known disagreement by its YAML form (anchored null, tagged null) and keep the whole-document write; (c) edit only the text span oftierand leave the other bytes; (d) rewrite aliases or move the anchor. - Evidence:
omp-view-guard-3.ts(above) covers every reported form with (a), with a lossless value comparison (aJSON.stringifycomparison maps.infandNaNtonulland missed the.infrebinding); (b) leaves the verbatim-tagged label ofverbatim-base.tschanged, and its anchor display needed escape rules that two review rounds found incomplete; (c) needs a hand-written YAML block editor for flow and block mappings, indentation, and comments; (d) changes alias values (rounds 1 to 3 of plan review). - Failure modes: (a) a config with a form that the two parsers read differently cannot be toggled until the user edits
tier.openaiby hand; the refusal names that recovery. (b) silent changes to other settings stay. (c) new editing defects in a parser of its own. (d) silent value changes. - Reversibility: (a) writes nothing on a refusal; the check uses the parser that already runs the CLI. (b), (c), and (d) can write a changed config.
- Durability: (a) fixes the class for every toggle, not only the null forms: the base whole-document write is checked too. It replaces the anchor and tag special cases and their escaped anchor display. The comparison pairs objects one to one, so a cyclic alias that the rewrite keeps does not block a toggle, and a rewrite that changes which settings share an object is refused.
- Pre-mortem: a user reports a refusal on a config that they never edited by hand. Guard: the message names the cause and the recovery without an anchor name, and
docks-kit syncnever writes the forms that trigger it (the SoT uses no anchors, tags, orserviceTier). - Choice: (a).
toggleOpenAiTier(configText, onTier, readYaml)takes the reader as a parameter, andtoggleDeployedOpenAiTierpassesBun.YAML.parse, the reader of the Bun runtime that runs the CLI. The comparison of OMP's readings is by value, key order, and object sharing. Vitest runs on Node.js, so the pure tests pass YAML 2.9.1parse, every Node.js test that callstoggleDeployedOpenAiTier(the symlink test and the in-process command tests) stubs theBunglobal withvi.stubGlobal("Bun", { YAML: { parse } })(YAML 2.9.1 again) and restores it after each test, and only the spawned tests run the real Bun reader; so each disagreement case is a spawned test. The previous tier comes from OMP's reading. When OMP readstierasnull, the writer node (a scalar of any tag or anchor, or an alias) becomes a new map that keeps a scalar's comments; atierthat OMP reads as a string, a number, or a list keeps the mapping error. A rootserviceTierthat sets the effective OpenAI tier (one of OMP's legacy values above whiletierhas noopenaikey) refuses withomp config.yml sets the OpenAI tier through the legacy key 'serviceTier'; replace it with the tier values that omp derives from it (for each provider it sets), replace each alias of serviceTier with its value, then retry, and the file stays as it is; an ignored legacy value or an explicittier.openaigoes through the rewrite check, which keepsserviceTierand every other provider tier as OMP reads them. The refusal of a changed or unserializable rewrite readsomp config.yml cannot be rewritten without changing other settings that omp reads (a YAML anchor, alias, or tag that the parsers read differently); first replace each alias of an anchor on tier with its value, then set tier.openai to <next> by hand. Rejected: (b), (c), and (d) for the reasons above; deriving the effective tier from OMP's legacy migration rules, because it copies OMP internals that can change in any release.
- Options: (a) classify
- Choice: prove the CLI with one spawned run of the bundled entry in a temporary home, in
cli/test/unit/ompFastMode.test.ts. Rejected: a new flow in.agents/skills/verify/SKILL.md, because a spawn test already starts the real surface, runs in every gate, and Replace the free-model wrapper with top-level fast tier flags #283 changes this entry point next. - Choice: a patch bump, the next patch version over the version of the landing base (0.31.4 over the current 0.31.3), used the same in
package.json, the changelog entry, and the payload. Reason: the change fixes a refusal and adds no surface. Rejected: 0.32.0, because no new flag or command is added; a fixed 0.31.4, because Replace the free-model wrapper with top-level fast tier flags #283 can bump the base first. - Question: how the toggle reports its refusals, given the user request to follow Effect practice. Choice: the Step 3 design, with one
TierToggleErrorwhose taggedreasonnames each refusal, because one failure with several causes is the shipped reason-error pattern and the command exits 2 for every reason. A read or write failure is not a refusal: it exits 1, where the current catch-all exits 2. The locks become a scoped Effect, so the toggle runs inside them as an Effect with noEffect.run*in library code. Rejected: one error class per refusal, because each would need its own handler with the same exit code; a plain function that returns aResultinside the async lock body, because the errors would stay outside the Effect channel; moving all ofengine-nativenow, because sync, toolchain, tidy, scratch, and the kit store are outside this goal (plan Move the engine-native layer to Effect #290 holds them). Reversibility: one revertable commit; output and exit codes of the refusals stay the same.
Request corrections
- Asked: acceptance
bun run test:unit:portablefor the CLI proof. Did: a focusedbunx vitest run cli/test/unit/ompFastMode.test.tsrow for the behavior, and the full gate row for every unit test. Reason: the full unit project adds no proof for this path and runs insidebun run check. - Asked: toggle the tiers when
config.ymlhas an emptytier:ortier: null. Did: toggle everytierthat OMP reads as null, and refuse, with no write, a config whose legacyserviceTierkey sets the effective OpenAI tier and any toggle whose rewrite would change another setting that OMP reads, also for an existingtiermapping. Reason: Research "OMP's reader differs from the kit's YAML writer": the whole-document write can change anchors, aliases, and tags that OMP's Bun parser reads differently, and OMP migrates an activeserviceTierafter it parses the file. - Asked (after plan round 9): "shouldnt we map the errors so its easier?", then "cant we make everything effect? following its best practices"; the user chose the toggle path now and the rest of
engine-nativelater. Did: Step 3 moves the toggle path to Effect typed errors, services, and scoped locks; plan Move the engine-native layer to Effect #290 holds the rest ofengine-native. Reason: the user's choice in this session.
Engineering standards
- Step 1 applies
fix-workflow(regression test first, then the fix),code-clarity(error text and comments), andcommit-discipline(one commit with aVerified:trailer). - Step 3 applies
effect-ts(installed Effect 4.1.7 names only,effect-tsgodiagnostics incheck:types) andtype-safety-discipline(tagged reason union, no local record guard).
Steps
| # | Id | Task | Files | Depends | Effect | Status | Done when |
|---|---|---|---|---|---|---|---|
| 1 | null_tier | Write the regression tests first: pure toggles of tier:, tier: null, and tier: ~ (with a comment on the value) on and off; an anchored null tier refused; tier: 5, tier: 'null', a sequence, and tagged nulls refused; the refusals also through the omp command with exit 2 and an unchanged file; and one spawned docks-kit omp --fast run in a temporary home on tier: null, with the four agent-folder variables set empty. Then replace only an untagged, anchor-free null tier scalar with a map that keeps its comments, before the existing setIn. Bump to the next patch version over the landing base, add the changelog entry, rebuild the talk bundle, regenerate the payload, regenerate the mutation golden with bun cli/test/golden-mutation.ts --update-goldens, and run bun run format. |
cli/src/engine-native/ompFastMode.ts, cli/test/unit/ompFastMode.test.ts, CHANGELOG.md, package.json, SoT/.omp/plugin/extensions/talk.js, cli/src/generated, cli/test/goldens/mutation.json |
- | local | done | The new tests fail before the fix and pass after it; untagged, anchor-free null tiers toggle on and off with unrelated keys and comments kept; an anchored or tagged null, a non-null scalar, and a sequence exit with their error and an unchanged file; the mutation golden holds the new bundle and manifest hashes. |
| 2 | omp_view_guard | Repair for code-review round 2 and plan rounds 6 and 7: write the spec tests first, then take the reader as a parameter of toggleOpenAiTier, classify tier and derive the previous tier by OMP's reading, replace the writer node when OMP reads tier as null, refuse a root serviceTier that sets the effective OpenAI tier, re-read the rewrite and compare it losslessly with the expected reading (mapping keys in order, each object paired with exactly one object of the other reading in both directions), and refuse a changed or unserializable rewrite with the recovery message; drop the anchor and tag special cases and the anchor display. Stub the Bun global in every Node.js test that calls toggleDeployedOpenAiTier. Spawned cases (real Bun reader): tier: null toggles; tier: !!null, tier: !custom, and tier: *a toggle; the anchored null with an alias, the verbatim-tagged null tier, the verbatim-tagged label beside tier: null and beside tier: {}, the repeated-anchor case with .inf, and serviceTier: openai-only beside tier: null each exit 2 with their message and an unchanged file; serviceTier: none beside tier: null, serviceTier: priority beside an explicit tier.openai, and tier: null beside a cyclic alias toggle with serviceTier and the other keys kept; serviceTier: &old priority beside tier: { advisor: *old } and an anchor name that the rewrite moves to an earlier fallback-chain key exit 2; a rewrite that turns a two-node cycle into a one-node cycle and a rewrite that splits the object shared by grep and glob beside search: { enabled: false } exit 2. The legacy refusal also tells users to replace each alias of serviceTier with its value. Update the changelog entry, then rerun the generated, golden, and gate checks. |
cli/src/engine-native/ompFastMode.ts, cli/test/unit/ompFastMode.test.ts, CHANGELOG.md |
1 | local | done | The spawned and pure cases pass and each new spawned case whose outcome or message Step 2 changes fails on the step-1 code, and the verbatim-tagged null tier (refused as not a mapping by both steps) stays a regression guard; no test or code path names an anchor or a tag rule; the changelog describes the reader check and the refusal of an active legacy serviceTier; Verification Results record the focused and gate results for the repaired head. |
| 3 | effect_toggle | User request after plan round 9: move the toggle path to Effect 4. After #283 lands, merge origin/main into the branch and move the Step 1 and 2 behavior onto the root docks-kit --fast and --ultrafast handler in cli/src/commands/root.ts (the nested omp command is gone). Write the spec tests first. In ompFastMode.ts: a TierToggleError Schema.TaggedError whose reason is a union of Schema.TaggedError reasons (ConfigMissing, InvalidConfigYaml, ConfigRootNotMapping, TierNotMapping, LegacyServiceTier, RewriteChangesSettings), each with its current message text; an OmpYamlReader Context.Service whose read returns an Effect that fails with a typed parse failure instead of throwing, and whose static layer reads with Bun.YAML.parse; main.ts provides OmpYamlReader.layer at the entry beside BunServices.layer, and the tests provide a layer over YAML 2.9.1 parse; toggleOpenAiTier as Effect.fnUntraced over the reader, where a failure to read the original text is InvalidConfigYaml and a failure of the YAML edit, the serialization, or the reread of the rewrite is RewriteChangesSettings (all through Effect.try or the reader's typed failure, never a defect); requireDeployedConfig and toggleDeployedOpenAiTier as Effect.fn over FileSystem, with the atomic replaceFile write wrapped in Effect.try to a ConfigWriteError that prints the write error and exits 1; cli/tsconfig.json adds effect/FileSystem#FileSystem to allowedUnstableApis (the diagnostic stays on); Predicate.isObject instead of the local guard. In syncDispatch.ts: homeAndFolderLocks, a scoped Effect that replaces withHomeAndFolderLocks. It reads the wait bound once and fails with LockWaitInvalid (the one existing diagnostic line, exit 2) for an invalid DOCKS_KIT_SYNC_LOCK_WAIT_MS. It takes the home lock, then each folder lock, each with its own Effect.acquireRelease (acquisition uninterruptible by default), so each acquired lock is released when a later lock is held, the run fails, or Ctrl+C interrupts it. kitLock.ts gains a synchronous one-try export tryAcquireKitLock(path, { privateDirectory }): it returns the lock, closes its connection and returns undefined only for contention (tryBegin reports SQLITE_BUSY), and on any other failure (for example a lock path that is a folder) closes the connection it opened and throws. acquireKitLock and tryAcquireKitLock share one extracted connection setup (folder mode, open, busy_timeout = 0) and tryBegin. The Effect acquire wraps the try, and the folder resolution and creation before it (folderLockPaths with realpathSync.native, and mkdirSync), in Effect.try to a LockAcquireError (path and cause), in the same lock order, which root.ts prints as the error line and exits 1, inside the same uninterruptible acquire. The Effect acquire polls that try until the wait bound ends, with Clock for the deadline and Effect.interruptible(Effect.sleep(…)) between tries, so Ctrl+C can interrupt only the sleep, when no lock of this try is held, and a successful try and its finalizer cannot be separated. A held lock fails with KitLockHeld after the existing held line (exit 1). withKitLocks for sync keeps its behavior and shares the folder creation and the held line with it. In root.ts: Effect.scoped over the locks and the toggle, Effect.catchTags for TierToggleError (exit 2 with reason.message), LockWaitInvalid (exit 2), KitLockHeld (exit 1), LockAcquireError (exit 1), and ConfigWriteError (exit 1), and no try or Effect.run*. Tests provide the reader layer over YAML 2.9.1 parse instead of stubbing the Bun global and assert the reason tag; one test per reason checks its message. Bump to the next patch over the landing base, update the changelog entry, rebuild the talk bundle, regenerate the payload and the mutation golden, and run bun run format. cli/test/unit/folderLockCreate.test.ts moves its folder-creation check to homeAndFolderLocks. Because the shared connection setup also serves docks-kit tidy --apply, cli/test/unit/tidy.test.ts gains one spawned run of the public docks-kit tidy --apply in a temporary home whose tidy lock another connection holds: it prints another docks-kit tidy run holds <path>, exits 0, and changes nothing. |
cli/src/engine-native/ompFastMode.ts, cli/src/engine-native/syncDispatch.ts, cli/src/engine-native/kitLock.ts, cli/src/commands/root.ts, cli/src/main.ts, cli/tsconfig.json, cli/test/unit/ompFastMode.test.ts, cli/test/unit/rootFlags.test.ts, cli/test/unit/folderLockCreate.test.ts, cli/test/unit/tidy.test.ts, cli/src/engine-native/errorText.ts, cli/src/engine-native/tidy.ts, cli/src/engine-native/tidyReport.ts, cli/docs/flags.md, .agents/skills/omp-sync-context/SKILL.md, .agents/skills/sync-orchestration-context/SKILL.md, .agents/skills/tidy-context/SKILL.md, CHANGELOG.md, package.json, SoT/.omp/plugin/extensions/talk.js, cli/src/generated, cli/test/goldens/mutation.json |
2 | local | done | The Step 1 and 2 cases pass through the root flags with the same output and exit codes; a write failure exits 1 with its write error and leaves config.yml unchanged, not 2 (fixture, skipped on Windows and for root as goldenSnapshot.test.ts does, because Windows ignores a read-only folder and root ignores the mode: the agent folder and both lock folders stay writable, and config.yml is a symlink to a file in a mode-0500 folder, so replaceFile fails at its temporary file); an invalid DOCKS_KIT_SYNC_LOCK_WAIT_MS still prints its one line and exits 2; a held lock still exits 1 with the held line and releases the home lock; no try, instanceof Error, local record guard, or Bun global stub remains on the toggle path; effect-tsgo reports no Effect diagnostic; Verification Results record the focused and gate results for the repaired head. |
Acceptance
| ID | Command | Expected |
|---|---|---|
| fast | bunx vitest run --reporter=verbose cli/test/unit/ompFastMode.test.ts |
Exit 0, and the verbose report lists as passed: the spawned docks-kit --fast runs (the root flag after #283 lands; the bundled cli/src/main.ts entry in a temporary home with the agent-folder variables empty turns tier: null, tier: !!null, tier: !custom, and tier: *a into tier.openai: priority with exit 0 and keeps the other keys; and the anchored null with an alias, the verbatim-tagged null tier, the verbatim-tagged label beside tier: null and beside tier: {}, the repeated-anchor case with .inf, and serviceTier: openai-only each exit 2 with their message and the file unchanged; and serviceTier: none, serviceTier: priority beside an explicit tier.openai, and a cyclic alias beside tier: null toggle with exit 0 and the other keys kept); the pure toggles of tier:, tier: null, and tier: ~ with their comments kept; and the command refusals of tier: 5, tier: 'null', and a sequence with exit 2 and the file unchanged. After Step 3, the report also lists one passed message test per TierToggleError reason and the exit-1 case for a write failure at the atomic replacement (writable agent and lock folders, config.yml linked to a file in a mode-0500 folder), with the write diagnostic and config.yml unchanged: passed on an unprivileged POSIX run, reported as skipped on Windows and as root. The tidy row below covers the shared lock setup. |
| gen | bun run check:generated |
Exit 0: the payload and the talk bundle hold the bumped version from package.json. |
| golden | bun run golden:mutation |
golden-mutation: OK with every case passing against the regenerated mutation.json. |
| talk | bun .agents/skills/verify/scripts/omp-smoke.ts |
Exit 0, talk tool: offered, and warnings: 0: the rebuilt bundle loads in an isolated omp. |
| dry | ./docks-kit sync --dry-run |
Exit 0, and each preview line starts with [dry-run]. |
| smoke | bun run smoke:package |
Exit 0: the packed tarball installs in a clean folder and its CLI runs. |
| tidy | bunx vitest run --reporter=verbose cli/test/unit/tidy.test.ts cli/test/unit/folderLockCreate.test.ts |
Exit 0 after Step 3; the report lists as passed the spawned docks-kit tidy --apply run under a held tidy lock (the held line, exit 0, nothing changed) and the folder-creation cases of homeAndFolderLocks. |
| ci-tools | bun cli/scripts/verify-ci-tools.ts |
Exit 0 after Step 3, with the line check:types: plain error, Effect warning, Effect error and corrected program passed: with the changed cli/tsconfig.json, the planted plain error, Effect warning, and Effect error each make check:types fail, and the clean program passes (root AGENTS.md, Testing). |
| gate | bun run check |
Exit 0: lint, types, format, generated files, unit tests, and both golden suites pass. |
Do not touch
Do not change OMP upstream validation, tier names, provider credentials, or the default path for real user profiles.
Open questions
Verification Results
Reproduced on Linux with published docks-kit 0.31.3. In a temporary HOME, set .omp/agent/config.yml to tier: null; omp config get tier.openai prints none (exit 0), while docks-kit omp --fast prints omp config.yml key 'tier' must be a mapping (exit 2) and leaves bytes unchanged. A mapping with openai: none successfully toggles priority/ultrafast/none. OMP's own config write was not verified because the cloud environment refused its native file lock.
Candidate d3af7119 on Linux x64, 2026-12-01:
- Red baseline, step null_tier:
bunx vitest run cli/test/unit/ompFastMode.test.ts: 6 failed, 24 passed (the three null forms, the null-value comment, the anchored-null refusal message, and the spawnedtier: nullrun; each failed on its assertion). fast:bunx vitest run --reporter=verbose cli/test/unit/ompFastMode.test.ts: exit 0, 30 passed; the report listsspawned docks-kit omp --fast > turns fast on for a deployed config.yml with tier: null and keeps the other keysandrefuses a null tier that carries an anchor and names the recoveryas passed.gen:bun run check:generated: exit 0;talk.js is current.golden:bun run golden:mutation:golden-mutation: OK (13 case(s)).talk:bun .agents/skills/verify/scripts/omp-smoke.ts: exit 0,skills: 34,talk tool: offered,warnings: 0(omp 19.4.0).dry:./docks-kit sync --dry-run: exit 0; every preview line starts with[dry-run], then theSync completesummary.smoke:bun run smoke:package: exit 0,clean-room consumer install passed.gate:bun run check: exit 0; 6468 unit tests passed, 12 skipped;golden-dryrun: OK (12 case(s));golden-mutation: OK (13 case(s)).
Candidate e768d132 (Step 2 omp_view_guard) on Linux x64, 2026-12-01:
- Red baseline, Step 2: the Step 2 test file on the Step 1 code
28b70a9b, spawned cases only: 12 failed, 5 passed. Failed (outcome or message changed by Step 2):tier: !!null,tier: !custom, andtier: *atoggles; the anchored null with an alias; the split shared object; the two-node to one-node cycle; both verbatim-tagged labels; the repeated anchor with.inf;serviceTier: openai-only; the aliased legacyserviceTier; the fallback-chain key order. Passed as regression guards:tier: null, the ignoredserviceTier,serviceTierbeside an explicittier.openai, the kept cyclic alias, and the verbatim-tagged nulltier. fast:bunx vitest run --reporter=verbose cli/test/unit/ompFastMode.test.ts: exit 0, 60 passed, the spawned success and refusal cases among them.gen:bun run check:generated: exit 0.golden:bun run golden:mutation: exit 0.gate:bun run check: exit 0; 6498 unit tests passed, 12 skipped;golden-dryrun: OK (12 case(s));golden-mutation: OK (13 case(s)).- Step 2 changes no file under
SoT/and no version, so thetalk,dry, andsmokeresults ofd3af7119still hold for it.
Merge 324c7cdc of origin/main (820d4faf, #283) into the branch: version resolved to 0.32.1; the toggle tests moved to the root --fast flag; bunx vitest run cli/test/unit/ompFastMode.test.ts cli/test/unit/rootFlags.test.ts 64 passed; check:generated, golden:mutation, and check:types exit 0.
Candidate bf62e2bf (Step 3 effect_toggle) on Linux x64, 2026-12-01:
- Red baseline, Step 3: the Step 3 test files (
ompFastMode.test.ts,folderLockCreate.test.ts,tidy.test.ts) on324c7cdc: 48 failed, 68 passed. The failures are the missing Step 3 API (homeAndFolderLocks is not a function,readYaml is not a function, noOmpYamlReader), so the write-failure case fails before its exit-code assertion; on324c7cdcthat failure exits 2 throughbail(cli/src/commands/root.ts, default code 2) [INFERENCE from the code, not run]. fast(withrootFlags.test.ts): exit 0, 69 passed, with one passed message test perTierToggleErrorreason (ConfigMissingthrough the command,InvalidConfigYamlfrom each parser,ConfigRootNotMapping,TierNotMapping,LegacyServiceTier,RewriteChangesSettings), and the write failure at the atomic replacement: exit 1,EACCES,config.ymlunchanged (unprivileged POSIX run).tidy:bunx vitest run --reporter=verbose cli/test/unit/tidy.test.ts cli/test/unit/folderLockCreate.test.ts: exit 0, 55 passed, with the spawneddocks-kit tidy --applyunder a held tidy lock (held line, exit 0, no change), the folder creation, the held folder lock that releases the home lock, the interrupt during the wait that releases the home lock, and the invalid wait bound.ci-tools:bun cli/scripts/verify-ci-tools.ts: exit 0,check:types: plain error, Effect warning, Effect error and corrected program passed.gen: exit 0.golden:golden-mutation: OK (13 case(s)).talk:bun .agents/skills/verify/scripts/omp-smoke.ts: exit 0,talk tool: offered,warnings: 0.dry: exit 0.smoke:bun run smoke:package: exit 0.gate:bun run check: exit 0; 6439 unit tests passed, 12 skipped;golden-dryrun: OK (12 case(s));golden-mutation: OK (13 case(s)).- Paths outside the Steps Files cells:
cli/docs/flags.md(the root flag exit codes),.agents/skills/omp-sync-context/SKILL.mdand.agents/skills/sync-orchestration-context/SKILL.md(they namedwithHomeAndFolderLocks);skillMetadata.test.tspasses.
Candidate 143700c2 (code-review round 3 repairs) on Linux x64, 2026-12-01:
fast(withrootFlags.test.ts): exit 0, 75 passed, with the new CLI-boundary cases (invalid wait: exit 2 and no lock file; a folder at the home lock path: exit 1 withcannot take the lock <path>;config.ymlas a folder: exit 1), theanother valuedisplay, the typedConfigMissingreason, the aliased-null comment, and the spawned unresolved-alias refusal.tidy: exit 0, 55 passed, with the interrupt test that first proves the run holds the home lock.ci-tools: exit 0.gen: exit 0.golden:golden-mutation: OK (13 case(s)).dry: exit 0.smoke: exit 0.gate: the firstbun run checkfailed onlyskillMetadata.test.ts(thetidy-contextrange named line 1279 oftidy.ts, now 1276 lines; clamped). The second failed only the two timing cases ofompTriggerBackstop.test.ts(regex scaling over the 100 ms ceiling while the machine was loaded); this change touches no trigger rule, and the file alone passed 2 of 2. The thirdbun run check: exit 0; 6445 unit tests passed, 12 skipped; both golden suites OK.
Candidate 24e1320f (code-review rounds 4 to 7 repairs) on Linux x64, 2026-12-01:
fast(withrootFlags.test.ts): exit 0, 80 passed, with theConfigChangedcases (another writer during the check, a same-length edit and a byte order mark at a pinned time), theConfigMissingcase when the file goes away during the check, the escape of terminal controls, and SQLite's cause on a lock failure.tidy(withfolderLockCreate.test.ts): exit 0, 55 passed; the interrupt test requires the held home lock and an interrupt within 2 seconds.ci-tools: exit 0,check:types: plain error, Effect warning, Effect error and corrected program passed(witheffect/PlatformError#PlatformErroradded toallowedUnstableApis).gen: exit 0.golden:golden-mutation: OK (13 case(s)).dry: exit 0.smoke: exit 0,[package-smoke] clean-room consumer install passed.talk: exit 0,talk tool: offered,warnings: 0.gate:bun run check: exit 0; 6450 unit tests passed, 12 skipped;golden-dryrun: OK (12 case(s));golden-mutation: OK (13 case(s)).
Activity
DocksDocks commentedon Dec 1, 2026
Delegation grant: yolo: "check all open issues and solve them please."
DocksDocks commentedon Dec 1, 2026
Plan review round 1
Plan-review: repair
null_tier- [Inference] Withtier: &unset nullfollowed byfallbackChains: *unset, the toggle should succeed and leavefallbackChainsnull. The proposed replacement copies comments but drops the anchor: YAML 2.9.1'sYAMLMap.addreplaces the node, andAlias.toStringthen rejects the unresolved alias whenompFastMode.tsserializes the document. Copying the anchor to the map instead would changefallbackChainsfrom null to a mapping. - Preserve the null values of aliases bound to the old scalar before replacing it, and cover that case in the preservation regression. - class: node replacement breaks references from unrelated YAMLnull_tier, and Acceptancefastande2e- [Inference] A runner withPI_CODING_AGENT_DIRpointing to a real config can toggle that config instead of the fixture.cli/test/lib/goldenResources.ts:342-350inherits variables not explicitly overridden,cli/src/engine-native/ompPaths.ts:54-89can resolve the agent folder outside the temporary home, andcli/src/commands/omp.ts:250-270,314-322writes to that resolved folder. The fixture assertion would fail only after the real config changed. - Explicitly pin the spawned command to the fixture agent directory and neutralize inherited OMP profile and config overrides. - class: mutating subprocess inherits a real profile targetgate-AGENTS.md:71requires both./docks-kit sync --dry-runandbun run smoke:packagefor user-facing changes.package.json:29-48shows thatbun run checkruns neither, so every listed row can pass without those required checks. - Add both required checks and their expected results to Acceptance. - class: required repository check missing from Acceptancenull_tier, and Acceptancegen- [Inference] If Replace the free-model wrapper with top-level fast tier flags #283 lands first, moving the flags is itself a user-visible change and requires a bump from the current 0.31.3 underAGENTS.md:52. Updating only the spawn test while retaining the fixed 0.31.4 target would reuse or lower the version instead of bumping it. - Keep the patch decision, but compute the patch version from the updated landing base and use it consistently in the manifest, changelog, payload, and Acceptance. - class: fixed version target ignores a planned concurrent bumpfast,e2e, andgate- The plan records Bun and Vitest versions but not Node. Bun’sbunxdocs say it respects the shebang, and Vitest 5.1.2 uses Node with a declared engine range.package.json:38,46-48also invokes Vitest from the full gate. A Bun-only environment matching the recorded tool facts cannot run the focused checks as written. - Record the supported Node version used for Acceptance and its source. - class: required test runtime missing from tool factsDocksDocks commentedon Dec 1, 2026
Plan review round 2
Plan-review: repair
null_tier, Acceptancefast- The round 1 alias finding remains open. [Inference] The new rewrite handles the single-anchor example but matchesAlias.sourceby name. YAML 1.2.2 and YAML 2.9.1Alias.resolvebind an alias to the most recent preceding anchor with that name. Withtier: &shared null, thenautoResume: &shared false, thengit: { enabled: *shared }, the toggle should leavegit.enabledfalse. The planned rewrite changes it to null. It also rewrites aliases bound to earlier same-name anchors beforetier. - Replace only aliases that resolve to the exact tier scalar before changing it, and make the existing anchor regression distinguish those aliases from aliases bound to another node. - class: alias replacement matches anchor names instead of node bindingsnull_tier, Acceptancefast- [Inference] Withtier: &unset nullandautoResume: *unset # keep this, the planned plain null replacement preserves the value but drops the unrelated comment. YAML 2.9.1composeAliasstores the comment on the alias itself, not on the tier scalar whose comments the plan copies. - Preserve the replaced alias node’s comments too, and assert their survival in the existing anchor regression. - class: alias replacement drops unrelated commentsnull_tierTask and Files, Acceptancegen,smoke, andgate- [Inference] Bumpingpackage.jsonand regenerating only the payload leavesSoT/.omp/plugin/extensions/talk.jsstale.cli/talk/extension.ts:18,80embeds the package version in that bundle, andcli/scripts/generate-sot-payload.ts:85-95embeds the checked-in bundle as-is.cli/scripts/build-talk.ts:565-586compares it to a fresh build, socheck:generatedfails, which also fails the gate and package smoke’sprepack(package.json:33-35,48). - AddSoT/.omp/plugin/extensions/talk.jsto Files and rebuild it after the version bump, before regenerating the payload. - class: version bump leaves a generated consumer stalee2e- [Inference] On the unchanged tree,cli/test/unit/ompFastMode.test.tshas no test namedspawned. Vitest 5.1.2 marks nonmatches skipped and does not fail an all-skipped module. The command can exit 0 without starting the CLI it claims to prove. - Remove the redundant filtered row and usefastas the end-to-end proof, or require a reported pass for the exact spawned case rather than exit 0 alone. - class: acceptance command passes when its target test is skippeddry,smoke, andgate- The recorded environment omits required host tools.docks-kit:1-7needs Bash, andcli/scripts/package-smoke.ts:257-263runstar. On Linux,vitest.config.ts:12-31andAGENTS.md:77also require the review-benchmark tools and full history withorigin/main. A runner with the recorded Bun and Node versions but no GnuPG failskeys.test.mjs:25-27; a shallow clone failsprepare-pin.test.mjs:373-385regardless of the toggle fix. - Record the host tools and version sources required for the Linux acceptance commands, and state the full-history andorigin/mainprerequisites. - class: required acceptance tools and checkout prerequisites missing from researchManager response to round 1
Repaired:
null_tier(anchored null): Research "Anchors" fact, the Decisions choice and its rejected option (c), the Step 1 Task and Done when, and Acceptancefast. Reproduced first: a plain replacement madedoc.toString()throwUnresolved alias (the anchor must be set before the alias): unset.fast.e2e.fastande2e.gate: Acceptance rowsdryandsmoke, and the Research fact on rootAGENTS.md.gen.gen.Rejected: none.
DocksDocks commentedon Dec 1, 2026
Plan review round 3, delta
Plan-review: repair
null_tier, Acceptancefast- [Inference] The exact-node match preservesyaml2.9.1 bindings, but it can change what OMP reads. In a config withcheckpoint: { enabled: &a true },tier: &a null, andastGrep: &a { enabled: *a }in that order,Alias.resolvefinds the enclosingastGrepmap, so the plan leaves*auntouched. OMP loads settings with Bun YAML, and Bun checks already-bound anchors before open collections. Removing the tier anchor therefore makes OMP readtrueinstead ofnull, changingastGrep.enabledfrom its defaultfalsetotrue. - Preserve bindings as OMP reads them, and extend the repeated-anchor regression to check the effective value before and after the toggle. - class: alias rewrite assumes the writer and reader bind anchors identicallynull_tierTask and Files, Acceptancegate- [Inference] The bump changes both the deployedtalk.jsbytes and the deployed plugin manifest version (cli/talk/extension.ts:18,80;cli/src/engine-native/ompKitPlugin.ts:70-81).cli/test/goldens/mutation.json:26-29records hashes for both.cli/test/lib/goldenSnapshot.ts:98-110,164-178does not normalize their versions, andcli/test/golden-mutation.ts:374-381compares those hashes. The generated-file check can pass while the required gate fails on stale snapshots. - Addcli/test/goldens/mutation.jsonto Files, refresh the affected snapshots after regenerating the payload, and run the formatting check required by the golden update workflow. - class: version bump leaves committed deployment snapshots stalenull_tierFiles, Research “The plan does not run OMP,” Acceptancegenandgate- The regeneratedtalk.jschanges the version used by the extension factory’s runtime compatibility check (cli/talk/extension.ts:408-425,1443-1458). No Acceptance row loads that factory in OMP. The mutation golden compares deployed bytes (cli/test/golden-mutation.ts:153-174), and the spawned peers callTalkTransportdirectly (cli/test/fixtures/talk/peer.ts:23-37). Neither shows that OMP offers the tool after loading the rebuilt extension. - Use the existing isolated load smoke,bun .agents/skills/verify/scripts/omp-smoke.ts, and require exit 0 andtalk tool: offered. Update the OMP tool fact accordingly. - class: changed extension has no end-to-end acceptancefast- [Inference] A passing run can omit the named spawned test from its report.vitest.config.ts:34-56sets no reporter, Vitest 5.1.2 selectsminimalwhen it detects an agent, and that reporter suppresses successful test names. Exit 0 does not provide the evidence the row requires. - Add--reporter=verboseto the existing unfiltered command and keep the requirement to see the spawned case pass. - class: acceptance reporter suppresses required evidencedry,smoke, andgate- The checkout prerequisite is now recorded, but required executables are still missing. The launcher callsdirnameanduname(docks-kit:1-20), package smoke uses GNU tar’s externalgzipfilter (cli/scripts/package-smoke.ts:257-263), and the gate usessh,ps,gpgconf, andgpg-connect-agent(.agents/skills/review-benchmark/SKILL.md:818;tests/prepare-pin.test.mjs:316;tests/keys.test.mjs:399-403,528-548, both under that skill). A runner with the recorded tools but nopsfails the restore assertion independently of the toggle. The gate also invokes the pinnedeffect-tsgoandoxlintexecutables (package.json:31,45,57,60). - Record the missing executable prerequisites and their version sources, using the manifest pins for the gate’s package tools. - class: required acceptance tools and checkout prerequisites missing from researchPrevious findings:
null_tier, Acceptancefast: resolved - The revised plan matches exact node identity rather than anchor name, and the recorded experiment keeps aliases of the earlier and later anchors.null_tier, Acceptancefast: resolved - The revised rewrite copies the alias’s comments, andfastrequires the bound alias’s comment to survive.null_tierTask and Files, Acceptancegen,smoke, andgate: resolved - The step liststalk.jsand rebuilds it before regenerating the payload.e2e: resolved - The filtered row is gone, andfastrequires a named pass. Its reporter defect is separate and listed above.dry,smoke, andgate: open - repeated above.Manager response to round 2
Repaired:
null_tier, Acceptancefast(alias match by name): redesigned to match by node binding,alias.resolve(doc) === tier. Research "Anchors" fact (experimentalias-binding.tswith a repeated anchor name before and aftertier), Decisions choice with rejected option (d), Step 1 Task (test with a repeated anchor name), Step 1 Done when (aliases of other anchors unchanged), Acceptancefast.fast.comment,commentBefore, andspaceBefore. Research "Anchors" (outputautoResume: null # keep this), Decisions, Step 1 Task (commented alias), Acceptancefast.fast.talkbundle: Researchpackage.jsonfact (talk bundle embeds the version;build-talk.tsbefore the payload), Step 1 Task and Files (SoT/.omp/plugin/extensions/talk.js), Acceptancegen.gen.e2e(filter can skip): removed thee2erow; Acceptancefastrequires the report to list the spawned test as passed.script2.41.3, and the non-shallow checkout with thereview-benchmarkprerequisites.Rejected: none.
DocksDocks commentedon Dec 1, 2026
Plan review round 4, delta
Plan-review: repair
anchor.outitself shows a single-anchor rewrite that keeps the dependent value null. [Inference] Withtier: &unused nulland no alias to it, there is no binding to disturb under Bun’s alias resolver, but Stepnull_tierstill exits 2 where the Goal promises a toggle. - Keep the conservative refusal, state the anchor-free scope in the Goal, and describe the refusal as a deliberate limit rather than a parser impossibility. - class: counterexample overgeneralized into a scope exclusionnull_tier, Acceptancefast- [Inference] Iftier: &a nullis followed byastGrep: { enabled: *a }, both suggested one-line edits leave*aunresolved. Bun rejects the alias, and OMP marks the document invalid. The planned test would lock in advice that breaks the very config that the refusal leaves intact. - Say that removing the anchor alone is safe only when nothing refers to it. Otherwise, tell users to preserve the dependent values before changingtier. Remove the one-edit promise and assert the corrected diagnostic in the existing case. - class: recovery advice leaves dependent aliases unresolvedtalk- The new smoke command needs a baredocks-kitexecutable onPATH, not just Bun, OMP, and the checkout launcher.omp-smoke.tsspawns it to create and remove scratch folders (.agents/skills/verify/scripts/omp-smoke.ts:278-284,322-328), and the verify skill lists it as a prerequisite (.agents/skills/verify/SKILL.md:21). A checkout with the recorded tools but nodocks-kitonPATHfails before OMP loads the plugin. - Specify whichdocks-kitthe smoke uses, ensure it is onPATH, and record its version source. - class: required acceptance tools and checkout prerequisites missing from researchPrevious findings:
null_tier, Acceptancefast: resolved - The toggle now refuses anchored nulls before writing, so it no longer rebinds aliases.null_tierTask and Files, Acceptancegate: resolved - The step listsmutation.json, regenerates it after the payload, runs formatting, and adds thegoldencheck.null_tierFiles, Research “The plan does not run OMP,” Acceptancegenandgate: resolved - Acceptancetalkruns the isolated OMP load and requires the tool to be offered with no warnings.fast: resolved - The unfiltered command now uses--reporter=verboseand requires a named pass for the spawned case.dry,smoke, andgate: open - repeated above for the newtalkrow; the previously listed executables are now recorded.Manager response to round 3
Repaired:
fast(alias rewrite assumes the writer and reader bind anchors alike): redesigned; see Redesigned. Research "Anchors", the new Decisions deliberation record, the new request correction, Step 1 Task and Done when, Acceptancefast.fast.mutation.jsonwithbun cli/test/golden-mutation.ts --update-goldensand runsbun run format; Step 1 Files addscli/test/goldens/mutation.json; new Acceptancegolden.talk(bun .agents/skills/verify/scripts/omp-smoke.ts, exit 0,talk tool: offered,warnings: 0); the OMP tool fact recordsomp/19.4.0and the check.fastruns--reporter=verboseand requires the named cases listed as passed.dirnameanduname(uutils coreutils 0.10.0),/bin/sh(dash), gzip 1.14,gpgconfandgpg-connect-agent2.4.8,ps0.2.0, and thepackage.jsonpins@effect/tsgo0.74.1 andoxlint1.95.0.Redesigned:
tierthat carries an anchor (node.anchor !== undefined) with exit 2, no write, andomp config.yml key 'tier' is a null value with anchor &<name>; remove the anchor or write 'tier: {}', then retry; toggle the anchor-free null forms. Rejected approaches: rewrite aliases by anchor name (round 2: a repeated name binds later aliases to another node); rewrite by YAML 2.9.1 node identity (round 3: OMP reads with Bun's YAML parser, which binds a repeated name differently); move the anchor to the new map (every alias turns into a mapping). Evidence: experimentanchored-refusal.ts(Bun.YAML.parsegaveastGrep.enabled: null; YAML 2.9.1 bound*ato the enclosing map, a cyclic value). The full deliberation record is in Research, Decisions, first entry.Rejected: none.
DocksDocks commentedon Dec 1, 2026
Plan review round 5, delta
Plan-review: pass
None.
Previous findings:
null_tier, and Acceptancefast: resolved - The diagnostic tells users to replace dependent aliases with their values before changingtier. The step requires no write on refusal, and Acceptance checks the full diagnostic.talk: resolved - Tool facts records the global docks-kit 0.31.3 executable onPATHfor scratch creation and cleanup, and distinguishes it from the checkout bundle that OMP loads.Manager response to round 4
Repaired:
omp config.yml key 'tier' is a null value with YAML anchor &<name>, which the toggle does not rewrite; if other keys use *<name>, replace each with its value first, then write 'tier: {}' and retry; no one-edit promise. Decisions Failure modes and Pre-mortem, Request corrections, Step 1 Task, Acceptancefast(full message).fast.docks-kitonPATHfor thetalksmoke: the OMP tool fact names the baredocks-kitthat the smoke spawns (the global Bun install,docks-kit --version0.31.3) and that the smoke links the checkout plugin.Rejected: none.
DocksDocks commentedon Dec 1, 2026
Self-review
Reviewed head
d3af7119againstd3731bc9, one pass per lens of the code-review panel.correctness
No findings.
replaceNullTierruns before the mapping guard, changes only a null scalar without an anchor, and leaves an alias value oftier(tier: *x), a quoted'null', a number, and a list to the existing mapping error. An empty document keepstierunset, as before. The anchored-null error reaches the existing toggle catch, which exits 2 before the write.spec-and-tests
No findings. Each new test failed on its assertion before the fix (red baseline in Verification Results). The spawned test empties the four agent-folder variables, so it cannot write outside its temporary home.
text-and-safety
No findings. The changelog names the three accepted forms, the refusals, and the recovery for an anchored null, and it names no machine path.
DocksDocks commentedon Dec 1, 2026
Code review round 1, lens correctness
Code-review: pass
Standards
tier: nullandserviceTier: openai-onlyin the same deployed file, OMP migrates the legacy setting totier.openai: priority. Inference: without a higher-priority override,--fastreportsnone -> priorityand leaves fast mode on instead of turning it off. The CLI caller accepts deployed YAML, but the shipped config, toggle fixtures, and kit docs do not use this combination. - When the nested setting is absent, derive the prior tier from OMP's legacy OpenAI mapping without rewriting the legacy key. - class: ignored legacy settingtier: !<tag:yaml.org,2002:null> nullbecomes a null node in YAML 2.9.1 but remains the string"null"in Bun 1.4.5's verbatim-tag path. Inference: with that Bun parser, the CLI overwrites a string that it should refuse. The deployed-file caller accepts custom YAML, but the shipped config, toggle fixtures, and kit docs do not use this spelling. - Confirm that OMP's parser also sees null before replacing an explicitly tagged scalar. - class: parser disagreement on null classificationtier: nulland an unrelated label such asmodelTags.astra.name: !<tag:yaml.org,2002:int> 123, YAML 2.9.1 emits the verbatim tag as!!int. Inference: Bun 1.4.5 reads the original label as the string"123"and the rewritten label as the number123, even though the toggle did not target it. The deployed-file caller accepts custom YAML, but the shipped labels, toggle fixtures, and kit docs do not use verbatim tags. - Replace the null tier in the original YAML text without reserializing unrelated nodes. - class: unrelated value changed by serializationSpec
None.
Code review round 1, lens spec-and-tests
Code-review: pass
Standards
None.
Spec
docks-kit omp --fastreported the wrong exit code or rewroteconfig.ymlbefore reporting the error. Step 1 requires the anchored null, non-null scalar, and sequence to “exit with their error and an unchanged file” (plan-284.md:59); thefastacceptance row also requires an unchanged file (plan-284.md:65). - Use the existingfastHomeandrunOmphelpers for these cases. Assert exit 2, the expected diagnostic, and byte-for-byte equality with the original file. Keep the single spawned success case. - class: refusal tested below the write boundarytier: null. The suite would pass iftier: # noteortier: ~ # notelost its comment, or if the second toggle dropped it. Step 1 requires pure toggles of all three forms “(with a comment on the value) on and off,” andfastrequires those comments to be kept (plan-284.md:59,65). - Put a value comment in each round-trip fixture and assert that it survives both toggles. - class: incomplete round-trip comment coverageCode review round 1, lens text-and-safety
Code-review: pass
Standards
Spec
None.
15 remaining items
DocksDocks commentedon Dec 1, 2026
Code review round 8, delta
Code-review: pass
Previous findings
cli/src/engine-native/ompFastMode.ts:348-350,377-383: open - The rejection explains why a check cannot prevent a later change. It does not address the finallstatchecking the old target after the live link has already changed. Repeated under Standards.cli/src/engine-native/ompFastMode.ts:377-379,cli/src/commands/root.ts:130-139: open - The recheck fixes the reportedEISDIRcase. It still exits 1 if a replaced parent directory makes revalidation fail withENOTDIR. Repeated under Standards.cli/test/unit/ompFastMode.test.ts:336-355: fixed - The fixture sets and restores the same whole-second timestamp, and the non-BOM edit preserves byte length (cli/test/unit/ompFastMode.test.ts:335-360).cli/src/engine-native/ompFastMode.ts:317,375-380: fixed - The metadata checks no longer scan bytes. The guard compares the two buffers once (cli/src/engine-native/ompFastMode.ts:308-320,375-384).Standards
config.ymlis retargeted to a different file after the finalrealPathbut before the finallstat, thatlstatstill checks the old target. Assuming the old file remains unchanged, inference: the CLI overwrites it and reports success while the active config was not toggled. - Validate the liveconfigPathagainst the captured identity at the end of the guard, without dropping the resolved-target check. Keep the documented limit for changes after the final observation. - class: stale snapshot accepted for replacementENOTDIR. The follow-up error escapes asPlatformError, so the CLI exits 1 even though the deployed config is no longer reachable andcli/docs/flags.md:111-117promises exit 2 for a missing or concurrently changed config. - ClassifyENOTDIRduring revalidation of a known config as a refusal, while retaining exit 1 for a read failure on an unchanged path. - class: read failure bypasses change detectionSpec
None.
Manager response to round 7
Repaired:
ConfigChanged, an unchanged one keeps the read error; a folder at the first read still exits 1.sameIdentitycompares the link target, type, device, inode, and time;sameBytescompares the two byte arrays once.Rejected:
realPathand itslstat: rejected. It is the same check-then-act class as the round-4, round-5, and round-6 rejections: each resolution and eachstatof a path is a separate system call, so any finite sequence of checks leaves an interval in which a link can change before the next call. The toggle now refuses every change that completes before its last check, and the remaining intervals close only with a lock that omp also takes, which omp does not offer as a contract. The function comment records the residual.Redesigned: none.
Toggle the fast tiers over an empty tier section
Refuse tagged null tiers and escape anchor names
Check each fast toggle against omp's own YAML reader
Merge main into 284-handle-empty-omp-tier-sections-in-the-fast-toggles
Move the fast tier toggle path to Effect
Fix round 3 review findings on the Effect toggle path
Fix round 4 review findings on the Effect toggle path
Check the config.yml snapshot before the fast toggle writes
Check the config.yml identity before and after the second read
Recheck the config.yml identity after a failed second read
DocksDocks commentedon Dec 1, 2026
Archived with landing pull request #291