Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .agents/skills/engine-native-context/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
---
name: engine-native-context
description: "Use when modifying cli/src/engine-native, the cli/src/engine.ts engine seam or requireSupportedHost, the cli/src/main.ts native-raw harness path, cli/test/golden-dryrun.ts, cli/test/golden-mutation.ts, cli/test/lib/golden*.ts, or cli/test/goldens; covers the golden-regression contract, the removed-engine failure for DOCKS_KIT_ENGINE value bash, the p() slash-join rule, ExitError aborts, jq.ts JSON helpers, prove-red, GOLDEN_FILTER, and supported-host rejection before engine execution. Not for sync flags or sync dispatch (use sync-orchestration-context) or toolchain pins and installs (use toolchain-context)."
description: "Use when modifying cli/src/engine-native, the cli/src/engine.ts engine seam or requireSupportedHost, the cli/src/main.ts native-raw harness path, cli/test/golden-dryrun.ts, cli/test/golden-mutation.ts, cli/test/lib/golden*.ts, or cli/test/goldens; covers the golden-regression contract, the removed-engine failure for DOCKS_KIT_ENGINE value bash, the p() slash-join rule, the typed engine aborts (HelpShown, UsageRefused, LockWaitInvalid), jq.ts JSON helpers, prove-red, GOLDEN_FILTER, and supported-host rejection before engine execution. Not for sync flags or sync dispatch (use sync-orchestration-context) or toolchain pins and installs (use toolchain-context)."
user-invocable: false
metadata:
pattern: tool-wrapper
source_files:
- path: cli/src/engine-native/index.ts
lines: "1-66"
lines: "1-82"
- path: cli/src/engine.ts
lines: "1-53"
lines: "1-103"
- path: cli/src/main.ts
lines: "1-60"
lines: "1-78"
- path: cli/src/engine-native/exec.ts
lines: "1-346"
- path: cli/src/engine-native/jq.ts
lines: "1-38"
- path: cli/src/engine-native/parseHelp.ts
lines: "1-25"
lines: "1-31"
- path: cli/src/engine-native/os/targets.ts
lines: "1-64"
- path: cli/test/unit/engine.test.ts
lines: "1-112"
lines: "1-204"
- path: cli/test/golden-dryrun.ts
lines: "1-199"
- path: cli/test/golden-mutation.ts
Expand All @@ -39,7 +39,7 @@ metadata:
lines: "1-18"
- path: cli/test/lib/goldenProveRed.ts
lines: "1-63"
updated: "2026-11-27"
updated: "2026-12-01"
---

# EngineNative Golden Contract
Expand Down Expand Up @@ -72,10 +72,11 @@ Engine output is snapshotted and must use forward slashes across platforms.
</constraint>

<constraint>
Use `ExitError` (`parseHelp.ts`, re-exported by `parseArgs.ts`) for intentional
engine aborts and validation failures; `index.ts runEngineNative` turns it into
the exit code. Swallowing a failed child process turns a real sync failure into a
success log.
End an intentional engine abort or a validation failure with a typed failure
in the error channel: `HelpShown` or `UsageRefused` (`parseHelp.ts`), or
`LockWaitInvalid` (`syncDispatch.ts`). `index.ts runEngineNative` turns each
into its exit code after its text; never throw for an abort. Swallowing a
failed child process turns a real sync failure into a success log.
</constraint>

## Golden Suites
Expand Down
6 changes: 3 additions & 3 deletions .agents/skills/host-platform-context/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ metadata:
- path: cli/src/engine-native/processes.ts
lines: "1-16"
- path: cli/src/engine-native/logger.ts
lines: "1-192"
lines: "1-275"
- path: cli/src/engine-native/services.ts
lines: "1-88"
- path: cli/src/services.ts
lines: "1-42"
updated: "2026-11-23"
updated: "2026-12-01"
---

# Host Platform Layer
Expand All @@ -49,7 +49,7 @@ Rewrite a user file through `atomicWrite.ts replaceFile`. It keeps a symlinked t
</constraint>

<constraint>
Run an inherited-stdio child (installer, sudo prompt) inside `ctx.terminalLease?.withExclusive`. Do not nest `withExclusive`.
Run an inherited-stdio child (installer, sudo prompt) as an Effect passed to `ctx.terminalLease.withExclusive`, and yield the Effect that it returns; with no lease, run the child Effect directly. Do not nest `withExclusive`: a nested call fails with `LeaseReentered`.
</constraint>

## When to Use
Expand Down
11 changes: 6 additions & 5 deletions .agents/skills/omp-sync-context/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ metadata:
lines: "1-63"
- path: cli/src/engine-native/ompChild.ts
lines: "1-26"
updated: "2026-11-27"
updated: "2026-12-01"
---

# omp Sync Context
Expand Down Expand Up @@ -210,10 +210,11 @@ So a writing sync also takes `<folder>/.docks-kit-sync-lock.db` in each
folder of `ompSync.ts ompWriteFolders`: the `ompPaths` `agentDir` and the
`ompPaths` `dataRoot`.

- `syncDispatch.ts runSync` calls `ompWriteFolders` once, before the locks,
and passes the result into `ompSync`. `ompSync` writes only into these
locked folders. A second resolution could pick a `$XDG_DATA_HOME/omp`
folder that another sync created after the locks.
- `syncDispatch.ts lockedSync` calls `ompWriteFolders` once, after the sync
lock and before the folder locks, and passes the result into `ompSync`; a
dry run (`engineSync`) resolves them the same way and takes no lock.
`ompSync` writes only into these locked folders. A second resolution could
pick a `$XDG_DATA_HOME/omp` folder that another sync created after the locks.
- Every `omp` command of the plugin pass starts through
`ompChild.ts spawnOmp`. When the locked data root is the config root, the
child gets no `XDG_DATA_HOME`, so the omp resolver keeps the locked root.
Expand Down
Loading
Loading