Skip to content

Remove the kit-owned OpenCode integration from the OMP-only surface #285

Done

Description

@DocksDocks

Goal

Make docks-kit OMP-only without requiring OpenCode Zen or importing OpenCode commands on the kit’s behalf. Coordinate with #283, which owns removing the CLI launcher, model picker and default selector.

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

Mode: plan-and-implement

Research

Repository facts

  • Replace the free-model wrapper with top-level fast tier flags #283 landed in 820d4faf (PR Replace the free-model wrapper with top-level fast tier flags #289): cli/src/engine-native/ompSession.ts, ompOverlay.ts, and commands/omp.ts are gone, and with them the opencode-zen free-session selector and the model picker. grep -rniIE 'opencode|\bzen\b' over the checkout at 820d4faf (without node_modules, .git, dist, CHANGELOG.md, cli/src/generated, and the frozen .agents/skills/review-benchmark/cases/) finds only:
    • cli/src/engine-native/ompRemovals.ts:82,106: the retired exact-value entries ["commands.enableOpencodeUser", false] and ["commands.enableOpencodeProject", false]. Sync prunes a key while it holds that old kit value (ompRemovals.ts:418-430 compares the value, not who set it), so a value other than false stays, and a false that the user set in the deployed config.yml is pruned too. They are migration safeguards for configs that an older kit wrote, not an integration. commands.enableOpencodeUser left the SoT in the omp 18.19.0 cleanup, where false was omp's default (CHANGELOG.md:1204-1215); commands.enableOpencodeProject is one of the 18 overrides returned to the omp 19.0.0 default (true), and only it has a row in the cli/docs/omp-context.md table (lines 148-171). That doc already tells users to keep an old kit value in a project configuration or a PI_CONFIG_FILES file, which sync does not write (lines 173-175).
    • cli/docs/omp-context.md:169: the retired-entries table row for commands.enableOpencodeProject (old kit value false, omp default true).
    • cli/docs/omp-models.md:250: a quoted third-party benchmark entry ("Opencode with GLM-5.3"), which is data about another harness, not a kit path.
    • AGENTS.md:3: the agents.md compatibility note for agents that work on this repository, not a kit surface.
    • .agents/skills/review-benchmark/cases/: frozen benchmark fixtures (Do not touch).
    • cli/test/unit/ompRetiredSync.test.ts:41,64 and cli/test/unit/ompRemovals.test.ts:201: tests that prune the unedited commands.enableOpencodeProject: false.
  • grep -rniIE 'opencode|\bzen\b' SoT cli/src/generated finds nothing: the SoT and the shipped payload hold no OpenCode or Zen key, so sync writes no OpenCode setting into a fresh home.
  • Test gaps: no test proves that a fresh-home sync writes no commands key, and none proves that a user's commands.enableOpencodeUser: true or commands.enableOpencodeProject: true survives sync, or that the unedited commands.enableOpencodeUser: false is pruned.
  • cli/test/unit/ompRemovals.test.ts calls syncOmpRemovals(testCtx(root), file, false) on a deployed config.yml and checks the pruned count and the result; cli/test/unit/ompRetiredSync.test.ts runs the public sync over the home-fresh fixture with runPublicCli.
  • Root AGENTS.md: tests and docs bump no version.

Tool facts

  • Bun 1.4.5 and omp 19.2.1: verified pins in SoT/toolchain.json. The defaults of omp's own commands.enableOpencode* settings belong to omp (Do not touch); omp 19.2.1 (docs/slash-command-internals.md, opencode provider): commands.enableOpencodeProject (default true) switches the project commands in .opencode/commands, so false is an opt-out; the user commands in .config/opencode/commands under the home folder load when OpenCode is opted in through enabledProviders or when commands.enableOpencodeUser is true (default false), so that key is an extra opt-in, and false does not override a provider-level opt-in.
  • GNU tar 1.35 with gzip 1.14 (tar --version, gzip --version on 2026-12-01, the host packages): cli/scripts/package-smoke.ts lists the gzipped tarball with tar -tzf, and root AGENTS.md (Testing) asks for GNU tar for the Linux check suite.
  • Vitest 5.1.2 (exact pin, package.json:62) runs on Node.js v26.13.0 (node --version on 2026-12-01) through its #!/usr/bin/env node shebang. The worktree has its frozen dependencies (bun install --frozen-lockfile), and the rows run the local runner with bun x --no-install vitest, so no unpinned copy installs.

Decisions

  • Choice: keep both ompRemovals.ts OpenCode entries. Reason: they prune only the old kit value; removing them would leave false from an older kit in upgraded configs. Rejected: deleting them, for that reason. Consequence: a false that the user set in the deployed config.yml is pruned as well, because sync cannot tell it from the old kit value; the doc sentence of Step 2 says so and names the project configuration and PI_CONFIG_FILES as the places that keep the opt-out. This is the documented behavior of every retired entry, not an erase of OpenCode's own config or credentials (Do not touch).
  • Choice: change no SoT file and bump no version: the change adds tests and one doc sentence.
  • Choice: keep AGENTS.md:3 and the benchmark text. Reason: neither is a kit-owned OpenCode path.

Request corrections

Steps

# Id Task Files Depends Effect Status Done when
1 regressions Write the tests first; they cover existing behavior. The commands.enableOpencodeUser: true keep case must also fail once against the planted change named in Done when; the other cases are regression guards. In ompRemovals.test.ts: the unedited commands.enableOpencodeUser: false and commands.enableOpencodeProject: false are pruned, and a user's true for each stays with the file otherwise unchanged. In ompRetiredSync.test.ts: a public sync of the home-fresh fixture writes a config.yml with no commands key and no key whose name contains opencode (case-insensitive), and its output names no OpenCode setup. cli/test/unit/ompRemovals.test.ts, cli/test/unit/ompRetiredSync.test.ts - local done The new tests pass; a planted ["commands.enableOpencodeUser", true] entry in ompRemovals.ts makes the commands.enableOpencodeUser: true keep test fail (red check, then reverted); the prune and fresh-home tests need no planted change, because they pin the existing behavior.
2 docs In cli/docs/omp-context.md, after the retired-entries table, add prose (not a table row): the kit writes no OpenCode setting; sync still prunes commands.enableOpencodeProject: false (the table row) and commands.enableOpencodeUser: false (retired in the omp 18.19.0 cleanup) while they hold that old kit value, also when you set that value yourself; omp's own defaults then apply. commands.enableOpencodeProject: false turns off the project OpenCode commands, so to keep that opt-out, set it in a project configuration or a PI_CONFIG_FILES file. commands.enableOpencodeUser only adds the user OpenCode commands: false is omp's default and does not turn them off when enabledProviders opts OpenCode in. cli/docs/omp-context.md 1 local done The prose names both keys, says that a user's false in the deployed file is pruned too, names where the project opt-out stays, and says that the user key is an opt-in that false does not veto.

Acceptance

ID Command Expected
tests bun x --no-install vitest run --reporter=verbose cli/test/unit/ompRemovals.test.ts cli/test/unit/ompRetiredSync.test.ts Exit 0; the report lists the prune, keep, and fresh-home cases as passed.
sync ./docks-kit sync --dry-run Exit 0, and each preview line starts with [dry-run]. No line sets up or writes an OpenCode setting; a [dry-run] prune line that names a retired commands.enableOpencode* key is the intended migration and is allowed.
smoke bun run smoke:package Exit 0 with [package-smoke] clean-room consumer install passed: the packed tarball installs in a clean folder and its CLI runs (root AGENTS.md asks for it on user-facing changes). It does not read the docs topic; the docs row checks the prose.
docs ./docks-kit docs omp-context Exit 0, and the output holds the Step 2 prose with both commands.enableOpencode* keys.
upgrade bun run golden:mutation golden-mutation: OK.
check bun run check Exit 0.

Do not touch

Do not change upstream OMP providers, erase user OpenCode config or credentials, or rewrite historical changelog/benchmark fixtures. Do not duplicate #283’s CLI changes.

Open questions

None. #283 landed in 820d4faf.

Verification Results

Audited source d3731bc and the installed 0.31.3 help and dry-run; no real provider session started.

Candidate b2ec8bff on Linux x64, 2026-12-01 (one commit holds Steps 1 and 2: the tests and the omp-context.md prose):

  • Red check, Step 1: with a planted ["commands.enableOpencodeUser", true] entry in ompRemovals.ts, bun x --no-install vitest run --reporter=verbose cli/test/unit/ompRemovals.test.ts -t "OpenCode|enableOpencode" gave 1 failed, 2 passed: the commands.enableOpencodeUser: true keep case failed; the prune case and the project keep case passed as guards. The entry was then reverted with git restore.
  • tests: exit 0, 31 passed, with prunes both OpenCode command switches at the old kit value false, both keeps commands.<key>: true and leaves the file unchanged cases, and writes no OpenCode setting and names no OpenCode setup.
  • sync: ./docks-kit sync --dry-run: exit 0; each preview line starts with [dry-run], and no line names OpenCode.
  • upgrade: golden-mutation: OK (13 case(s)).
  • smoke: exit 0, [package-smoke] clean-room consumer install passed.
  • docs: ./docks-kit docs omp-context: exit 0; the output holds the new prose with both commands.enableOpencode* keys.
  • check: bun run check: exit 0; 6395 unit tests passed, 12 skipped; golden-dryrun: OK (12 case(s)); golden-mutation: OK (13 case(s)).

