Skip to content

Move the engine-native layer to Effect #290

Todo
4 of 5 issues completed
Todo

Description

@DocksDocks

Goal

Move the engine-native layer (cli/src/engine-native/) to Effect 4 and follow Effect best practices: typed errors in the error channel (Schema.TaggedError), file work through the FileSystem service and process work through one host-aware kit process service in exec.ts (Research D2), Effect-scoped locks (acquireRelease), and no Effect.run outside the entry files. Keep the sync output, exit codes, locks, and idempotency as they are. The omp fast-tier toggle moves first, in #284; this plan covers sync, toolchain, tidy, scratch, the kit store, and the lock helpers. User request: "cant we make everything effect? following its best practices".

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

Mode: plan-and-implement

Research

Repository facts (base b53f04d6):

  • cli/src/engine-native/ has 42 files and about 6450 source lines: 35 at the top level (with DESIGN.md and sharedTypes.d.ts) and 7 under os/. Only the fast toggle (ompFastMode.ts) and the lock scope homeAndFolderLocks (syncDispatch.ts) are Effect code, from Handle empty OMP tier sections in the fast toggles #284. The rest uses synchronous node:fs, async functions, node:child_process, and node:sqlite (kitDb.ts, kitLock.ts). Errors are thrown, returned as result unions, or recorded in the run ledger (failures.ts recordFailure). ExitError (parseHelp.ts) is a thrown exception for an intended abort, and exec.ts spawnHost calls process.exit(2) when os/windows.ts cannot encode an argument.
  • Bridges that exist now: cli/src/engine.ts wraps runEngineNative in Effect.tryPromise; cli/src/commands/tidy.ts wraps planTidy, applyTidy, acquireKitLock, buildTidyReport, and mainRepository in Effect.promise; cli/src/plan/services.ts calls createScratchDir inside its fileOperation; ompFastMode.ts wraps replaceFile in Effect.try. Effect.run* runs in cli/src/main.ts (BunRuntime.runMain and the raw-channel path) and in cli/src/plan/checkout.ts (Effect.runSync in baseBlobSync, which the review benchmark prepare.mjs calls; this exception stays).
  • Synchronous callers that cross child lines: toolchain.ts calls kitDb.ts readCache and writeCache; cli/src/commands/sync.ts calls exec.ts spawnHost for the update nudge; spawnHost is spawnSync, which blocks the event loop until the child exits (Node child_process, synchronous process creation).
  • Other callers of engine code: cli/src/main.ts awaits runEngineNative in the raw golden channel and passes the result to process.exit; cli/src/services.ts builds the engine service factories for the public CLI; cli/src/skills/kitGate.ts calls exec.ts which synchronously; cli/src/commands/root.ts calls ompPaths; ompPaths.ts probes the XDG data root with existsSync, and ompSync.ts uses the result to choose and recheck the locked root. spawnHost exits 2 on an argument that the host cannot encode, while spawnProcess returns that refusal to its caller. A caller of a change (for example omp plugin link in ompPlugins.ts) records a failed operation, so the sync exits 1; the plugin inventory in ompPlugins.ts only warns, so the sync can still exit 0.
  • engineCtx.ts passes a plain Ctx object (services, verbosity, dry run, home, run state, terminal lease) through every call. services.ts holds plain factories (makeEngineServices). logger.ts keeps stream order: change, verbose, warn, and echo wait during a terminal-exclusive section, err writes at once, and progress lines are transient.
  • Tests: unit tests call engine-native functions in-process. The current runner cases (drain and failure order) are in cli/test/unit/engine-di.test.ts. The golden suites (cli/test/golden-dryrun.ts, cli/test/golden-mutation.ts) spawn the CLI and pin exit codes, output, child argv logs, and written file trees for sync and toolchain check; --prove-red must exit 1 and print prove-red OK: golden-<suite> (.github/workflows/parity.yml). No golden covers tidy, scratch, or toolchain outdated; cli/test/unit/tidy.test.ts has one spawned tidy --apply case.
  • Skill rules that a child changes: .agents/skills/host-platform-context/SKILL.md (spawnHost for synchronous children, spawnProcess for asynchronous ones, replaceFile for user files, inherited-stdio children inside ctx.terminalLease?.withExclusive); .agents/skills/engine-native-context/SKILL.md and .agents/skills/sync-orchestration-context/SKILL.md (ExitError for intended aborts, exit 2 reserved for validation).

Effect 4.1.7 facts (node_modules/effect/package.json):

  • Tagged errors: the repository uses Schema.TaggedError (ompFastMode.ts, syncDispatch.ts). Schema.TaggedErrorClass does not exist in Effect 4 (kit plugin effect-ts skill).
  • effect/FileSystem and effect/process are unstable modules. The @effect/language-service plugin entry in cli/tsconfig.json configures the Effect diagnostics of effect-tsgo; its allowedUnstableApis list names the unstable symbols in use, and bun run check:types (effect-tsgo tsc --noEmit -p cli, in bun run check) reports the unstableApiUsage diagnostic for any other unstable symbol. bun cli/scripts/verify-ci-tools.ts proves only that plain type errors and the Effect diagnostics globalErrorInEffectFailure and floatingEffect fail the gate.
  • ChildProcess options (node_modules/effect/src/process/ChildProcess.ts) have shell, detached, and killSignal, but no windowsVerbatimArguments, which exec.ts spawnProcess and spawnHost pass for the Windows command shims.
  • Effect.forEach with concurrency interrupts the started siblings when one fails (node_modules/effect/src/internal/effect.ts forEach). The first comment on this issue measured that with concurrency 2.
  • Effect.tryPromise does not stop a Promise that ignores its abort signal when the fiber is interrupted (node_modules/effect/src/Effect.ts tryPromise documentation). Effect.uninterruptible makes an interrupt wait until the region ends.
  • Effect.acquireRelease registers the release in the enclosing Scope, as homeAndFolderLocks does now.

Tool facts: Bun 1.4.5, Node v26.13.0 (inside the Vitest engines range), and Git 2.53.0 (bun --version, node --version, git --version, 2026-12-01); Vitest 5.1.2, effect 4.1.7, @effect/platform-bun 4.1.7, and @effect/tsgo 0.74.1, which supplies effect-tsgo (bun.lock); omp 19.2.1 (SoT/toolchain.json verified pin). The Acceptance scans use git grep, so no other search tool is needed.

File owners (each path has one owner child; "plain" means a pure function or data module that stays a plain function, which is the Effect practice for code with no effect):

Owner Paths
#294 seam index.ts, engineCtx.ts, services.ts (the Effect layers and their wiring; each dependency method keeps its shape until #298), logger.ts, parseArgs.ts, parseHelp.ts, failures.ts, syncDispatch.ts, ompSync.ts, modes.ts; cli/src/engine.ts, cli/src/main.ts (the raw golden channel and the signal handling of engine runs), cli/src/services.ts, cli/src/commands/sync.ts (not its update nudge), cli/src/commands/toolchain.ts; the ExitError and dispatch rules in .agents/skills/engine-native-context/SKILL.md, .agents/skills/sync-orchestration-context/SKILL.md, and its references/dispatch-flow.md (not the nudge lines), with the lock release that moves from finally to the scope; the lines that name the lock of sync in .agents/skills/tidy-context/SKILL.md and .agents/skills/sync-orchestration-context/SKILL.md; the parser and service-wiring entries and the pipeline failure-output paragraph of DESIGN.md; the dispatch pointers of .agents/skills/omp-sync-context/SKILL.md; the withExclusive line of .agents/skills/host-platform-context/SKILL.md
#295 tidy tidy.ts, tidyReport.ts, syncConcurrency.ts; cli/src/commands/tidy.ts
#296 passes ompFileDeploy.ts, ompKitPlugin.ts, ompPlugins.ts, ompRemovals.ts, ompYaml.ts, ompChild.ts, ompPaths.ts (the path math stays plain; the XDG existence probe moves to FileSystem with the same fallback), the ompPaths call in cli/src/commands/root.ts; the existsSync rule in .agents/skills/omp-sync-context/SKILL.md
#298 toolchain toolchain.ts, deps.ts, bun.ts, the dependency methods of services.ts (path, version, probe) and their callers, also the probe call in ompPlugins.ts; the removal of the unused versionReading method and its test doubles
#297 leaves exec.ts, processes.ts, atomicWrite.ts, kitDb.ts, kitLock.ts (see D4), scratch.ts, home.ts, os/ (all 7; os/windows.ts gets a typed refusal, the rest plain), ompFastMode.ts (its replaceFile bridge), errorText.ts, jq.ts, and sharedTypes.d.ts (plain), DESIGN.md (apart from its parser and service-wiring entries and its pipeline failure-output paragraph); the final cutover of logger.ts (stream write errors through the typed channel, after the last legacy caller goes; until then the logger keeps its immediate throw, which a bridge carries); the final signal cutover of the public and raw engine entries (cli/src/engine.ts and cli/src/main.ts: a signal that the runtime delivers to a listener interrupts the engine fiber, which stops and reaps the writing children before the locks are released, with the same exit codes per channel; a forced termination on Windows, where Bun's ChildProcess.kill does not deliver the signal, stays as it is); cli/src/kitHome.ts (the resolver through FileSystem, with the same lookup order and diagnostics) and its callers engineCtx.ts, cli/src/commands/sync.ts, and cli/src/commands/update.ts (until then kitHome() is a bridge); cli/src/commands/scratch.ts, update.ts, root.ts (its other engine calls), the update nudge in cli/src/commands/sync.ts, cli/src/plan/services.ts (the createScratchDir call), cli/src/skills/kitGate.ts (the which call); .agents/skills/host-platform-context/SKILL.md (apart from its withExclusive rule, which #294 owns), the nudge lines of .agents/skills/sync-orchestration-context/references/dispatch-flow.md, every other instruction that names acquireKitLock (the lock rows of cli/AGENTS.md and .agents/skills/tidy-context/SKILL.md for tidy --apply)

