Skip to content

Move the omp passes to Effect - #310

Merged
DocksDocks merged 4 commits into
mainfrom
296-move-the-omp-passes-and-the-kit-store-to-effect
Dec 2, 2026
Merged

DocksDocks merged 4 commits into
mainfrom
296-move-the-omp-passes-and-the-kit-store-to-effect

Conversation

@DocksDocks

Copy link
Copy Markdown
Owner

Plan run: #296 Move the omp passes and the kit store to Effect

Pull request: this one. Checks: Full CI requested. Reviewed head: 06913fad.

What changed

  • The seven omp pass modules use the FileSystem service with their base outcomes, and lose their bridges (cli/src/engine-native/omp*.ts).
  • Each file mutation runs uninterruptibly inside the signal deferral; the signal state lives in a new signalGuard.ts, and the raw golden channel exits 130 for SIGINT and 143 for SIGTERM (cli/src/engine-native/signalGuard.ts, cli/src/main.ts).
  • The YAML merges return a typed Result; a serialization failure is OmpYamlInvalid (cli/src/engine-native/ompYaml.ts).
  • Existence probes follow links on every platform, through one shared helper (cli/src/engine-native/fileText.ts).
  • A stale plugin file is removed with a typed error that keeps its errno message (cli/src/engine-native/ompKitPlugin.ts).
  • The omp and sync guidance names the Effect passes (.agents/skills/omp-sync-context, .agents/skills/sync-orchestration-context).

Decisions and corrections

Delegated decisions

  • Recorded in the Research of Move the omp passes and the kit store to Effect #296 (Files, Mutation regions, YAML, Paths, Signal guard, Bridges). Rejected with evidence: an exclusive create on the absent branch of the whole-file deploy (plan round 6), because the base wrote through a dangling link.

Reviews

Plan review passed in round 10. Code review passed in round 3.
Open findings: five LOW findings in #309.

Verification

Limits and failures

  • The Windows behavior of the dangling-link case is proven by the Windows unit shards of Full CI only.

Kept resources

  • None after the merge.

After merge

Checklist

  • bun run check passes
  • Tested locally end to end (deps, unit, goldens, red-dry, red-mut, scan, bridges, guidance, dry, omp-smoke, types, ci-tools, smoke, gate)
  • Code review passed

Closes #296

Step passes of #296 (child of #290): the seven pass modules use FileSystem with their base
outcomes, run each mutation uninterruptibly inside the signal deferral (per-signal exit codes
for the public and raw channels), return a typed Result from the YAML merges, resolve omp
paths through FileSystem, and lose their #294 bridges; logger, atomic writer, process, and
probe calls stay bridged until #297 and #298. New cases cover a signal or an interrupt
between a deploy write and its chmod, a BOM rewrite, an XDG path below a file, and an alias
before its anchor.

Verified: bun x --no-install vitest run (unit row of #296); bun run golden:dryrun; bun run golden:mutation; bun run check:types; bun run lint; bun run check
Step guidance of #296: FileSystem.exists replaces the existsSync rule, the YAML merges return
a Result, the bridge list and the ledger name bridgeSync, and the signal descriptions name the
mutation deferral.

Verified: bun x --no-install vitest run cli/test/unit/skillMetadata.test.ts
Step repairs of #296: existence probes follow links on every platform (a dangling config.yml
link takes the install branch), the whole-file deploy probes again at the backup decision, the
signal state and mutationRegion move to signalGuard.ts so the passes do not import the CLI
seam, a stale plugin file is removed with a typed PluginFileRemoveFailed that keeps its errno
message, the upgrade-log removal and its log share one recovery, the guidance names which
FileSystem errors fail the run, and the tests bound their checkpoints and own their fixtures.

Verified: bun x --no-install vitest run (unit row of #296, 576 tests); bun run check:types; bun run lint; bun run format:check
Step repairs-2 of #296: the dangling-link dry-run case compares slash-normalized paths, so it
holds on Windows; the EngineFailure comment says that unrecovered file operations fail with
PlatformError; the ompPaths comments describe the target-following existence probe pathExists.

Verified: bun x --no-install vitest run (unit row of #296, 576 tests); bun run check:types; bun run lint; bun run format:check
@DocksDocks DocksDocks linked an issue Dec 2, 2026 that may be closed by this pull request
@DocksDocks
DocksDocks marked this pull request as ready for review December 2, 2026 06:42
@DocksDocks
DocksDocks merged commit b3b277f into main Dec 2, 2026
10 checks passed
@DocksDocks
DocksDocks deleted the 296-move-the-omp-passes-and-the-kit-store-to-effect branch December 2, 2026 06:49
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.

Move the omp passes and the kit store to Effect

1 participant