Candidate ba1b13d7 (review repairs f6438698 and 20b4d7a7, then origin/main a08384b4 merged) on Linux x64, 2026-12-01:

  • tests: exit 0, 31 passed; the fresh-home case also checks the shipped astGrep.enabled: true and that config.yml has no enabledProviders key.
  • sync: exit 0; every preview line starts with [dry-run]; no line names OpenCode.
  • upgrade: golden-mutation: OK (13 case(s)). smoke: exit 0, [package-smoke] clean-room consumer install passed. docs: exit 0, the prose holds both keys.
  • check: bun run check: exit 0; 6454 unit tests passed, 12 skipped; both golden suites OK.

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, full

    Plan-review: repair

    • goal_fit - Research, exact-value pruning and the decision to keep both entries; Steps regressions and docs; Do not touch - The plan says a user's own value stays, but cli/src/engine-native/ompRemovals.ts:82,106,418-430 compares values, not who set them. A user who explicitly set commands.enableOpencodeProject: false in the deployed OMP config loses that opt-out on sync. OMP 19.2.1 then defaults project command discovery to true. The proposed true cases verify preservation of different values, not preservation of user intent - State explicitly that keeping the migration removes either false even if the user set it. Reconcile that exception with Do not touch and document where users can keep the opt-out without sync pruning it, as cli/docs/omp-context.md:173-175 already describes - class: exact-value matching mistaken for provenance
    • goal_fit - Acceptance sync - An upgraded home containing either retired false value can exit 0 and correctly print a [dry-run] prune line naming the OpenCode key. The expected result rejects that output even though the plan keeps the migration. cli/src/engine-native/ompSync.ts:76-79 calls the prune, and cli/src/engine-native/ompRemovals.ts:398-405 prints the key - Run this check against an isolated fresh home or forbid OpenCode setup actions while allowing retirement previews - class: acceptance rejects intended migration output
    • goal_fit - Steps docs; Acceptance - cli/src/commands/docs.ts:11,37-40,77-81 ships the edited prose through docks-kit docs omp-context. AGENTS.md:71 requires bun run smoke:package for user-facing changes, but package.json:33-48 shows that bun run check does not include it. Every listed check can pass without running the required package smoke - Add bun run smoke:package to Acceptance with its successful exit and [package-smoke] clean-room consumer install passed result - class: required repository check missing from acceptance
    • research_gap - Research, post-Replace the free-model wrapper with top-level fast tier flags #283 inventory and SoT search; Request corrections - The inventory carries the decision that nothing remains to remove, but the cited grep -rniI 'opencode|zen' uses basic regular expressions. It searches for a literal pipe rather than matching either term, so it would miss even the known entry at cli/src/engine-native/ompRemovals.ts:82. The separate SoT search checks only opencode, not Zen - Record the actual 820d4fa inventory using separate patterns or extended alternation, including the SoT and shipped payload - class: search evidence does not match the claimed inventory
    • research_gap - Steps docs, “the two commands.enableOpencode* rows” - The table at cli/docs/omp-context.md:148-171 has one OpenCode row, for commands.enableOpencodeProject. commands.enableOpencodeUser was retired separately, as CHANGELOG.md:1204-1215 records. Adding the sentence as written would point readers to a row that does not exist - Describe both migration entries in prose without presenting the user setting as part of the 18-row table - class: documentation step refers to a nonexistent entry
    • research_gap - Research Tool facts; Acceptance tests and check - The plan records Bun and OMP but omits the Vitest 5.1.2 pin in package.json:62 and the Node runtime that Vitest's shebang selects. On a worktree without installed dependencies, bunx can install an unpinned copy; with dependencies installed but an unsupported Node version, the command can fail before running the regressions - Record the existing Vitest pin and a supported Node version, require the frozen checkout dependencies, and invoke the local runner without an install fallback - class: acceptance runner not bound to the recorded toolchain
  4. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 2, delta

    Plan-review: repair

    • goal_fit - Steps regressions, Task and Done when - The Task requires every new test to fail against the planted change, but Done when specifies only adding a retirement entry for commands.enableOpencodeUser: true. The exact-value comparison in cli/src/engine-native/ompRemovals.ts:418-430 leaves both false cases unchanged, and the fresh-home config written by cli/src/engine-native/ompSync.ts:76-79 has no matching key. Only the keep test can fail from that edit - Limit the planted check to the keep test it is designed to exercise - class: completion condition contradicts the specified check
    • research_gap - Research, Decisions; Steps docs - The proposed prose treats both false values as opt-outs. OMP 19.2.1's OpenCode provider treats commands.enableOpencodeUser as an additional opt-in, not a veto. A user with enabledProviders: [opencode] who follows the advice and sets that toggle to false in a project or overlay file still gets user-level OpenCode commands - Distinguish the project-command opt-out from the user-command opt-in, and explain that false does not override a provider-level opt-in - class: opt-in toggle documented as an opt-out
    • goal_fit - Acceptance smoke - The clean-room success marker does not verify the edited prose. cli/scripts/package-smoke.ts:44-48,315-333,456-467,510 runs the packaged CLI's version, help, dry-run, and tier checks, but never invokes docs omp-context. It can print the same marker with the old prose - Keep the required smoke gate and report what its marker proves. If this row is meant to prove delivery of the edited prose, check the packaged topic's output directly - class: acceptance success marker does not verify the claimed output
    • research_gap - Research, Tool facts; Acceptance smoke and check - cli/scripts/package-smoke.ts:259-262 requires tar -tzf, and AGENTS.md:77 requires GNU tar for the Linux check suite. The recorded Bun, Node, Vitest, and OMP versions do not establish which archive reader is available. Without a compatible tar on PATH, the smoke fails before the installed CLI checks - Record the GNU tar version and its source for the Linux acceptance environment, as the plan contract's Tool facts rule requires - class: unrecorded archive-reader prerequisite

    Previous findings:

    • Round-1 finding on exact-value pruning, Steps regressions and docs, and Do not touch: resolved - Research, Decisions, and Step 2 now say that sync removes either matching false regardless of who set it, and distinguish the deployed OMP file from OpenCode's own config and credentials.
    • Round-1 finding on Acceptance sync: resolved - The row now allows a dry-run prune message naming either retired key.
    • Round-1 finding on the missing package smoke gate: resolved - Acceptance now includes bun run smoke:package and its success marker.
    • Round-1 finding on the post-Replace the free-model wrapper with top-level fast tier flags #283 inventory and SoT search: resolved - Research now uses extended alternation and searches both the SoT and the shipped payload for both terms.
    • Round-1 finding on the two supposed documentation table rows: resolved - Step 2 names the project key as the table entry and documents the separately retired user key in prose.
    • Round-1 finding on the test runner: resolved - Tool facts now record the Vitest and Node versions and frozen dependencies, and tests invokes the local runner with --no-install.

    Manager response to round 1

    Repaired:

    • goal_fit, exact-value matching is not provenance: Research and Decisions state that a user's false in the deployed config.yml is pruned too; Step 2 documents it and names the project configuration and PI_CONFIG_FILES as the places that keep the opt-out; Decisions reconcile it with Do not touch.
      • Instances: Research, Decisions, Step 2.
    • goal_fit, Acceptance sync rejected the intended migration output: the row allows a [dry-run] prune line for a retired commands.enableOpencode* key and forbids only an OpenCode setup or write.
    • goal_fit, missing package smoke: Acceptance row smoke runs bun run smoke:package with its expected line.
    • research_gap, the inventory grep: Research records grep -rniIE 'opencode|\bzen\b' at 820d4faf, with the SoT and cli/src/generated searched for both terms.
    • research_gap, the docs step named two table rows: Step 2 now adds prose after the table and says which key has a row and which was retired in the omp 18.19.0 cleanup.
    • research_gap, the test runner: Tool facts record Vitest 5.1.2, Node.js v26.13.0, and the frozen dependencies; the tests row runs bun x --no-install vitest.

    Rejected: none.

    Redesigned: none.

  5. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 3, delta

    Plan-review: repair

    • goal_fit - Steps regressions, Task and Done when - The Task still says every new test must fail against a planted change, but Done when exempts the prune and fresh-home tests. The sole planted entry matches only commands.enableOpencodeUser: true under the exact path and value check in cli/src/engine-native/ompRemovals.ts:347-354,418-430. The commands.enableOpencodeProject: true keep case, both false prune cases, and the fresh-home case still pass - Limit the Task's planted-red requirement to the user-key true keep case and treat the other cases as regression guards - class: completion condition contradicts the specified check

    Previous findings:

    • Round-2 finding on Steps regressions, Task and Done when: open - repeated above
    • Round-2 finding on Research, Decisions and Steps docs: resolved - Tool facts and Step 2 distinguish the project opt-out from the user opt-in and say that false does not veto enabledProviders.
    • Round-2 finding on Acceptance smoke: resolved - The smoke row now claims only a clean-room install and CLI run. The new docs row checks the revised prose through ./docks-kit docs omp-context.
    • Round-2 finding on Research, Tool facts and Acceptance smoke and check: resolved - Tool facts record GNU tar 1.35 and gzip 1.14 with dated version commands.

    Manager response to round 2

    Repaired:

    • goal_fit, Step 1 Done when contradicted the planted check: the planted entry now targets only the commands.enableOpencodeUser: true keep test; the prune and fresh-home tests pin existing behavior and need no planted change.
    • research_gap, the user key is an opt-in: Tool facts record omp 19.2.1's opencode provider rules; Step 2 prose separates the project opt-out (commands.enableOpencodeProject: false) from the user opt-in (commands.enableOpencodeUser), and says that false does not override an enabledProviders opt-in.
      • Instances: Tool facts, Step 2 Task and Done when.
    • goal_fit, the smoke marker does not prove the prose: the smoke row says what its marker proves; a new docs row runs ./docks-kit docs omp-context and checks the prose.
    • research_gap, the archive reader: Tool facts record GNU tar 1.35 and gzip 1.14 from the host packages.

    Rejected: none.

    Redesigned: none.

  6. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 4, delta

    Plan-review: pass

    None.

    Previous findings:

    • Round-3 finding on Steps regressions, Task and Done when: resolved - Step 1 now requires the planted failure only for the commands.enableOpencodeUser: true keep case and treats all other cases as regression guards. The exact path and value matcher in cli/src/engine-native/ompRemovals.ts:418-430 supports that distinction.

    Manager response to round 3

    Repaired:

    • goal_fit, Step 1 Task and Done when: the Task limits the planted red check to the commands.enableOpencodeUser: true keep case and names the other cases regression guards, as Done when does.

    Rejected: none.

    Redesigned: none.

  7. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 1, lens correctness

    Code-review: pass

    Standards

    • [MEDIUM] Bug - cli/test/unit/ompRetiredSync.test.ts:144-146 - The fresh-home test would pass if the kit shipped enabledProviders: [opencode]. Sync installs the setting without naming it in its output, and the test scans YAML keys but not values. On a machine with user OpenCode commands, omp would then import them, as the new docs explain at cli/docs/omp-context.md:184-186. - Keep the key and output checks, and assert that enabledProviders contains none of opencode, *, or all. - class: regression assertion misses provider opt-in

    Spec

    None.

    Code review round 1, lens spec-and-tests and text-and-safety

    Code-review: pass

    Standards

    • [LOW] Bug - cli/docs/omp-context.md:179-183 - A user who already set commands.enableOpencodeProject: false in a project config or PI_CONFIG_FILES keeps that opt-out after sync prunes the deployed copy. “omp's own defaults then apply” omits that condition, even though omp 19.2.1 merges both layers over the deployed user config. - Say omp uses its defaults only when no other settings layer supplies a value. - class: omitted configuration precedence
    • [LOW] Bug - cli/test/unit/ompRetiredSync.test.ts:128-146 - Unreached: the home-fresh public sync case deploys a valid mapping today, but the focused test would also pass if sync wrote an empty file or a YAML scalar and exited successfully. valueAt and keyNames both treat those values as having no keys. The separate Linux mutation golden checks the deployed bytes. - Also assert a shipped setting already covered in this file, such as astGrep.enabled: true, before checking for absent keys. - class: vacuous negative assertion

    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/test/unit/ompRetiredSync.test.ts:144-146: open - the test catches bare provider IDs but misses path-scoped opt-ins; repeated under Standards.
    • Round-1 finding on cli/docs/omp-context.md:179-183: fixed - cli/docs/omp-context.md:181-185 explains that a project config or PI_CONFIG_FILES can still supply the value after pruning.
    • Round-1 finding on cli/test/unit/ompRetiredSync.test.ts:128-146: fixed - cli/test/unit/ompRetiredSync.test.ts:144-145 checks a shipped setting, so empty and scalar YAML no longer pass.

    Standards

    • [MEDIUM] Bug - cli/test/unit/ompRetiredSync.test.ts:148-151 - If the kit shipped enabledProviders: [{ path: "~/work", providers: [opencode] }], the fresh-home test would pass (inference from the assertion): map(String) turns the entry into [object Object], and the key scan does not inspect values. Omp 19.2.1 resolves path-scoped provider entries, so a user with OpenCode commands who starts omp under ~/work would have them imported. - Check opencode, *, and all in both bare entries and the providers, values, and items fields of scoped entries. - class: regression assertion misses provider opt-in

    Spec

    None.

    Manager response to round 1

    Repaired:

    • Correctness MEDIUM, provider opt-in not checked: the fresh-home test asserts that enabledProviders holds none of opencode, *, or all.
    • Spec-and-text LOW, omitted settings precedence: the prose says that after the prune omp uses another settings layer, such as a project configuration or a PI_CONFIG_FILES file, or else its default.
    • Spec-and-text LOW, vacuous negative assertion: the fresh-home test first asserts the shipped astGrep.enabled: true.

    Rejected: none.

    Redesigned: none.

  9. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 3, delta

    Code-review: pass

    Previous findings

    • Round-2 finding on cli/test/unit/ompRetiredSync.test.ts:148-151: open - the new assertion catches direct enabledProviders entries, including path-scoped entries, but misses opt-ins introduced through a YAML merge key. Repeated under Standards.

    Standards

    • [MEDIUM] Bug - cli/test/unit/ompRetiredSync.test.ts:142-150 - If the shipped config adds <<: { enabledProviders: [opencode] } at the root, the fresh-home test still passes (inference). The test's yaml parser leaves << unexpanded by default, so the root lookup finds no enabledProviders and the key scan misses opencode because it is a value. omp 19.2.1 loads the file with Bun's YAML parser, which expands the merge key. Users with OpenCode commands would then have them imported. - Parse the deployed config with Bun's YAML parser before checking for provider opt-ins. - class: regression assertion misses provider opt-in

    Spec

    None.

    Manager response to round 2

    Repaired:

    • MEDIUM, path-scoped provider opt-in not checked: the fresh-home test asserts that the deployed config.yml has no enabledProviders key at all; the SoT ships none, so a bare or path-scoped opt-in of any form fails the test.

    Rejected: none.

    Redesigned: none.

  10. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 4, lens correctness, spec-and-tests, text-and-safety (panel)

    Code-review: pass

    Previous findings

    • Round-3 finding on cli/test/unit/ompRetiredSync.test.ts:142-150: rejected - The unit test still does not expand YAML merge keys, but the merged home-fresh mutation golden compares the deployed config digest. Adding a merge key to the shipped config would fail that comparison unless the golden were updated. See cli/test/goldens/mutation.json:501 and cli/test/golden-mutation.ts:374-381.

    Standards

    • [LOW] Bug - cli/docs/omp-context.md:177-182, cli/src/engine-native/ompRemovals.ts:293-308, cli/src/engine-native/ompRemovals.ts:424-430 - Unreached: If a deployed config.yml supplies either OpenCode switch as false through a YAML merge under commands, sync leaves it in place and omp still reads false (inference). The pruner checks direct YAML entries, while omp expands merges. The shipped config, retirement fixtures, and documented examples do not use this form. - Clarify that sync prunes directly declared false values; keep the project and PI_CONFIG_FILES guidance. - class: documentation overstates YAML retirement coverage

    Spec

    None.

    Manager response to round 3

    Repaired: none.

    Rejected:

    • MEDIUM, an opt-in through a YAML merge key (<<) at the root: rejected. The fresh-home test is a regression guard for the shipped SoT/.omp/config.yml, which has no merge key and no enabledProviders. The mutation golden (bun run golden:mutation, case home-fresh) pins the bytes that a fresh sync deploys, so any SoT change that adds a merge key, an enabledProviders entry, or any other key fails that golden and gets reviewed; a parser change in this one test would duplicate that guard.

    Redesigned: none.

  11. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Archived with landing pull request #292

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