Decisions:

  • D1, the split, the order, and the bridge rule (delegated):
    • Question: land the migration as one pull request or as children, in which order, and how converted code calls code that is not converted yet.
    • Options: (a) one pull request; (b) children from the leaves up; (c) children from the callers down, with a bridge at each call into code that a later child moves.
    • Evidence: about 6450 source lines and most unit tests change. A leaf moved first makes its Promise or synchronous callers run Effects, which needs Effect.run* outside the entry files or a second API for the leaf (for example toolchain.ts over kitDb.ts). Callers first keep every Effect.run* where it is now.
    • Failure modes: (a) a diff too large to review, and one revert for every regression; (b) a second convention while the leaves wait for their callers; (c) a bridge stays when a later child stalls, and an interrupt through Effect.tryPromise releases a scoped lock while the legacy work still runs.
    • Reversibility: each child is one merge commit to revert.
    • Durability: (c) ends with no bridge around kit code; the last child removes the last one, and the bridges row below fails while one remains.
    • Pre-mortem: the bridges outlive the plan, or an interrupt frees a lock early. Guards: the bridge rule below, and the bridges row.
    • Choice: (c), five children in this order: Move the engine seam and the sync orchestration to Effect #294, Move tidy to Effect #295, Move the omp passes and the kit store to Effect #296, Move the toolchain passes to Effect #298, Move the process layer, the file helpers, and the kit store to Effect #297. Rejected: (a) for review size; (b) for the second convention. A bridge is the standard Effect interop for code that is not Effect yet, inside one plan with a fixed end, and not a workaround.
    • Bridge rule: a call from converted code into code that a later child owns is Effect.uninterruptible(Effect.try(...)) for a synchronous callee or Effect.uninterruptible(Effect.tryPromise(...)) for a Promise callee, with a typed error. So an interrupt waits until the legacy work settles, and no scope closes under it. The bridge stays in the caller's file. The child that owns the callee removes the bridge at every caller, also in files that an earlier child owns, and makes that path interruptible; it also edits each plain call site of the callee, in any file, when the callee becomes an Effect. Each child updates the skill rules that describe the code it moves in the same pull request. The synchronous primitives of kitLock.ts (D4) are not bridged code: an Effect.try around them is a runtime adapter, like one around node:sqlite. A caller never becomes a bridge for its callee: a converted callee ships only with or after all its callers.
  • D2, the process layer (delegated):
    • Question: spawn children through ChildProcessSpawner, or through a kit process service.
    • Options: (a) ChildProcessSpawner from @effect/platform-bun; (b) one Effect service in exec.ts over the current host-aware spawn, with typed errors and a kill on interrupt; (c) keep the Promise and synchronous functions.
    • Evidence: ChildProcess has no windowsVerbatimArguments, which the Windows command shims need; the host-platform skill names exec.ts as the one spawn path; spawnSync cannot be interrupted.
    • Failure modes: (a) broken Windows argument quoting, which only the Windows CI job sees; (b) the kit owns the interrupt and kill code; (c) untyped rejections and blocking spawns stay.
    • Reversibility: inside Move the process layer, the file helpers, and the kit store to Effect #297 only.
    • Durability: (b) keeps one spawn path and moves every caller to it. Every spawn from Effect code is asynchronous and stopped on interrupt, the update nudge included: on POSIX the service signals the child's process group with a catchable signal, waits a bounded grace period, then kills the group, and the stop is complete only when no process of the group runs; on Windows it follows the Windows stop amendment below (a .cmd shim runs through cmd.exe); on POSIX, and on Windows for the writer operations of that amendment, it reaps the child before the scope closes, while a Windows read-only child, and the nudge git fetch at its deadline, resolve after the kill, the pipe disposal, and unref(); spawnHost keeps no caller in Effect code, and Move the process layer, the file helpers, and the kit store to Effect #297 deletes it or names each remaining synchronous caller in Research with its reason. An argument that the host cannot encode is a typed refusal in the service, and each caller keeps its current handling of that refusal: a former spawnHost caller exits 2 through the CLI boundary; a spawnProcess caller that records a failed operation (such as omp plugin link) still records it; a caller that only warns (such as the plugin inventory in ompPlugins.ts) still only warns, so its sync can still exit 0. The process service never exits the process.
    • Pre-mortem: a later Effect release adds verbatim arguments and (b) looks redundant. Guard: Move the process layer, the file helpers, and the kit store to Effect #297 records the missing option; a later plan can move the service implementation with no caller change.
    • Choice: (b). Rejected: (a) for the Windows shims, (c) for the Goal. The Goal now names this service. Amendment (Move the process layer, the file helpers, and the kit store to Effect #297 plan review round 1): on POSIX, a child that needs the CLI's session and controlling terminal (the update children, the chained sync CLI, and the update nudge) stays in the CLI's process group; on interrupt the service sends a catchable signal to that direct child only and waits for it to exit, as spawnSync did, so a Git credential prompt keeps the terminal. This cooperative stop is POSIX-only: on Windows every child, the chained sync CLI and an npm.cmd shim included, gets the Windows stop below, so the outer updater ends the chained sync CLI through its handle. On POSIX, the guarantee that a chained sync CLI stops its own children before the outer CLI sees its exit covers chained CLIs that implement Move the process layer, the file helpers, and the kit store to Effect #297; a chained entry older than Move the process layer, the file helpers, and the kit store to Effect #297 handles its signal as before Move the process layer, the file helpers, and the kit store to Effect #297, and the updater waits only for its direct child, as the base spawnSync did (a known limit, recorded in Move the process layer, the file helpers, and the kit store to Effect #297).
    • Windows stop (amendment, Move the process layer, the file helpers, and the kit store to Effect #297 plan review rounds 3 to 8; delegated; the policy by operation): Question: how a Windows child stops at a timeout and on an interrupt without ending an unrelated process, and which operations need a confirmed exit. Options: (a) the handle policy below, with no taskkill.exe on any path; (b) keep the base best-effort taskkill /T for captureWithin timeouts and at CLI exit; (c) a Job Object. Evidence: taskkill /PID /T selects a numeric PID, and Windows can reuse a PID after the last handle closes (Old New Thing); the base runs it through spawnSync after the exit guard of exec.ts killProcessTree; an async helper cannot pin the identity while it launches, and a synchronous one blocks the runtime; TerminateProcess is asynchronous and can fail; Node and Bun expose no Job Object API. Lock holders: the sync CLI holds the sync locks (for update, the chained CLI), tidy --apply holds the apply lock (not its report), and the updater and toolchain ensure bun hold none. Failure modes: (a) descendants survive, and a writer that cannot be terminated keeps the CLI waiting until the user ends it; (b) a recycled PID can name an unrelated process, or the runtime blocks; (c) needs native code. Reversibility: a later plan can add a Job Object behind the service layer. Durability: every stop of every Windows child, at a timeout or an interrupt, kills the direct child through its handle, disposes of the parent's pipe ends, and observes the direct child's exit apart from close. The writers (spawnOmp, the Bun installer, also in toolchain ensure bun, the tidy apply tool calls, the chained sync CLI, and the update children git pull --ff-only, bun install --frozen-lockfile, and the global package install) then wait for that exit with no deadline before their scope, and any lock scope above it, closes; a failed kill keeps waiting, so no lock releases while the writer runs, and the recorded signal still decides the exit code. The read-only children (the capture and captureWithin probes, the tidy report reads, the nudge rev-list, and update's git status --porcelain, which runs with --no-optional-locks, as tidy's git calls do, so it writes no index) and one delegated exception, the nudge git fetch at its 4 s deadline only (it writes refs; on an interrupt it follows the writer rule), resolve after the kill with no wait: they dispose of the pipes and unref() a still-live child, as the base did, so the CLI can exit; a failed kill of a live one is a typed cleanup failure that captureWithin maps to timed-out (toolchain check prints unknown) and the nudge prints before sync proceeds. The nudge's deadline return is an intentional Windows change: the base spawnSync waited for the direct process. The base exec.test.ts tree assertion runs on POSIX only; on Windows that case holds back the direct child's exit notification until the deadline result and partial output are asserted, then observes exit. Descendants and an unkillable no-wait child are known limits. Pre-mortem: a Windows wrapper leaves a writer running; guard: none beyond the base (ownership table). Choice: (a). Rejected: (b) for the PID reuse or a blocked runtime, (c) for native code.
  • D3, the bounded runner (delegated):
    • Question: how tidy runs its tasks after the move.
    • Options: (a) Effect.forEach with concurrency; (b) one Effect runner that keeps the current admission rule, with task failures as runner state while started tasks finish, then the failure with the lowest index in the error channel.
    • Evidence: the first comment on this issue, and the Effect.forEach source above.
    • Failure modes: (a) an interrupted check can leave a half-written report entry; (b) one more small module to keep.
    • Reversibility: inside Move tidy to Effect #295.
    • Durability: (b) keeps one runner. A task failure drains the started tasks; a caller interrupt is a separate path that interrupts every task, which stops a bridged probe only when it settles, until Move the process layer, the file helpers, and the kit store to Effect #297 makes the probes interruptible.
    • Pre-mortem: a later edit swaps in Effect.forEach. Guard: the test that the comment specifies, with explicit synchronization, in cli/test/unit/syncConcurrency.test.ts, where Move tidy to Effect #295 moves the current runner cases from engine-di.test.ts.
    • Choice: (b). Rejected: (a).
  • D4, the kit store (delegated): kitDb.ts keeps node:sqlite behind Effect.try with typed errors, and each open handle is a scoped resource. kitLock.ts stays the node:-only module of synchronous lock primitives (tryAcquireKitLock, releaseKitLock, preparePrivateLockDirectory) that cli/AGENTS.md and .agents/skills/tidy-context/SKILL.md require, and it keeps its BEGIN IMMEDIATE transaction and its busy handling. The Effect lock scopes exist: syncDispatch.ts scopedKitLock (acquireRelease with an Effect.sleep poll and the three policies SYNC_HOME_POLL, SYNC_FOLDER_POLL, and the tier-toggle poll, beside homeAndFolderLocks), which sync and the tier toggles use, and the one-shot tryAcquireKitLock inside Effect.acquireRelease of cli/src/commands/tidy.ts, which prints its held message on contention without a poll. Move the process layer, the file helpers, and the kit store to Effect #297 deletes the unused Promise poll acquireKitLock, keeps both scopes and the tidy one-shot behavior, and keeps the Effect.sleep loop rather than a Schedule; syncLock.test.ts covers the sync-home and tier-toggle deadlines and folder contention. The racer and holder fixtures of cli/test/unit/kitLock.test.ts load kitLock.ts by file URL in other processes and call acquireKitLock; Move the process layer, the file helpers, and the kit store to Effect #297 moves them to tryAcquireKitLock with their own retry, so the separate-process checks stay. Rejected: a new @effect/sql dependency, which adds an install surface and a manifest pin for two tables; rejected: bun:sqlite, which the Node-hosted Vitest run cannot import; rejected: Effect imports in kitLock.ts, which the node:-only rule of cli/AGENTS.md forbids.
  • D5, intended aborts (delegated, one line): Move the engine seam and the sync orchestration to Effect #294 moves each intended abort (usage, help, validation) to a typed failure in the error channel that the CLI boundary turns into its exit code, and updates the ExitError rules of the two skills and references/dispatch-flow.md in the same pull request. Rejected: renaming ExitError and keeping the throw.

Steps

# Id Task Files Depends Effect Status Done when
1 seam Move the engine seam and the sync orchestration to Effect - - local done child #294 finished
2 tidy Move tidy to Effect - 1 local done child #295 finished
3 passes Move the omp passes to Effect - 2 local done child #296 finished
4 toolchain Move the toolchain passes to Effect - 3 local done child #298 finished
5 leaves Move the process layer, the file helpers, and the kit store to Effect - 4 local planned child #297 finished

Acceptance

Each scan runs from the repository root after the last child and names the source set: cli/src without cli/src/generated, whose payload embeds documentation text.

ID Command Expected
runs git grep -nE -e 'Effect\.run[A-Za-z]*\(' -- cli/src ':!cli/src/generated' Exit 0; matches only in cli/src/main.ts and in baseBlobSync of cli/src/plan/checkout.ts
bridges git grep -nE -e 'Effect\.promise\(' -e 'Effect\.tryPromise\(' -e 'Effect\.try\(' -e 'Effect\.uninterruptible\(' -e 'Effect\.uninterruptibleMask\(' -- cli/src/engine-native cli/src/engine.ts cli/src/main.ts cli/src/commands cli/src/skills/kitGate.ts cli/src/kitHome.ts No Effect.promise; no Effect.uninterruptible bridge (only three regions are allowed, by name: the mutationRegion definition of signalGuard.ts, the cleanup region of the Bun bootstrap in bun.ts, and the SQLite transaction region of kitDb.ts; no mask covers all of applyTidy); each other match wraps a runtime or third-party call (node: modules that FileSystem lacks, node:sqlite, the synchronous primitives of kitLock.ts (D4), fetch, a Bun API, or a package), and the #297 Verification Results list each match with its callee; no match wraps runEngineNative, planTidy, applyTidy, acquireKitLock, buildTidyReport, createScratchDir, replaceFile, or another export of cli/src/engine-native, apart from tryAcquireKitLock, releaseKitLock, and preparePrivateLockDirectory (D4)
promises git grep -nE -e '^[[:space:]]*([^/*[:space:]].*)?Promise<' -e '^[[:space:]]*([^/*[:space:]].*)?async function' -e '^[[:space:]]*([^/*[:space:]].*)?async \(' -- cli/src/engine-native ':!cli/src/engine-native/sharedTypes.d.ts' Exit 1, no match outside comments; sharedTypes.d.ts keeps the FetchLike type of the injected fetch
throws git grep -nE -e '^[[:space:]]*([^/*[:space:]].*)?\bthrow\b' -e '^[[:space:]]*([^/*[:space:]].*)?process\.exit' -- cli/src/engine-native ':!cli/src/engine-native/kitLock.ts' Exit 1, no match outside comments: each failure is in the error channel; kitLock.ts keeps its node:-only primitives (D4)
kithome bun x --no-install vitest run --reporter=verbose cli/test/unit/kitHome.test.ts Exit 0, with a case that provides a recording FileSystem layer and shows that both manifest reads of the resolver go through it, and a case where a failing read gives the resolver's current diagnostic (#297)
logger bun x --no-install vitest run --reporter=verbose cli/test/unit/logger.test.ts Exit 0, with a case where an asynchronous write error that is not EPIPE reaches the typed error channel of the run, and one where EPIPE is ignored (#297)
signal-order bun x --no-install vitest run --reporter=verbose cli/test/unit/syncSignals.test.ts Exit 0; on Linux and macOS, in both channels, with an agent folder and a data root that resolve to different folders and a writing stub child that cannot finish on its own: after one signal to the CLI process, the CLI stops the child with a catchable signal; the stub acknowledges that stop request and waits at a test barrier, and while it waits a same-home sync finds the home lock held, and syncs of other homes find the agent-folder lock and the data-root lock held, each checked on its own; the test then opens the barrier, the stub finishes its shutdown, and the CLI exits within the test bound, with no kill from the test on the passing path; after that, each competitor takes its lock; in a second case a wrapper stub exits on the first signal while its writer child ignores it, and the CLI kills the group after the grace period; no lock is free while any process of the group runs, with no help from the test; the channel exit codes stay (#297 extends the #294 cases)
scratch-caller git grep -n -e 'createScratchDir(' -- cli/src/plan The one call in cli/src/plan/services.ts yields the Effect of scratch.ts and is not inside fileOperation; the other fileOperation adapters of cli/src/plan/ stay outside this plan
goldens out="$(find . -maxdepth 1 -name '.env*' -print)" && test -z "$out" && env -u DOCKS_KIT_TEST_CLI_ENTRY -u GOLDEN_FILTER sh -c 'bun --no-env-file cli/test/golden-dryrun.ts && bun --no-env-file cli/test/golden-mutation.ts', and in each child, on its reviewed commit, git diff --exit-code --merge-base origin/main HEAD -- cli/test/goldens The scan of the checkout root succeeds (its exit status is checked before its output) and finds no .env* file (the golden CLI children load dotenv; #297 checks its baseline folder the same way); both suites OK with both overrides unset and no .env loaded; each child except #297 records exit 0 for that diff; #297, which bumps the version (AGENTS.md version rule), keeps that diff empty for every golden file but mutation.json, and its goldens-version row requires that file to equal, byte for byte, the one that origin/main produces with only the version changed, its talk bundle built and then its payload generated, every build and golden run as bun --no-env-file with both overrides unset
red-dry bun run golden:dryrun --prove-red Exit 1; prints prove-red OK: golden-dryrun
red-mut bun run golden:mutation --prove-red Exit 1; prints prove-red OK: golden-mutation
runner bun x --no-install vitest run --reporter=verbose cli/test/unit/syncConcurrency.test.ts Exit 0, with the two error-order cases of the first comment
commands bun x --no-install vitest run --reporter=verbose cli/test/unit/tidy.test.ts cli/test/unit/scratch.test.ts cli/test/unit/toolchainOutdated.test.ts Exit 0, with spawned CLI cases in isolated homes that assert: tidy lists a seeded idle scratch folder, and tidy --report prints, inside its Package and tool caches section, the measured entry of a seeded .npm folder on Linux and macOS, and the support notice on Windows (#295); scratch new <label> prints a folder that exists under the scratch root, and scratch remove <that folder> deletes it (#297); toolchain outdated prints the seeded upstream version from a fresh seeded cache with no lookup failed line, while the child gets every proxy variable set to a local listener of the test, NO_PROXY and no_proxy set empty, and the listener records no connection (#298)
types bun run check:types Exit 0, so effect-tsgo reports no unstableApiUsage outside allowedUnstableApis
ci-tools bun cli/scripts/verify-ci-tools.ts Exit 0
smoke bun run smoke:package Exit 0
gate bun run check Exit 0

Do not touch

Open questions

Verification Results

Sub-issues

Sub-issues

4 of 5 Issues completed
Loading 5 sub-issues

Activity

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

    @DocksDocks
    OwnerAuthor

    Josh here. One behavior to preserve before migrating tidy: the existing bounded runner stops taking queued work after the first observed failure, lets already-started work finish, and reports the failure with the lowest input index. I verified both error-order cases against the existing runner. In a separate local probe with the pinned Effect 4.1.7, a direct Effect.forEach replacement with concurrency 2 interrupted the already-running sibling when the other task failed. This is a migration risk, not a bug in the current tidy.

    Acceptance test: Start tasks 0 and 1 with concurrency 2 and leave task 2 queued. Fail task 1 first. Assert task 2 never starts, task 0 is not interrupted, and the caller stays pending. Then fail task 0 and assert its error wins. In the companion case, let task 0 succeed and assert task 1’s error wins. Use explicit synchronization, not sleeps.

    Keep one bounded runner for tidy and its report. Model expected task failures as typed pool state while started workers drain, then emit the selected error through Effect’s error channel. This preserves the distinction between a task failing and the caller explicitly cancelling the operation, without maintaining a second execution path.

  3. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Delegation grant: yolo: "now start #290 please, use yolo, also fix open findings in a follow up"

  4. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 1

    Plan-review: repair

    • goal_fit - Research § Repository facts and D1; Steps seam, tidy, passes, process - The export does not establish an exhaustive, non-overlapping split. cli/src/engine-native/ has 42 files, not 36: 35 at the top level and seven under os/. The four child labels do not assign files such as atomicWrite.ts, errorText.ts, or DESIGN.md, or say who owns the remaining interop in ompFastMode.ts after Handle empty OMP tier sections in the fast toggles #284 - Keep the required parent Files: - cells and record one owner per path in shared Research, identifying files that stay unchanged and files already handled by Handle empty OMP tier sections in the fast toggles #284 - class: missing or inaccurate child ownership inventory
    • goal_fit - D1 options, durability, and choice; Steps seam, tidy, passes, process; Do not touch cli/src/plan/ - The proposed wrappers only bridge Effect callers to legacy callees. In the reverse direction, toolchain.ts:185–196 consumes readCache and writeCache synchronously, so migrating kitDb.ts in Move the omp passes and the kit store to Effect #296 before its Move the process layer, the file helpers, and the kit store to Effect #297 caller either breaks the cache path or requires the second API D1 rejects. In the forward direction, an ompSync wrapper added in syncDispatch.ts:297 by Move the engine seam and the sync orchestration to Effect #294 must be removed from that same file by Move the omp passes and the kit store to Effect #296. plan/services.ts:189 also calls the scratch creator synchronously for plan/checkout.ts:223, and ompFastMode.ts:386 wraps the shared replaceFile even after Handle empty OMP tier sections in the fast toggles #284 - Group incompatible API changes with their callers or put the temporary bridge outside files with exclusive child ownership. Name the child that cuts over each caller, including the narrow plan scratch adapter and the existing tier-write boundary - class: migration order incompatible with caller cutover
    • goal_fit - D1 option (c); D3 durability; Steps seam, tidy, and process - Effect 4.1.7 documents in Effect.ts:1468–1471 that interrupting tryPromise does not stop an operation that ignores its signal. The current syncDispatch.ts:98–107,297–301 holds locks until the Promise pipeline settles, and the tidy probe in tidy.ts:123 awaits a spawn with no cancellation input. Inference: an interrupt after an early child lands can stop the waiting fiber and release its scoped lock while legacy work is still active; interrupting the runner also does not stop that probe before Move the process layer, the file helpers, and the kit store to Effect #297 - Define the interim lifetime rule: migrate cancellation with the protected work, or keep the scope open until admitted legacy work actually settles. Keep D3's drain-on-task-failure rule separate from caller interruption - class: interruptible bridge releases resources before work stops
    • goal_fit - Goal; D2 choice - The Goal still requires ChildProcessSpawner, but D2 selects a kit-owned service in exec.ts. The pinned ChildProcess.CommandOptions lacks the windowsVerbatimArguments option passed by exec.ts:58,145; following the literal Goal with the stock spawner would lose the Windows shim behavior D2 preserves - Update the Goal to name the host-aware kit process service selected by D2 - class: recorded decision contradicts the Goal
    • goal_fit - D2 options and durability; Step process - D2 promises a kill on interrupt but does not resolve the blocking spawn path. commands/sync.ts:20–24 uses exec.ts:60 for the update nudge, and Node's child-process documentation says spawnSync blocks the event loop until the child exits. Wrapping it in an Effect does not let the fiber interrupt an active spawn. The same path calls process.exit(2) directly on an encoding refusal in exec.ts:45–52, bypassing the promised typed error - Specify which calls need cancellable spawning, how any retained synchronous calls are treated, and where the encoding failure is translated back to exit 2 without exiting from the process service - class: process decision leaves a legacy exit and cancellation path unresolved
    • research_gap - Research § Repository facts; D4; Acceptance bounds - Both stores already use node:sqlite, not bun:sqlite (kitDb.ts:7, kitLock.ts:19). Following D4 literally switches drivers. The Bun executor honors Node shebangs, and node_modules/vitest/vitest.mjs:1 has one, so the Node-hosted store and lock tests would import a Bun-only module before reaching their assertions. Bun supports node:sqlite, so no driver switch is needed - Keep node:sqlite, scope its handles, preserve kitLock.ts:57–69 busy handling, and correct the Research and bounds allowlist - class: migration decision assumes the wrong existing runtime API
    • goal_fit - Acceptance runs, bounds, and async; D1 evidence and durability - The raw pipes split the commands into extra table cells under cli/src/plan/records.ts:216–230 and GitHub's table rules. Even recovered from the raw text, the literal spaces in the regex alternatives miss Effect.runSync( in plan/checkout.ts:196 and Effect.tryPromise( in engine.ts:38. The line-oriented async pattern also misses the multiline Promise export at exec.ts:112–116. Finally, runs allows the benchmark bridge in plan/checkout.ts while D1 claims every run is in main.ts; prepare.mjs:90,952 still consumes that bridge - Make the rows valid table cells and check the actual call and export forms, including multiline signatures. State the existing benchmark exception consistently and make each check fail on a violation or a scan error - class: malformed acceptance command misses prohibited code
    • goal_fit - D1 durability; Acceptance bounds - Even with the regex fixed, the try scan excludes cli/src/engine.ts:38–39 and cli/src/plan/services.ts:189, both of which wrap kit functions. Conversely, the broad promise scan includes cli/src/generated/sotPayload.ts:79, which embeds an Effect.promise( documentation example and would still match after all executable bridges were removed - Scan the migrated executable code and its callers, not embedded prose, and check that the known bridges are gone - class: acceptance scans the wrong source set
    • goal_fit - Acceptance exit; Steps seam and process - .agents/skills/engine-native-context/SKILL.md:75–78 and .agents/skills/sync-orchestration-context/SKILL.md:86–104 require ExitError for intentional aborts. The row instead requires deleting the class and would pass if the same thrown exception in parseArgs.ts:24–27 were merely renamed - Migrate intentional aborts to the typed error channel, align both repository instructions with the new contract, and make the row distinguish typed failures from throws rather than testing the class name - class: acceptance checks a name instead of the required error behavior
    • goal_fit - D3 guard; Acceptance runner - The named file does not exist in the checkout. The current drain and failure-order cases live in cli/test/unit/engine-di.test.ts:76–124. Vitest treats the argument as a file filter, so the stated command selects no tests unless Move tidy to Effect #295 explicitly moves them - Point the row at the existing suite or assign the test move to Move tidy to Effect #295 and point the row at its destination - class: acceptance targets a test file no step creates
    • goal_fit - Steps tidy, passes, and process; Acceptance goldens, smoke, and gate - The checked-in CLI runs cover sync and toolchain check, but not the changed tidy, scratch, or store-backed toolchain outdated success paths (golden-dryrun.ts:42–56, package-smoke.ts:44–48). The corresponding unit tests call runTidy, createScratchDir, and outdatedReport directly, so the gate can stay green when a migrated command fails to supply its services or reaches the wrong database - Name end-to-end checks that spawn the real commands in isolated fixtures and assert the tidy result, scratch creation/removal, and a successful cache-backed outdated report - class: changed CLI operation lacks end-to-end acceptance
    • goal_fit - Acceptance goldens and gate - Root AGENTS.md:71 requires prove-red, and .agents/skills/engine-native-context/SKILL.md:61–67 specifies the observable result. package.json:36–48 runs only normal golden modes; a harness that silently stops detecting planted mismatches could still pass every listed row - Record both prove-red invocations with prove-red OK and exit 1, using the existing CI checks as the command reference - class: required repository verification missing from Acceptance
    • research_gap - Research § Effect 4.1.7 facts and Tool facts; Acceptance ci-tools, runs, bounds, async, exit, and goldens - verify-ci-tools.ts:92–106 proves plain type errors, globalErrorInEffectFailure, and floatingEffect, not unstableApiUsage; it can exit 0 without proving the claimed allowlist behavior. The plan also omits Git and grep versions despite relying on their flags and the v5 contract requiring versions for external Acceptance programs - Cite the pinned Effect diagnostic configuration and the actual check:types gate for allowlist enforcement. Record the Git and grep versions used by the runnable Acceptance commands, or remove those tool dependencies - class: Acceptance tool behavior lacks the recorded evidence it relies on
  5. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 2, delta

    Plan-review: repair

    • goal_fit - Research, File owners #294 seam and #297 leaves - The engine files are assigned, but their caller cutovers are not. cli/src/main.ts:44–47 awaits runEngineNative as a Promise and passes the result to process.exit. After Move the engine seam and the sync orchestration to Effect #294 makes it an Effect, the raw golden channel will not run it as written. cli/src/services.ts:27–32 also constructs the existing factory for the public CLI; the new layers need an owner at that entry. At the other end, cli/src/skills/kitGate.ts:222–225 uses exec.ts:306–341's synchronous filesystem-backed which under Node; changing which to an Effect without changing that caller breaks the report-section check. - Assign the raw entry and affected live-layer wiring to Move the engine seam and the sync orchestration to Effect #294. Assign the which caller cutover to Move the process layer, the file helpers, and the kit store to Effect #297 or explicitly delimit and justify a retained synchronous lookup outside the engine. - class: missing or inaccurate child ownership inventory
    • goal_fit - Research, File owners #294 seam, #296 passes, and #298 toolchain; D1 bridge rule; Steps seam, passes, and toolchain - D1 forbids converting a callee before its legacy callers, but Move the engine seam and the sync orchestration to Effect #294 owns the dependency service whose Promise-returning path and version are still awaited by Move the toolchain passes to Effect #298's bun.ts:73,110–117 and toolchain.ts:58. Its synchronous probe is also consumed by Move the omp passes and the kit store to Effect #296's ompPlugins.ts:311–321. Inference: converting those methods in Move the engine seam and the sync orchestration to Effect #294 leaves legacy callers reading Effect values as paths, versions, or probe results; keeping both APIs contradicts D1. - Separate Move the engine seam and the sync orchestration to Effect #294's layer setup from the dependency-method cutover. Move each method and its remaining legacy callers together, with Move the toolchain passes to Effect #298 owning the toolchain-facing service edits. - class: migration order incompatible with caller cutover
    • goal_fit - Goal; Research, File owners #296 passes and #297 leaves - ompPaths.ts is marked plain, but ompPaths.ts:97,108–122 uses existsSync to choose the XDG data root. ompSync.ts:45–50,90–104 uses that result to select and recheck the locked root, and commands/root.ts:123 calls the same resolver. Leaving the probe plain misses the FileSystem goal; dropping it can send a sync to the config root even when the XDG root exists. The project skill also explicitly names existsSync at .agents/skills/omp-sync-context/SKILL.md:77. - Keep pure path calculations plain, migrate the existence probe to FileSystem with the same fallback behavior, and assign the caller and skill cutovers together. - class: effectful filesystem operation classified as pure
    • goal_fit - Goal; Research D2 durability; Do not touch, exit codes - D2 maps every host-encoding refusal to exit 2. Today only spawnHost exits 2 there (exec.ts:45–52); spawnProcess returns the refusal to its caller (exec.ts:135–150). For example, if the Windows shim cannot encode the kit directory passed to omp plugin link, ompPlugins.ts:146–153,376–378 records the failed operation and syncDispatch.ts:318–319 returns 1. D2 would turn that same failed sync into exit 2. - Keep the refusal typed in the service and map it at each caller to its existing outcome, including the plugin failure ledger and the legacy synchronous exit-2 cases. - class: unified error mapping changes an existing exit code
    • goal_fit - Research D5 and File owners #294 seam and #297 leaves; Steps seam and leaves - Move the engine seam and the sync orchestration to Effect #294 removes thrown ExitError, but both .agents/skills/engine-native-context/SKILL.md:75–78 and .agents/skills/sync-orchestration-context/SKILL.md:86–104,175–181 still require it until Move the process layer, the file helpers, and the kit store to Effect #297. The latter skill's references/dispatch-flow.md:51–80 is unassigned and would still direct agents to the old lock/rethrow path; lines 43–46 also direct them to spawnHost after the nudge moves. - Land the abort and dispatch instruction changes with Move the engine seam and the sync orchestration to Effect #294 and the nudge instruction change with Move the process layer, the file helpers, and the kit store to Effect #297. Assign the referenced file as well as the skill bodies. - class: migration leaves active instructions on the replaced path
    • goal_fit - Research D1 durability; Acceptance bridges; Do not touch cli/src/plan/ - Excluding generated code fixes one false match, but the all-cli/src rule still rejects unrelated kit wrappers. agentDocs/agentFirstCheck.ts:749–753 wraps local ompAgent, agentDocs/services.ts:110–113 wraps local runGit, and plan/types.ts:59–71 wraps local refusal-producing code. A complete engine migration leaves those matches intact, and fixing the last one would violate Do not touch. - Check engine migration bridges in the engine and its affected callers, including the scratch adapter, without treating unrelated typed adapters as migration residue. - class: acceptance scans the wrong source set
    • goal_fit - Acceptance promises and throws - The scans reject text that is not a legacy engine operation. ompPaths.ts:42 contains throw only in a comment, and sharedTypes.d.ts:12 declares the Promise signature of an injected fetch, a foreign boundary that bridges allows. A migration that removes engine-owned Promises and throws can still fail both rows. - Check executable throws and engine-owned async APIs, distinguishing comments and permitted foreign signatures from the behavior being removed. - class: acceptance text scan mistakes non-executable text for prohibited behavior
    • goal_fit - Acceptance commands - The row now names real CLI invocations but still expects only the test runner to exit 0 and list the cases. That does not establish the tidy plan or report output (commands/tidy.ts:49–73,118–122), that scratch new created the printed path or scratch remove deleted it (commands/scratch.ts:33–37,52–55), or that toolchain outdated read the seeded version. toolchain.ts:221–236 returns 0 even when it prints lookup failed, so a broken cache path can pass an exit-only case. - Name the outputs and filesystem results the existing commands row must assert, including the seeded version in the report and no upstream request. - class: changed CLI operation lacks end-to-end acceptance
    • goal_fit - Acceptance red, types, and gate - red expects two exit statuses, but a POSIX sequential command list returns only the last one. If dry-run prints its marker but exits 0, mutation can still supply the expected status 1; .github/workflows/parity.yml:250–259,290–299 captures each status separately. The revision also drops bun cli/scripts/verify-ci-tools.ts, which AGENTS.md:71 requires and neither types nor gate runs (package.json:31,48). - Check each prove-red status and marker independently, and retain the required compiler exit-behavior check separately from the allowlist gate. - class: required repository verification missing from Acceptance
    • research_gap - Research, Effect 4.1.7 facts and Tool facts; Acceptance types - @effect/language-service is the plugin configuration name in cli/tsconfig.json, not a versioned tool entry in bun.lock. The acceptance script actually invokes effect-tsgo (package.json:31), supplied by @effect/tsgo 0.74.1 (bun.lock:14,28). Git now has a version, but the compiler whose diagnostic exit behavior the row relies on still does not. - Record the pinned @effect/tsgo version and distinguish its unstableApiUsage diagnostic from the plugin configuration name. - class: Acceptance tool behavior lacks the recorded evidence it relies on

    Previous findings:

    • Round-1 finding on Research Repository facts and D1; Steps seam, tidy, passes, process: open - repeated above
    • Round-1 finding on D1 options, durability, and choice; Steps seam, tidy, passes, process; Do not touch cli/src/plan/: open - repeated above
    • Round-1 finding on D1 option (c); D3 durability; Steps seam, tidy, and process: resolved - D1 masks interruption until legacy work settles, and D3 distinguishes caller interruption from draining after a task failure.
    • Round-1 finding on Goal; D2 choice: resolved - The Goal now names the host-aware kit service chosen in D2.
    • Round-1 finding on D2 options and durability; Step process: resolved - D2 moves the nudge to asynchronous spawning and removes process exit from the service. Its new blanket exit mapping is a separate finding above.
    • Round-1 finding on Research Repository facts; D4; Acceptance bounds: resolved - Research, D4, and bridges now agree on node:sqlite, and D4 preserves busy handling.
    • Round-1 finding on Acceptance runs, bounds, and async; D1 evidence and durability: resolved - The replacement rows avoid raw pipes and padded alternatives, find multiline Promise signatures, and consistently retain the benchmark runner exception. New false matches are listed above.
    • Round-1 finding on D1 durability; Acceptance bounds: open - repeated above
    • Round-1 finding on Acceptance exit; Steps seam and process: open - D5 and throws no longer rely on a class name, but the instruction cutover still trails the implementation, as repeated above.
    • Round-1 finding on D3 guard; Acceptance runner: resolved - D3 assigns the test move to Move tidy to Effect #295 and runner targets the destination.
    • Round-1 finding on Steps tidy, passes, and process; Acceptance goldens, smoke, and gate: open - repeated above
    • Round-1 finding on Acceptance goldens and gate: open - repeated above
    • Round-1 finding on Research Effect 4.1.7 facts and Tool facts; Acceptance ci-tools, runs, bounds, async, exit, and goldens: open - repeated above

    Manager response to round 1

    Repaired:

    • Ownership inventory: Research now counts 42 files (35 at the top level, 7 under os/) and has a File owners table that gives each path one owner child, marks the plain modules, and assigns ompFastMode.ts (its replaceFile bridge), errorText.ts, DESIGN.md, and the outside callers.
    • Caller cutover: D1 now has a bridge rule. A converted callee ships only with or after all its callers, so kitDb.ts moves in Move the process layer, the file helpers, and the kit store to Effect #297 after toolchain.ts (Move the toolchain passes to Effect #298). The child that owns a callee removes the bridges at every caller, also in files of earlier children. The createScratchDir call in cli/src/plan/services.ts and the replaceFile bridge in ompFastMode.ts belong to Move the process layer, the file helpers, and the kit store to Effect #297. A new child Move the toolchain passes to Effect #298 holds the toolchain passes, and the order is Move the engine seam and the sync orchestration to Effect #294, Move tidy to Effect #295, Move the omp passes and the kit store to Effect #296, Move the toolchain passes to Effect #298, Move the process layer, the file helpers, and the kit store to Effect #297.
    • Interrupts through bridges: each bridge is Effect.uninterruptible around Effect.try or Effect.tryPromise, so an interrupt waits until the legacy work settles and no scope closes under it. D3 now separates the drain on a task failure from a caller interrupt.
    • Goal: names the host-aware kit process service of D2.
    • Blocking spawns and the direct exit: D2 requires an asynchronous, interruptible spawn for every call from Effect code (the update nudge included) and a typed refusal for an argument the host cannot encode, turned into exit 2 at the CLI boundary.
    • Store driver: D4 and the facts now say node:sqlite, keep it, and keep the busy handling.
    • Acceptance commands: every scan is a git grep -nE with one -e per pattern and no pipe character, over cli/src without cli/src/generated. The promises row matches Promise< anywhere, which covers multiline signatures. The runs row and the facts both state the baseBlobSync exception.
    • Bridge scan source set: the bridges row scans all of cli/src and names the known bridges that must be gone, runEngineNative and createScratchDir included.
    • ExitError: the throws row checks for any throw or process.exit in cli/src/engine-native; D5 moves intended aborts to typed failures and assigns the skill updates to Move the process layer, the file helpers, and the kit store to Effect #297.
    • Runner test file: D3 says that Move tidy to Effect #295 moves the runner cases from engine-di.test.ts to cli/test/unit/syncConcurrency.test.ts; the Move tidy to Effect #295 Goal says it too.
    • End-to-end checks: the new commands row requires spawned CLI cases for tidy, tidy --report, scratch new, scratch remove, and a cache-backed toolchain outdated, each with its owner child.
    • Prove-red: the new red row runs both --prove-red modes, as .github/workflows/parity.yml does.
    • Tool evidence: the facts now cite bun run check:types for the allowlist and say what verify-ci-tools.ts proves; the types row runs it; Git 2.53.0 is recorded, and the scans use only git grep.

    Rejected: none.

    Redesigned: none.

  6. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 3, delta

    Plan-review: repair

    • goal_fit - Research, File owners #294 seam and #298 toolchain; Acceptance promises - Move the engine seam and the sync orchestration to Effect #294 keeps every dependency method in its current shape, but Move the toolchain passes to Effect #298's list omits versionReading. cli/src/engine-native/services.ts:30,69 still declares and implements it as a Promise API. If the children follow the listed split, the unowned method remains and promises fails. - Assign removal of the unused versionReading service method and its test doubles to Move the toolchain passes to Effect #298. - class: missing or inaccurate child ownership inventory
    • goal_fit - Research, Repository facts on host refusals and D2 durability; Do not touch, exit codes - The spawnProcess branch still assigns one outcome to callers that handle refusals differently. Inference: on Windows, with an omp.cmd in a directory containing % and no git, os/windows.ts:45–61,77–79 refuses the inventory spawn. Today ompPlugins.ts:65–67,346–359 warns and returns without a ledger entry, so syncDispatch.ts:318–319 returns 0 if nothing else failed. Applying D2's failed-operation mapping would return 1. - Preserve each caller's existing handling: warn-only inventory failures stay warn-only, failed mutations enter the ledger, and former spawnHost refusals still exit 2. - class: unified error mapping changes an existing exit code
    • goal_fit - Research D1 bridge rule, D4, and File owners #297 leaves - D4 moves SQLite access in kitLock.ts behind Effect.try, but cli/AGENTS.md:24 requires node: imports only and .agents/skills/tidy-context/SKILL.md:73 repeats that rule. If Move the process layer, the file helpers, and the kit store to Effect #297 imports Effect in kitLock.ts without updating those instructions, the migration violates the repository rule. Wrapping the old lock API at callers instead would leave the bridge D1 requires Move the process layer, the file helpers, and the kit store to Effect #297 to remove. - Assign both lock-instruction updates to Move the process layer, the file helpers, and the kit store to Effect #297 and keep the SQLite transaction and separate-process lock checks. - class: migration leaves active instructions on the replaced path
    • goal_fit - Research D1 durability; Acceptance bridges; Do not touch cli/src/plan/ - The narrowed scan still includes cli/src/plan/services.ts:93–97. Its fileOperation adapter remains after the scratch cutover: unrelated callers at lines 184–195 use it for operations such as reading and removing files, which Effect already provides in node_modules/effect/src/FileSystem.ts:300–334. A complete migration thus still prints a match that the row disallows, and rewriting those callers would violate Do not touch. - Scope the plan-side check to the scratch call and its adapter path. Leave unrelated plan filesystem adapters outside the migration criterion. - class: acceptance scans the wrong source set
    • goal_fit - Acceptance commands, tidy --report - Section headings can still print when their builders fail. cli/src/engine-native/tidyReport.ts:461–470 keeps the title and replaces the content with unavailable: …; cli/src/commands/tidy.ts:118–121 prints the heading either way. A broken report probe can therefore pass a heading-only assertion. Windows returns only the support notice (tidyReport.ts:482–484), and Windows CI runs the unit suite (.github/workflows/parity.yml:109–126). - Require a report value produced by the fixture on supported hosts and preserve the Windows support notice. - class: end-to-end assertion accepts fallback output as success
    • goal_fit - Acceptance commands, toolchain outdated - An isolated home does not isolate the proxy environment. The existing spawn helper inherits variables unless overridden (cli/test/lib/goldenResources.ts:342–349), and Bun fetch honors NO_PROXY and no_proxy even when proxies are set. Inference: with NO_PROXY=*, a cache-read regression can take cli/src/engine-native/toolchain.ts:183–193 to the real GitHub API instead of failing locally. - Make the spawned case offline even when the parent has proxy bypasses configured. Keep the seeded-version and no-lookup failed assertions. - class: acceptance isolation leaves a network bypass
    • goal_fit - Acceptance goldens - Copying git diff --exit-code <merge base> -- cli/test/goldens into a shell does not compare revisions. POSIX shell redirection treats the angle brackets as redirections, so even an unchanged child cannot get the expected result from the command as written. - Use an executable comparison against each child's target branch, such as git diff --exit-code --merge-base origin/main HEAD -- cli/test/goldens on the reviewed child commit, using Git's documented merge-base form. - class: acceptance command contains an unresolved revision placeholder

    Previous findings:

    • Round-2 finding on Research, File owners #294 seam and #297 leaves: open - the raw entry, live-layer wiring, and which caller now have owners; the remaining ownership omission is repeated above.
    • Round-2 finding on Research, File owners #294 seam, #296 passes, and #298 toolchain; D1 bridge rule; Steps seam, passes, and toolchain: resolved - Move the engine seam and the sync orchestration to Effect #294 retains existing method shapes, and Move the toolchain passes to Effect #298 owns the cutover of path, version, and probe and their callers, including the plugin probe.
    • Round-2 finding on Goal; Research, File owners #296 passes and #297 leaves: resolved - Move the omp passes and the kit store to Effect #296 owns the FileSystem probe, unchanged fallback, root caller, and corresponding skill rule.
    • Round-2 finding on Goal; Research D2 durability; Do not touch, exit codes: open - the two original spawn paths are distinguished, but the spawnProcess mapping still changes the warn-only inventory outcome.
    • Round-2 finding on Research D5 and File owners #294 seam and #297 leaves; Steps seam and leaves: open - abort, dispatch, and nudge instructions now have owners at the right steps; the lock-instruction instances are repeated above.
    • Round-2 finding on Research D1 durability; Acceptance bridges; Do not touch cli/src/plan/: open - the scan excludes the earlier unrelated files but still rejects preserved plan filesystem adapters.
    • Round-2 finding on Acceptance promises and throws: resolved - the new patterns skip the cited comment, and promises excludes the injected FetchLike declaration.
    • Round-2 finding on Acceptance commands: open - scratch and cache output assertions are now explicit; the report assertion and offline isolation still have the defects above.
    • Round-2 finding on Acceptance red, types, and gate: resolved - separate red-dry and red-mut rows require the status and marker independently, and ci-tools restores the compiler exit-behavior check.
    • Round-2 finding on Research, Effect 4.1.7 facts and Tool facts; Acceptance types: resolved - Research names the pinned @effect/tsgo 0.74.1 binary and distinguishes its unstableApiUsage diagnostic from the plugin configuration entry.

    Manager response to round 2

    Repaired:

    • Caller ownership: Move the engine seam and the sync orchestration to Effect #294 owns the raw golden channel in cli/src/main.ts and the live-layer wiring in cli/src/services.ts; Move the process layer, the file helpers, and the kit store to Effect #297 owns the which call in cli/src/skills/kitGate.ts. Research lists these callers.
    • Dependency methods: Move the engine seam and the sync orchestration to Effect #294 builds the layers and keeps each dependency method in its current shape; Move the toolchain passes to Effect #298 owns path, version, and probe and their callers, also the probe call in ompPlugins.ts (a bridge in Move the omp passes and the kit store to Effect #296 until Move the toolchain passes to Effect #298).
    • ompPaths.ts: the path math stays plain; Move the omp passes and the kit store to Effect #296 moves the XDG existence probe to FileSystem with the same fallback, edits the ompPaths call in commands/root.ts, and updates the existsSync rule of omp-sync-context. The bridge rule now says that the callee's child edits each plain call site in any file.
    • Encoding refusal: D2 now keeps the refusal typed in the service and maps it at each caller to its current outcome: exit 2 for a former spawnHost caller, a recorded failed operation (sync exit 1) for a spawnProcess caller.
    • Skill instructions: each child updates the rules of the code it moves in the same pull request. Move the engine seam and the sync orchestration to Effect #294 owns the ExitError and dispatch rules of both skills and references/dispatch-flow.md; Move the process layer, the file helpers, and the kit store to Effect #297 owns its nudge lines and host-platform-context.
    • Bridge scan scope: the bridges row now scans the engine and its callers only (cli/src/engine-native, engine.ts, main.ts, commands, plan/services.ts, skills/kitGate.ts) and rejects any wrap of an engine-native export.
    • Comments and foreign signatures: the promises and throws patterns skip comment lines, and promises excludes sharedTypes.d.ts, which keeps the injected fetch type.
    • commands row: it now names the output and file results: the seeded scratch folder in tidy, the report sections, the created and removed scratch folder, and the seeded upstream version with no lookup failed line while every proxy variable names a closed local port.
    • Prove-red: red-dry and red-mut are separate rows, each with exit 1 and its marker; ci-tools (bun cli/scripts/verify-ci-tools.ts) is back.
    • effect-tsgo: Tool facts record @effect/tsgo 0.74.1, and the facts say that effect-tsgo reports unstableApiUsage under the @effect/language-service plugin entry.
    • Goldens row: it now compares each child with its own merge base, so an unrelated release bump on main does not fail it.

    Rejected: none.

    Redesigned: none.

  7. 10 remaining items

  8. added a commit that references this issue on Dec 2, 2026
  9. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Parent edits after the plan pass (for child #297): D4 lock scope, bridges row regions, and the goldens release exception.

    Plan review of the parent edit (#290)

    Plan-review: repair

    • research_gap - Research D4, “every production caller uses” scopedKitLock - That scope serves sync and the tier toggles. tidy --apply instead takes tidy-lock.db with one non-waiting tryAcquireKitLock inside its own Effect.acquireRelease (cli/src/commands/tidy.ts:109–155). On contention, tidy prints its held message and returns without entering the sync poll - Name both existing scopes and state that deleting acquireKitLock preserves tidy’s one-shot behavior - class: production caller attributed to the wrong lock scope
    • research_gap - Research D4, “syncLock.test.ts pins its three deadline variants” - The deadline tests hold the home lock and exercise the sync-home and tier-toggle polls (cli/test/unit/syncLock.test.ts:730–779). The shared-folder contention test holds the lock throughout (cli/test/unit/syncLock.test.ts:376–392), so it would still pass if the folder deadline incorrectly started before preparation, contrary to SYNC_FOLDER_POLL (cli/src/engine-native/syncDispatch.ts:117–123,154–163) - Keep the existing loop, cite the implementation for all three policies, and describe the two deadline cases the tests actually cover - class: test coverage overstated as decision evidence
    • goal_fit - Acceptance bridges - The scan matches Effect.uninterruptible( but not Effect.uninterruptibleMask(, which Move the process layer, the file helpers, and the kit store to Effect #297’s Bun bootstrap and kit-store decisions both use. The row therefore cannot audit its named Bun exception or catch the same mask around all of applyTidy, which Move the process layer, the file helpers, and the kit store to Effect #297 requires to remain interruptible outside the started mutations and log step - Scan both forms and allow only the named mutationRegion, Bun cleanup, and SQLite transaction regions in Move the engine-native layer to Effect #290 and Move the process layer, the file helpers, and the kit store to Effect #297 - class: named exception outside the acceptance scan
    • goal_fit - Acceptance goldens and Do not touch, “the deployed bytes” - Move the process layer, the file helpers, and the kit store to Effect #297’s release-preparation commit changes the two allowed digests, but the parent still requires exit 0 from the unfiltered diff. Git’s --exit-code documentation says that diff exits 1 for any change. The digest changes also reflect changes to the deployed files themselves: cli/src/engine-native/ompKitPlugin.ts:130–145 stamps the manifest version, and cli/talk/extension.ts:18,79–80 embeds it in the talk bundle - Keep the zero-diff check for other children, give Move the process layer, the file helpers, and the kit store to Effect #297 a check that rejects every golden change outside the two version-derived digest entries, and mirror that narrow exception in Do not touch - class: release exception contradicts the acceptance command and byte freeze

    Previous findings:

    None open.

    Manager response

    Repaired:

    • D4 names both lock scopes: scopedKitLock with its three policies for sync and the tier toggles, and the one-shot tryAcquireKitLock scope of tidy --apply, whose held message stays; the test coverage is stated as it is.
    • bridges row: scans Effect.uninterruptibleMask( too and allows only three named regions (mutationRegion, the Bun bootstrap cleanup region, the kitDb.ts transaction region); no mask covers all of applyTidy.
    • goldens row: keeps the zero-diff check for the other children; Move the process layer, the file helpers, and the kit store to Effect #297 runs its own row that fails on any golden change outside the two version-derived digest entries; Do not touch names the same narrow exception for the deployed bytes.
  10. added a commit that references this issue on Dec 2, 2026
  11. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 2

    Plan-review: repair

    Previous findings:

    • Round-1 finding on Research D4, lock callers: resolved - D4 names the sync and tier-toggle poll separately from tidy’s one-shot scope and preserves tidy’s held message.
    • Round-1 finding on Research D4, deadline coverage: resolved - D4 names all three implementation policies and distinguishes the two tested deadlines from folder contention.
    • Round-1 finding on Acceptance bridges: resolved - The scan includes both interruption APIs, allows only the three named regions, and forbids a mask around all of applyTidy.
    • Round-1 finding on Acceptance goldens and Do not touch: open - The deployed-byte exception is now explicit, but Move the process layer, the file helpers, and the kit store to Effect #297’s delegated check still does not enforce it; repeated above.

    Manager response

    Repaired:

  12. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 3

    Plan-review: repair

    • goal_fit - Acceptance goldens, Move the process layer, the file helpers, and the kit store to Effect #297’s delegated check - The directory diff now catches added files, but the JSON replacer drops either allowed key at any depth. Inference: adding a top-level .docks-kit/omp-plugin/package.json property passes both the comparison and the suites. The real digest belongs under cases[case].tree (cli/test/goldens/mutation.json:2-29), and the runner reads only goldens.cases (cli/test/golden-mutation.ts:478-497) - Compare the committed snapshot with only the existing digest values at their exact tree paths masked, and keep the directory and mode checks - class: release exception not enforced by the delegated acceptance command
    • goal_fit - Research D2, Durability and amendment - The amendment says to signal only the direct child without limiting that rule to POSIX. On Windows, update can run npm.cmd through cmd.exe (cli/src/commands/update.ts:276-286, cli/src/engine-native/os/windows.ts:78-99). Direct termination can leave npm running, while D2 Durability and Move the process layer, the file helpers, and the kit store to Effect #297 require tree-first termination - Make shared-group signaling explicitly POSIX-only and retain the Windows tree-first rule - class: platform exception conflicts with the shutdown contract
    • research_gap - Research D2 amendment, “a chained sync CLI stops its own children before the outer CLI sees its exit” - update runs the installed package’s own entry and explicitly supports older entries (cli/src/commands/update.ts:47-50,312-322, cli/test/unit/update.test.ts:354-362). Inference: if that entry predates Move the process layer, the file helpers, and the kit store to Effect #297, a forwarded SIGTERM can hard-exit the inner CLI and release its locks while an unbounded omp child continues (cli/src/engine-native/signalGuard.ts:34-54, cli/src/engine-native/ompChild.ts:23-30, cli/src/engine-native/exec.ts:183-225) - Limit the shutdown guarantee to chained versions that implement scoped child cleanup and define the behavior for older versions in both plans - class: shutdown guarantee assumes an independently installed child implements the new protocol

    Previous findings:

    • Round-2 finding on Acceptance goldens: open - The repair checks the whole directory, but the digest exemption still admits changes outside the two approved fields; repeated above.

    Manager response

    Repaired:

  13. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 4

    Plan-review: repair

    • goal_fit - Research D2, Durability and amendment (Move the engine-native layer to Effect #290:62,64); Move the process layer, the file helpers, and the kit store to Effect #297 Process service, Durability - D2 promises Windows tree cleanup on interrupt, but Move the process layer, the file helpers, and the kit store to Effect #297 skips taskkill once the direct child has exited, retaining the guard in cli/src/engine-native/exec.ts:227-245. Node’s close documentation distinguishes child exit from pipe closure. Inference: if a Windows wrapper exits while a grandchild still holds its stdout pipe, interruption skips tree cleanup and the grandchild can survive without a ProcessStopFailed - Keep the PID-reuse guard and record this limit in both plans instead of promising cleanup after the direct child has exited - class: shutdown guarantee exceeds the retained leader-exit guard
    • goal_fit - Research D2 amendment (Move the engine-native layer to Effect #290:64); Move the process layer, the file helpers, and the kit store to Effect #297 Process service, Callers - The amended chained-sync guarantee is qualified by version but not by platform. cli/src/commands/update.ts:35-41,312-322 starts a separate sync CLI. On Windows the planned taskkill /T /F forcibly terminates that CLI as part of the tree, so even a Move the process layer, the file helpers, and the kit store to Effect #297 inner CLI cannot be relied on to run its own cleanup before it exits - Limit cooperative chained shutdown to POSIX in both plans and describe Windows cleanup as the outer updater’s responsibility - class: cooperative shutdown guarantee includes forced termination
    • goal_fit - Acceptance goldens and Do not touch; Move the process layer, the file helpers, and the kit store to Effect #297 delegated goldens row - The revised comparison rejects added keys, but it masks any replacement digest at the allowed manifest path. cli/src/engine-native/ompKitPlugin.ts:133-138 stamps the version and preserves a trailing newline. Inference: if the refactor drops that newline and the release refreshes the manifest digest, the delegated comparison and mutation suite pass. The suite compares against the refreshed digest and parses the manifest, so neither check enforces the version-only exception (cli/test/golden-mutation.ts:155-162,374-381,478-497) - Check the manifest digest against the base manifest rendered with only the new version substituted, and retain the directory, mode, and exact-path checks - class: golden exception checks digest location but not the authorized byte change

    Previous findings:

    Manager response

    Repairs of the parent edit review, round 4

    Rejected:

    None.

  14. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 5

    Plan-review: repair

    • security_risk - Research D2, Windows tree stop (Move the engine-native layer to Effect #290:64–65); Move the process layer, the file helpers, and the kit store to Effect #297 Windows tree stop, Durability - The claim that the PID-reuse risk is “no worse than the base” is false for unbounded children. The base calls killProcessTree only for bounded children (cli/src/engine-native/exec.ts:177–199,218–245); the chained sync uses a synchronous spawn with no timeout (cli/src/commands/update.ts:35–41). The amendment extends forced termination by numeric PID to that caller. Inference: if the child exits after the guard and Windows reuses its PID before taskkill resolves it, the updater can terminate an unrelated process where the base would not call taskkill - Require a stop tied to verified process ownership before extending Windows tree termination to unbounded callers. If the design stays native-free and cannot guarantee ownership, keep the narrower Windows behavior and state the limit in both plans - class: PID-only forced termination expanded to previously unaffected callers
    • goal_fit - Acceptance goldens and Do not touch (Move the engine-native layer to Effect #290:102,114); Move the process layer, the file helpers, and the kit store to Effect #297 Research Version and Do not touch - AGENTS.md:52–53 requires a package.json bump for user-visible behavior changes and payload regeneration after the bump. Move the process layer, the file helpers, and the kit store to Effect #297 explicitly calls the new interrupt behavior user-visible but defers the bump to a later release. Inference: the checkout runs the changed code immediately (docks-kit:100) while still reporting the old version (cli/src/main.ts:74). A compliant bump also changes the deployed manifest bytes that the restored golden guard forbids (cli/src/engine-native/ompKitPlugin.ts:133–138, cli/test/goldens/mutation.json:29) - Keep publication separate, but land the required bump and regenerated payload with the behavior change. Permit only golden differences derived from that bump and reject all others - class: required version bump deferred past a user-visible change

    Previous findings:

    Manager response

    Repairs of the parent edit review, round 5

    • PID-reuse risk extended to unbounded children (Redesigned): the D2 Durability now refers to a new "Windows stop" amendment with a full deliberation record. On an interrupt, a Windows child is ended only through its own process handle. taskkill.exe /T /F runs only at the timeout of a bounded child, under the base exit guard of killProcessTree, and is bounded to 5 s; a missing helper, a failing one, or one that runs past the bound is a typed cleanup failure. No PID-based tree kill runs on a path where the base ran none, so the chained sync and spawnOmp (no timeout) never get one. The descendants of an interrupted Windows child can survive. That is a known limit equal to the base, and both plans state it. The outer updater ends a Windows chained sync CLI through its handle.
    • Version bump and golden guard (Redesigned): the goldens row now says that every child except Move the process layer, the file helpers, and the kit store to Effect #297 records an empty golden diff. Move the process layer, the file helpers, and the kit store to Effect #297 bumps the version, as AGENTS.md requires for a user-visible change. It keeps the diff empty for every golden file but mutation.json, and its goldens-version row proves each mutation.json change derives from the version bump alone. Do not touch names that exception. Publication stays outside Move the engine-native layer to Effect #290.

    Rejected:

    None.

  15. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 6

    Plan-review: repair

    • security_risk - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Process service, Durability and Callers, and Windows stop - The repair removes PID-based termination for unbounded children but still gives every bounded Windows child taskkill /T /F. That includes the nudge’s four-second git fetch, which currently uses spawnSync and never calls killProcessTree (cli/src/commands/sync.ts:15–23, cli/src/engine-native/exec.ts:53–60,176–199). Inference: if the fetch exits after the guard and Windows reuses its PID before taskkill resolves it, the nudge can terminate an unrelated process on a path where the base never ran the helper - Keep the nudge deadline handle-only on Windows. Restrict PID-based timeout cleanup to callers that already used it - class: PID-only forced termination expanded to previously unaffected callers
    • research_gap - Move the engine-native layer to Effect #290 Research D2, Windows stop, Evidence and Durability; Move the process layer, the file helpers, and the kit store to Effect #297 Windows stop, Evidence and Durability - The base does not run taskkill only at timeouts. trackBoundedChild also calls killProcessTree on CLI exit, with the same Windows guard (cli/src/engine-native/exec.ts:176–199,218–245). Inference: if Windows delivers Ctrl+C while a bounded probe’s wrapper is still live, the base signal handler calls process.exit and attempts tree cleanup; the repair can leave the wrapper’s descendants running (cli/src/engine-native/signalGuard.ts:45–58; Windows console signal handling) - Keep the decided handle-only interrupt policy, but record the loss of the base’s best-effort tree cleanup for bounded children in both plans - class: retained behavior claim omits an existing cleanup path
    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop, Durability; Move the process layer, the file helpers, and the kit store to Effect #297 Process service, Refusal, and Acceptance windows - A missing or failed taskkill.exe now produces ProcessStopFailed, but Move the process layer, the file helpers, and the kit store to Effect #297 only specifies recovery for the nudge. On a timed-out Windows version probe, the base ignores the helper result, reports timed-out, and lets toolchain check print unknown and continue (cli/src/engine-native/exec.ts:185–199,236–245,273–282, cli/src/engine-native/deps.ts:221–236, cli/src/engine-native/toolchain.ts:87–116). Inference: with the planned error mapping, the new failure escapes captureWithin and aborts the report, contrary to .agents/skills/toolchain-context/SKILL.md:46–49 - Keep the typed failure in the process service, map it back to an unknown version at the best-effort probe boundary, and make the existing Windows check distinguish those two outcomes - class: typed cleanup failure bypasses best-effort caller policy
    • goal_fit - Move the engine-native layer to Effect #290 Acceptance goldens and Do not touch; Move the process layer, the file helpers, and the kit store to Effect #297 Research Version, Acceptance goldens-version, and Do not touch - The rollback check replaces the candidate’s mutation.json with main’s, so it never inspects the candidate artifact. The ordinary suite only compares live cases and ignores the stored command field (cli/test/golden-mutation.ts:374–381,478–497). Inference: changing the first case’s recorded command from sync to sync --dry-run (cli/test/goldens/mutation.json:3–5) passes both checks even though the change does not come from the version bump - Derive the expected mutation.json from the baseline with only the new version applied and compare it directly with the reviewed file - class: version-only exception is not checked against the reviewed artifact

    Previous findings:

    Manager response

    Repairs of the parent edit review, round 6

    • Every bounded Windows child gets taskkill, the nudge fetch included (Redesigned): the Windows stop amendment limits taskkill.exe /T /F to the probes that the base bounded (capture and captureWithin with a timeout), at their timeout, under the base guard, bounded to 5 s. The former spawnHost callers (the nudge fetch and the update children), spawnOmp, and the chained sync are handle-only on Windows. So no PID-based tree kill runs where the base ran none.
    • Base exit-time tree cleanup not recorded (Repaired): the amendment now records that the base trackBoundedChild exit hook ran best-effort tree cleanup for bounded probes still alive at CLI exit. It also records that the handle-only policy drops that hook, because the helper launch carries no ownership guarantee. That is a known limit with its reason.
    • ProcessStopFailed escapes captureWithin (Repaired): the typed failure stays in the process service and maps back to the base outcome at a best-effort probe: captureWithin gives timed-out, so toolchain check prints unknown. The nudge prints it as a warning and sync proceeds. The Move the process layer, the file helpers, and the kit store to Effect #297 windows row checks both.
    • Rollback check never inspects the candidate artifact (Redesigned): the goldens row and Do not touch now require Move the process layer, the file helpers, and the kit store to Effect #297's mutation.json to equal, byte for byte, the file that origin/main produces with only the version changed and its generated files refreshed. The Move the process layer, the file helpers, and the kit store to Effect #297 goldens-version row builds that file and runs cmp against the committed one. A changed command field, such as sync --dry-run, therefore fails.

    Rejected:

    None.

  16. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 7

    Plan-review: repair

    • security_risk - Move the engine-native layer to Effect #290 Research D2, Durability and Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Process service and Windows stop - The repair narrows which probes can invoke taskkill, but changes the retained helper from synchronous to asynchronous. The base calls spawnSync after checking the child's exit state (cli/src/engine-native/exec.ts:233–245), and Bun runs that call on a separate loop. With an async helper, Bun can close the probe's process handle while taskkill is still starting. Inference: if a probe exits in that interval and Windows reuses its PID, the helper can terminate an unrelated process instead of the probe - Require an owned handle that pins the original process identity until the helper finishes. If the supported runtime cannot retain it, use handle-only timeout cleanup and record the tree-cleanup limit - class: asynchronous PID-based termination loses process identity
    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Windows stop and Acceptance windows - The caller now maps ProcessStopFailed to timed-out, but the plan does not say how the scoped service reaps a probe that is still alive when taskkill.exe is missing, fails, or times out. The base destroys the pipes and unrefs the child before returning (cli/src/engine-native/exec.ts:184–199,233–245). Inference: with a probe that never exits on its own, the new service either waits indefinitely and never prints unknown, or returns without the reap D2 promises - If the helper is retained, require the service to stop and reap the still-live direct child through its handle before returning the typed failure. Make the existing Windows case assert both the reap and the report outcome - class: helper failure leaves a scoped child running
    • research_gap - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Windows stop, Options and Durability - The amended policy names capture as a base-bounded probe and attributes its empty result to recovery from taskkill failure. capture never supplies a timeout; only captureWithin does (cli/src/engine-native/exec.ts:256–282). The actual bun --version and omp --version readers use unbounded capture (cli/src/engine-native/deps.ts:187–203), so they cannot encounter that helper failure under the stated policy. Neither can the now handle-only nudge - Name captureWithin as the only existing helper-backed probe and distinguish its helper error from errors on handle-only paths - class: timeout-helper policy names callers that cannot reach it
    • goal_fit - Move the engine-native layer to Effect #290 Acceptance goldens and Do not touch; Move the process layer, the file helpers, and the kit store to Effect #297 Research Version, Step 6, and Acceptance goldens-version - The new command compares the reviewed artifact, but it generates the payload before rebuilding talk.js. The bundle imports the package version (cli/talk/extension.ts:18,80), and the payload embeds the bundle's bytes (cli/scripts/generate-sot-payload.ts:84–99,122–143; AGENTS.md:93). Inference: after a real patch bump, the archived CLI deploys the old bundle while the golden harness reads the new one from SoT; the harness exits before cmp (cli/test/golden-mutation.ts:164–173,446–456) - Build talk.js first, then generate the payload, then regenerate and compare the golden. Use that order for both Step 6 and the baseline - class: version-only exception is not checked against the reviewed artifact
    • goal_fit - Move the engine-native layer to Effect #290 Acceptance goldens; Move the process layer, the file helpers, and the kit store to Effect #297 Acceptance goldens and goldens-version - The baseline run inherits two supported overrides. An absolute DOCKS_KIT_TEST_CLI_ENTRY pointing at the candidate makes the archive's harness run the candidate CLI (cli/test/lib/cliEntry.ts:123–135, cli/test/lib/goldenExecution.ts:40–43). Separately, GOLDEN_FILTER=toolchain check leaves all sync snapshots at their old versions (cli/test/lib/goldenCli.ts:27–47, cli/test/golden-mutation.ts:462–468, cli/test/goldens/mutation.json:3050–3059). Inference: the first can approve a candidate-only change to a mutation snapshot; the second can approve a bump with stale sync snapshots - Clear both overrides for the parity and baseline runs, so each suite uses its own checkout's CLI and the full case set - class: baseline proof inherits overrides that change what it verifies
    • goal_fit - Move the engine-native layer to Effect #290 Do not touch; Move the process layer, the file helpers, and the kit store to Effect #297 Step 6 and Do not touch - The revised exclusions name only mutation.json, but a real version bump changes deployed bytes too: the sync writes the generated version into the deployed manifest (cli/src/engine-native/ompKitPlugin.ts:130–146), and the rebuilt talk.js embeds that version (cli/talk/extension.ts:18,80). The snapshot records those changes; it is not the only file that changes - Restore the exception for version-derived deployed bytes in both plans, while keeping mutation.json as the only golden-file exception - class: release exception covers the snapshot but not the deployed bytes it records

    Previous findings:

    • Round-6 finding on Move the engine-native layer to Effect #290 Research D2 and Move the process layer, the file helpers, and the kit store to Effect #297 Process service and Windows stop: resolved - Former spawnHost callers, including the nudge fetch, are now handle-only. The retained helper's async race is separate.
    • Round-6 finding on Windows stop Evidence and Durability: resolved - Both exports now record the base exit hook and explicitly accept losing its best-effort tree cleanup.
    • Round-6 finding on Windows stop Durability and Acceptance windows: resolved - captureWithin now maps ProcessStopFailed to timed-out, and the Windows row expects toolchain check to print unknown. The missing direct-child cleanup is separate.
    • Round-6 finding on the version-only golden exception: open - repeated above. The row now targets the committed artifact, but the baseline fails before the comparison on a patch bump.

    Manager response

    Repairs of the parent edit review, round 7

    • Asynchronous PID-based termination loses the process identity (Redesigned): the Windows stop amendment now removes taskkill.exe from every path. Every Windows stop ends the direct child through its own process handle and waits for its exit before the scope closes. The amendment keeps a full deliberation record. The base best-effort taskkill /T (for captureWithin timeouts and in the exit hook) is dropped for two reasons: an async helper cannot pin the identity while it launches, and a synchronous one would block the runtime. A Job Object needs native code. The descendants of a Windows child can survive, a known limit.
    • Reap of a still-live probe after a helper failure (Repaired): with no helper, the typed cleanup failure is only a failed handle kill. captureWithin maps it to timed-out after the direct child is reaped or its handle reports it gone, so toolchain check prints unknown. The Move the process layer, the file helpers, and the kit store to Effect #297 windows row asserts the reap and the printed unknown.
    • Helper policy names callers that cannot reach it (Repaired): captureWithin is the only timed probe. capture stays unbounded and the nudge is handle-only, so neither has a helper-specific outcome.
    • Payload before talk bundle (Repaired): the goldens row and Move the process layer, the file helpers, and the kit store to Effect #297 (step 6 and goldens-version) build the talk bundle first and then generate the payload, before the golden update and cmp.
    • Inherited overrides (Repaired): the goldens row runs both suites with DOCKS_KIT_TEST_CLI_ENTRY and GOLDEN_FILTER unset (env -u), and Move the process layer, the file helpers, and the kit store to Effect #297's baseline run in goldens-version does the same.
    • Deployed bytes of the version bump (Repaired): Do not touch again allows the version-derived deployed bytes of the Move the process layer, the file helpers, and the kit store to Effect #297 release step (the plugin manifest version stamp and the talk bundle), and keeps mutation.json as the only golden-file exception.

    Rejected:

    None.

  17. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 8

    Plan-review: repair

    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Windows stop, Durability and Acceptance windows - The new policy promises unknown from toolchain check and a warning followed by sync even when the handle kill fails. Windows termination can fail without ending the process. Inference: if the direct child is still live and never exits on its own, waiting to reap it prevents either caller from getting ProcessStopFailed. The base bounded probe returned without waiting (cli/src/engine-native/exec.ts:184–199) - Distinguish an already-exited child from a failed kill of a live child. For the best-effort probe and nudge, specify a bounded failure path and record that the direct child may survive it. Keep confirmed exit as the condition for releasing a writer's lock - class: failed termination waits indefinitely for the process it failed to stop
    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Process service and Windows stop, Durability, and Acceptance windows - The new policy allows descendants to survive but does not carry forward the base timeout's explicit pipe disposal (cli/src/engine-native/exec.ts:184–199). The child plan waits for close in normal use and specifies pipe disposal for POSIX stops. Node distinguishes exit from close because several processes can share the pipes. Inference: when a timed npm.cmd probe loses its direct cmd.exe child but the descendant still holds stdout, the probe can stall on close or leave the CLI alive after printing unknown - Specify that a Windows stop disposes of the parent's pipe ends and observes the direct child's exit independently of close. Use a pipe-holding descendant in the existing Windows timeout case - class: direct-child stop leaves inherited pipes open
    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Acceptance unit-process and windows - unit-process keeps every base case, including the unskipped timeout case that requires the grandchild to die (cli/test/unit/exec.test.ts:148–199). The Windows shards run that file (.github/workflows/parity.yml:123–126, vitest.config.ts:44–46), but the new service promises only direct-child termination. Inference: without a fixture-owned job the old assertion fails; with Node's kill-on-close job, it can pass without the service ending the tree - Keep the tree-termination assertion on POSIX and retain the partial-output and direct-child assertions on Windows, where the plan explicitly allows surviving descendants - class: retained acceptance asserts a guarantee the new policy drops

    Previous findings:

    Manager response

    Repairs of the parent edit review, round 8

    • Failed termination waits forever (Redesigned): the Windows stop amendment now separates an already-exited child from a failed kill of a live one. A best-effort probe (captureWithin, the nudge) keeps the base timeout completion: it attempts the handle kill, disposes of the pipes, unrefs, and resolves at the deadline with no wait. A failed kill is a typed cleanup failure that captureWithin maps to timed-out (so toolchain check prints unknown) and that the nudge prints as a warning before sync proceeds. The live child can survive, a known limit. Only an interrupted writer child that runs under a kit lock waits for its confirmed exit. A failed kill there fails the run, and the process exit releases the lock, as on the base.
    • Inherited pipes stay open (Repaired): every Windows stop disposes of the parent's pipe ends and observes the direct child's exit apart from close. So a descendant that holds stdout neither stalls the probe nor keeps the CLI alive. The Move the process layer, the file helpers, and the kit store to Effect #297 windows row runs the base timeout case with such a descendant.
    • Inherited tree assertion (Repaired): the amendment records that the base exec.test.ts tree assertion runs on POSIX only, and that on Windows that case checks the partial output and the direct child's end (Move the process layer, the file helpers, and the kit store to Effect #297 unit-process).
    • (Also applied for Move the process layer, the file helpers, and the kit store to Effect #297 round 7) the goldens row runs both suites as bun --no-env-file, with both overrides unset, so a .env file cannot restore them.

    Rejected:

    None.

  18. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 9

    Plan-review: repair

    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Durability and Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Windows stop, Options and Durability - The amendment gives cleanup rules for probe timeouts and for interruption of writers under kit locks, but D2 promises cleanup for every interrupted child. deps.ts:184–201 runs unbounded version probes, and commands/update.ts:34–41,265–273,315–322 starts chained sync outside an updater-owned kit lock. Inference: an interrupted Windows omp --version shim that leaves a descendant holding stdout has no stated pipe-disposal rule. The chained sync also does not fit the lock-based rule, even though the plan explicitly promises to stop it by handle - Specify the default Windows interrupt cleanup for every child, including how it handles the parent's pipes, and separately identify when confirmed direct exit is required - class: stop policy omits reachable callers
    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop and Move the process layer, the file helpers, and the kit store to Effect #297 ownership row; Move the process layer, the file helpers, and the kit store to Effect #297 Windows stop and Signals, Durability - The failed-writer-kill branch says it fails the run while keeping the lock until process exit. syncDispatch.ts:178,266–287 and commands/tidy.ts:117–134 release their SQLite locks when the Effect scope unwinds. The planned signal teardown exits only after those finalizers. Inference: if the handle kill fails and the writer stays live, a competing run can take the lock before the first CLI exits - Keep the delegated failed-stop limit, but state that the scoped lock releases on unwind and that the recorded signal still determines the exit code. Qualify the reap-before-release promise accordingly - class: failed cleanup contradicts the recorded lock lifetime
    • goal_fit - Move the process layer, the file helpers, and the kit store to Effect #297 Acceptance windows and unit-process; Move the engine-native layer to Effect #290 Research D2, Windows stop - The Windows row says the timeout result comes after the direct child ends, but the repair requires the result at the deadline without waiting for exit or close. Windows handle termination is asynchronous. The base test also awaits Promise.all([result, once(child, "close", …)]) (cli/test/unit/exec.test.ts:187), which cannot show that the caller got its result without waiting for the child - Assert deadline and partial output independently, then observe the direct child's exit separately while the descendant still holds stdout - class: acceptance requires the wait the policy removes
    • goal_fit - Move the engine-native layer to Effect #290 Acceptance goldens; Move the process layer, the file helpers, and the kit store to Effect #297 Research Version and Acceptance goldens and goldens-version - --no-env-file protects the suite runners, but cli/test/lib/goldenExecution.ts:41–43,115–117,187–201 launches a fresh Bun CLI from the checkout without the flag. Bun automatically loads dotenv files, and cli/src/engine-native/engineCtx.ts:65–79 honors DRY_RUN in the raw channel. Inference: a locally excluded .env with DRY_RUN=1 can turn a candidate mutation case into a dry run even with empty git status, while the archived baseline has no such file - Run candidate and baseline in dotenv-free checkouts, or disable dotenv loading in the spawned golden CLIs too - class: environment isolation stops at the runner

    Previous findings:

    Manager response

    Repairs of the parent edit review, round 9

    • Stop policy omits reachable callers (Redesigned): the Windows stop amendment states the policy once, by operation. Every Windows child, also an interrupted omp --version shim, gets the default cleanup: a handle kill, disposal of the parent's pipe ends, and an exit observed apart from close. A confirmed exit is required by operation: spawnOmp, the Bun installer (also in toolchain ensure bun), the tidy apply tool calls, and the chained sync CLI. The read-only children resolve without waiting. The amendment names each lock holder: the sync CLI holds the sync locks (for update, the chained CLI), tidy --apply holds the apply lock but not during its report, and the updater and toolchain ensure bun hold none.
    • Failed cleanup contradicts the lock lifetime (Redesigned): a writer whose handle kill fails keeps its scope waiting for exit with no deadline, so the lock scope above it does not unwind while the writer runs. The recorded signal still decides the exit code. The known limit is that a child that cannot be terminated keeps the CLI waiting until the user ends it. The D2 Durability now qualifies the reap-before-close promise: it holds on POSIX and for the Windows writer operations, while a Windows read-only child resolves after the kill and the pipe disposal.
    • Acceptance requires the wait that the policy removes (Repaired): the amendment records that on Windows the base timeout case asserts the deadline result and the partial output on their own, and observes the direct child's exit separately. The Move the process layer, the file helpers, and the kit store to Effect #297 windows row does the same.
    • Dotenv in the spawned golden CLIs (Repaired): the goldens row first asserts that the checkout has no dotenv file (git ls-files --others --ignored --exclude-standard -- '.env' '.env.*' prints nothing), and the baseline archive has none. --no-env-file and the unset overrides stay.

    Rejected:

    None.

  19. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 10

    Plan-review: repair

    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Process service, Callers and Windows stop - The default cleanup now covers every Windows child, but the confirmed-exit list still omits git pull --ff-only, bun install --frozen-lockfile, and the global Bun/npm package update (cli/src/commands/update.ts:230–252,276–288). Inference: if a handle kill fails during bun install, the updater can exit while the installer is still writing node_modules. The nudge's git fetch also writes refs and FETCH_HEAD (Git documentation); its no-wait behavior is a deliberate exception, not a read-only operation - Put the three update mutations on the writer path in both plans. Keep the nudge's delegated deadline behavior and name fetch as an explicit exception - class: stop policy omits reachable callers
    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Durability and Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Windows stop, Signals Options, and Acceptance windows - The rewrite drops child.unref() from the Windows no-wait path. The base explicitly unrefs after disposing of the pipes so neither the result nor the event loop waits (cli/src/engine-native/exec.ts:184–198). Bun documents that a referenced child keeps the parent alive, and node_modules/@effect/platform-node-shared/src/NodeRuntime.ts:60–68 does not force exit on success. Inference: public toolchain check can print unknown at the deadline but still hang on the child whose kill failed. The child plan's Signals option also still promises to reap every child - Restore unref() on the no-wait path, qualify the reap promise, and make the existing Windows check observe CLI exit in the failed-stop case rather than just unknown output - class: no-wait cleanup leaves the child referenced
    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Acceptance windows and unit-process - Observing exit separately removes the old requirement to wait, but it does not prove that the deadline result arrived without waiting. The base case advances a fake timer and awaits completion (cli/test/unit/exec.test.ts:165–195), and Windows termination is asynchronous. Inference: if the direct child exits promptly while its descendant holds stdout, an implementation that waits for the direct child's exit can still pass both assertions - In the existing Windows case, hold back the direct child's exit notification until the deadline result and partial output have been asserted, then observe exit separately - class: deadline assertion can pass after waiting for exit
    • goal_fit - Move the engine-native layer to Effect #290 Acceptance goldens; Move the process layer, the file helpers, and the kit store to Effect #297 Research Version, Step release, and Acceptance goldens and goldens-version - git ls-files --others --ignored only lists ignored untracked files. The repository's .gitignore does not ignore .env, and the parent row and child goldens-version row do not require clean status. Inference: an ordinary untracked .env containing DRY_RUN=1 passes the preflight, then Bun loads it in the spawned CLI and changes a candidate mutation into a dry run (cli/test/lib/goldenExecution.ts:41–43,187–201; cli/src/engine-native/engineCtx.ts:69–79) - Check for dotenv files directly in the candidate and baseline launch directories, regardless of Git status, or disable dotenv loading in the spawned CLIs as well - class: environment isolation stops at the runner

    Previous findings:

    Manager response

    Repairs of the parent edit review, round 10

    • Writer list (Repaired): the Windows stop amendment lists each writer that waits for a confirmed exit: spawnOmp, the Bun installer (also in toolchain ensure bun), the tidy apply tool calls, the chained sync CLI, and the update children git pull --ff-only, bun install --frozen-lockfile, and the global package install. The nudge git fetch is the one delegated exception, with a deadline return, and the nudge rev-list is read-only.
    • No-wait cleanup (Repaired): the read-only children and the nudge git fetch dispose of the pipes and unref() a still-live child, as the base did, so the CLI can exit. The D2 Durability qualifies the reap promise the same way. An unkillable no-wait child is a known limit.
    • Windows timeout assertion (Repaired): the amendment records that the Windows base timeout case holds back the direct child's exit notification until the deadline result and the partial output are asserted, and only then observes exit.
    • Dotenv (Repaired): the goldens row checks the checkout root on disk with test -z "$(find . -maxdepth 1 -name '.env*' -print)", whatever Git tracks. Move the process layer, the file helpers, and the kit store to Effect #297 checks its baseline folder the same way.

    Rejected:

    None.

  20. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 11

    Plan-review: repair

    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Research Process service, Callers, and Windows stop - The revised writer list covers the three update operations named last round, but the updater still runs plain git status --porcelain (cli/src/commands/update.ts:206–213). Git documents that this command refreshes the index under a lock. Inference: interrupting the status check on Windows can leave an index.lock that blocks the next update, even though the policy names git fetch as its only no-wait writer exception - Run the updater's status check with --no-optional-locks, as tidy already does at cli/src/engine-native/tidy.ts:958–965, and record that distinction in the stop policy - class: stop policy omits reachable callers
    • goal_fit - Move the engine-native layer to Effect #290 Research D2, Durability and Windows stop; Move the process layer, the file helpers, and the kit store to Effect #297 Research Windows stop and Signals, Acceptance windows - Both plans restore unref(), but the selected Signals option still promises to reap every child. If a Windows probe kill fails, waiting for exit contradicts the no-wait policy. The new check requires unknown and CLI exit, but does not require exit 0, which is the current result (cli/src/engine-native/toolchain.ts:103–116, cli/src/engine-native/modes.ts:29–31). Inference: a forced nonzero exit can pass the check without proving the child stopped holding the event loop open (node_modules/@effect/platform-node-shared/src/NodeRuntime.ts:60–68) - Qualify the Signals promise with the Windows exceptions and require exit 0 in the existing failed-kill check while the probe is still alive - class: no-wait cleanup contract is not preserved end to end
    • goal_fit - Move the engine-native layer to Effect #290 Acceptance goldens; Move the process layer, the file helpers, and the kit store to Effect #297 Acceptance goldens and goldens-version - test -z "$(find …)" checks only stdout, so a scan that fails before printing anything passes the guard. The shell rules make test the command whose status controls the next step; set -e does not rescue the nested failure. Inference: if directory enumeration fails while a known .env path remains readable, the golden CLI can still load it (cli/test/lib/goldenExecution.ts:41–43,187–201) - Check the scan's exit status separately before testing for empty output, in both checkouts, or disable dotenv loading in the spawned CLIs - class: dotenv guard treats a failed scan as an empty result

    Previous findings:

    Manager response

    Repairs of the parent edit review, round 11

    • Writer policy (Repaired): the Windows stop amendment records that update's git status --porcelain runs with --no-optional-locks, as tidy's git calls do, so it writes no index and is a read-only child. The nudge git fetch no-wait exception applies only at its 4 s deadline; on an interrupt the fetch follows the writer rule. rev-list stays read-only. The D2 Durability qualifies the reap promise for the fetch at its deadline only.
    • Dotenv scan status (Repaired): the goldens row checks the exit status of the scan before its output: out="$(find . -maxdepth 1 -name '.env*' -print)" && test -z "$out". Move the process layer, the file helpers, and the kit store to Effect #297 does the same at each of its launch locations.

    Rejected:

    None.

  21. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 12

    Plan-review: repair

    Previous findings:

    Manager response

    Repairs of the parent edit review, round 12

  22. DocksDocks commented on Dec 2, 2026

    @DocksDocks
    OwnerAuthor

    Plan review of the parent edit (#290), round 13

    Plan-review: pass

    None.

    Previous findings:

    Manager response

    Parent edits of rounds 1 to 12 settled; no further parent edit.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions