oc-harness-setup 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +65 -0
- package/README.md +1 -1
- package/bin/cli.js +4 -1
- package/commands/{goal.md → loop.md} +4 -2
- package/docs/GUIDE.md +5 -2
- package/opencode.jsonc +1 -1
- package/package.json +1 -1
- package/skills/{goal → loop}/SKILL.md +4 -2
package/AGENTS.md
CHANGED
|
@@ -102,6 +102,6 @@ Working on this pack is `CONTRIBUTING.md`; this file is the shipped starter cont
|
|
|
102
102
|
- `close`: load at the end of a session — "all green, all cleaned, done or parked".
|
|
103
103
|
- `evolve`: load when adding a skill, adopting upstream, or improving the harness.
|
|
104
104
|
- `fast`: load when shortcutting safely — "what is the shortest safe route".
|
|
105
|
-
- `
|
|
105
|
+
- `loop`: load when looping to done — "take this ticket to green with TDD".
|
|
106
106
|
- `search`: load when researching — "research this from primary sources with citations".
|
|
107
107
|
- `swarm`: load when splitting work — "split this across workers with seams".
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,71 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.6.0] - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- The custom end-to-end looper ships as `/loop` (`commands/loop.md` +
|
|
10
|
+
`skills/loop/SKILL.md`) instead of `/goal`. OpenCode 2.2.1 ships a
|
|
11
|
+
first-party `/goal` session-continuation command
|
|
12
|
+
(`Usage: /goal <objective> | pause | resume | clear`), so a custom
|
|
13
|
+
`commands/goal.md` collided with it. A fresh install writes no `/goal` —
|
|
14
|
+
the pack ships neither file — and its `skill` allow names `loop`. The
|
|
15
|
+
command and skill bodies name the native built-in so the distinction is
|
|
16
|
+
explicit.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
Upgrades decide per prior-manifest entry, not per file name (`bin/cli.js`
|
|
21
|
+
`retireStale`; the allow prune lives in `mergeJsonc`):
|
|
22
|
+
|
|
23
|
+
| Prior-manifest entry | Path kind | Hash vs disk | Action | Adds a skill ID |
|
|
24
|
+
| --- | --- | --- | --- | --- |
|
|
25
|
+
| absent — fresh install, no `/goal` on disk | any | — | nothing selected; nothing removed | no |
|
|
26
|
+
| absent — installed tree with no prior manifest | any | — | nothing selected; any `/goal` file on disk is untouched | no |
|
|
27
|
+
| present; this version still ships the same path | any | — | not stale; the sweep ignores it | no |
|
|
28
|
+
| present with `action: merged` | `opencode.jsonc` | — | ignored | no |
|
|
29
|
+
| present, already `retired`/`archived` by an earlier run | `skills/<id>/...` | — | not re-examined; the earlier outcome stands | yes — `<id>` |
|
|
30
|
+
| present, already `retired`/`archived` by an earlier run | other | — | not re-examined | no |
|
|
31
|
+
| present, path absent from disk | `skills/<id>/...` | — | nothing to retire | yes — `<id>` |
|
|
32
|
+
| present, path absent from disk | other | — | nothing to retire | no |
|
|
33
|
+
| present, path is not a regular file | any | — | kept (refused) | no |
|
|
34
|
+
| present, path unreadable | any | — | kept (refused) | no |
|
|
35
|
+
| present, path escapes the config dir | any | — | skipped (refused) | no |
|
|
36
|
+
| present, regular file | `skills/<id>/...` | matches | deleted, journaled `retired` | yes — `<id>` |
|
|
37
|
+
| present, regular file | `skills/<id>/...` | differs | moved under `state/archive/legacy-0.3.x/`, journaled `archived` | yes — `<id>` |
|
|
38
|
+
| present, regular file | `skills/<id>/...` | not recorded | kept; the adopter owns the bytes | no |
|
|
39
|
+
| present, regular file | `commands/goal.md` or other | matches | deleted, journaled `retired` | no |
|
|
40
|
+
| present, regular file | `commands/goal.md` or other | differs | moved under `state/archive/legacy-0.3.x/`, journaled `archived` | no |
|
|
41
|
+
| present, regular file | `commands/goal.md` or other | not recorded | kept; the adopter owns the bytes | no |
|
|
42
|
+
|
|
43
|
+
Only a `skills/<id>/...` path (three or more segments, first segment
|
|
44
|
+
`skills`) can contribute `<id>`, and only where its row above says yes —
|
|
45
|
+
a kept file with no recorded hash does not; `commands/goal.md` and a bare
|
|
46
|
+
`skills/goal` never do. A row that adds no skill ID therefore never prunes
|
|
47
|
+
an allow, while an earlier run's retired or archived entry keeps
|
|
48
|
+
contributing its skill on every later run.
|
|
49
|
+
|
|
50
|
+
The merge applies the run's final set (`retiredSkills`) to the adopter's
|
|
51
|
+
own rules:
|
|
52
|
+
|
|
53
|
+
| `retiredSkills` | Adopter rule naming `goal` | Prune result |
|
|
54
|
+
| --- | --- | --- |
|
|
55
|
+
| contains `goal` | `{"action": "skill", "resource": "goal", "effect": "allow"}` | dropped from the merged config and logged |
|
|
56
|
+
| contains `goal` | a `goal` rule with any other effect, or a `skill *` rule | not eligible for the prune |
|
|
57
|
+
| does not contain `goal` | any | kept |
|
|
58
|
+
|
|
59
|
+
So a concrete `goal` allow is pruned if and only if a `skills/goal/...`
|
|
60
|
+
entry put `goal` in the run's final retired-skill set; retiring or
|
|
61
|
+
archiving only `commands/goal.md` leaves the allow alone, and a `goal`
|
|
62
|
+
allow with no supporting manifest entry survives as adopter-owned.
|
|
63
|
+
Unknown files are preserved throughout: anything the manifest does not
|
|
64
|
+
list, any entry with no recorded hash, and any refused entry stay on disk.
|
|
65
|
+
An emptied `skills/goal/` directory is pruned once its last file leaves,
|
|
66
|
+
while a `/goal` file the manifest never listed is not removed by this
|
|
67
|
+
upgrade. Rules identical to a shipped harness rule are deduped by the
|
|
68
|
+
permissions union on any run; that is separate from the prune.
|
|
69
|
+
|
|
5
70
|
## [0.5.0] - 2026-10-28
|
|
6
71
|
|
|
7
72
|
### Fixed
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ First run prints a manifest of everything it will touch and waits for you to typ
|
|
|
13
13
|
## What it does
|
|
14
14
|
|
|
15
15
|
- Lays down a working OpenCode setup: 9 agents, 6 skills, and 12 on-demand references.
|
|
16
|
-
- Closes the loop:
|
|
16
|
+
- Closes the loop: loop -> worker -> verifier -> historian -> cleaner -> close, with no self-verdicts.
|
|
17
17
|
- Researches before it claims: a finding arrives sourced or marked unverified.
|
|
18
18
|
- Keeps your model, provider, keys, and state across upgrades, and reverses cleanly on uninstall.
|
|
19
19
|
- Grows with you: one skill, command, reference, seat, or config change at a time.
|
package/bin/cli.js
CHANGED
|
@@ -602,7 +602,10 @@ function retireStale(configDir, prior, files, manifest) {
|
|
|
602
602
|
log('retire', `keep ${rel} (unreadable — refusing)`);
|
|
603
603
|
continue;
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
let hashMatched = false;
|
|
606
|
+
try { hashMatched = entry.hash ? sha256File(resolved) === entry.hash : false; }
|
|
607
|
+
catch { log('retire', `keep ${rel} (content read failed — refusing)`); continue; }
|
|
608
|
+
if (entry.hash && hashMatched) {
|
|
606
609
|
rmSync(resolved, { force: true });
|
|
607
610
|
manifest.files.push({ path: rel, hash: entry.hash, action: 'retired' });
|
|
608
611
|
if (skillId) retiredSkills.add(skillId);
|
|
@@ -4,8 +4,10 @@ agent: orchestrator
|
|
|
4
4
|
subagent: false
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# /
|
|
7
|
+
# /loop
|
|
8
8
|
|
|
9
|
-
Load the `
|
|
9
|
+
Load the `loop` skill; `skills/loop/SKILL.md` owns the procedure. Apply it to `$ARGUMENTS`.
|
|
10
|
+
|
|
11
|
+
Distinct from the native `/goal` built-in session-continuation command (OpenCode v2.2.1).
|
|
10
12
|
|
|
11
13
|
`$ARGUMENTS` is one of: a frozen SPEC, a ticket, or an issue. Empty: ask for it, then proceed.
|
package/docs/GUIDE.md
CHANGED
|
@@ -12,7 +12,7 @@ First run prints a manifest of everything it will touch and waits for you to typ
|
|
|
12
12
|
## Why this starter
|
|
13
13
|
|
|
14
14
|
- Small on purpose: 9 agents, 6 skills, 12 on-demand references; the primary loads one, the rest wait for a trigger.
|
|
15
|
-
- A loop that closes:
|
|
15
|
+
- A loop that closes: loop -> worker -> verifier -> historian -> cleaner -> close; no self-verdicts.
|
|
16
16
|
- Research that cites: researcher + search + canon; claims arrive sourced or `UNVERIFIED`.
|
|
17
17
|
- Memory that survives: historian writes session state; `state/` is seeded and preserved on upgrade.
|
|
18
18
|
- Cleanup that ships: cleaner removes this session's scratch; hygiene proves the tree clean.
|
|
@@ -22,7 +22,7 @@ First run prints a manifest of everything it will touch and waits for you to typ
|
|
|
22
22
|
## What you get
|
|
23
23
|
|
|
24
24
|
- 9 agents with bounded reach: one coordinator, one verdict, and seven specialists that each own exactly one surface.
|
|
25
|
-
- 6 skills behind 6 commands: close, evolve, fast,
|
|
25
|
+
- 6 skills behind 6 commands: close, evolve, fast, loop, search, and swarm.
|
|
26
26
|
- 12 on-demand references behind a single index; load only the file a rule names.
|
|
27
27
|
- 18-law doctor gate: every setup run ends on it, and failures name the check and the fix.
|
|
28
28
|
- Consent-first install: the full manifest prints before anything moves, and `--dry-run` changes nothing.
|
|
@@ -48,6 +48,9 @@ Set `OPENCODE_CONFIG_DIR` to override the config dir when the OpenCode CLI canno
|
|
|
48
48
|
- Unmodified 0.3.x agents, commands, skills, references, and scripts are retired.
|
|
49
49
|
- Files you edited are archived under `state/archive/legacy-0.3.x/` instead of deleted, and reported.
|
|
50
50
|
- Stale `skill` allow entries for retired skills are pruned; custom skills are left alone.
|
|
51
|
+
- The custom `/goal` looper ships as `/loop` (`commands/loop.md` + `skills/loop/SKILL.md`); a fresh install writes neither `commands/goal.md` nor `skills/goal`, and both `/loop` bodies name the host's native `/goal` session-continuation command (OpenCode 2.2.1) so the distinction is explicit.
|
|
52
|
+
- An upgrade settles a tracked `/goal` path only when a prior manifest entry lists it with a recorded hash, per file: matching bytes are retired, differing bytes are archived under `state/archive/legacy-0.3.x/`.
|
|
53
|
+
- A `/goal` path the prior manifest never listed, an entry with no recorded hash, or an install with no prior manifest is left in place — so it can still collide with the native `/goal` name; remove it yourself if it does.
|
|
51
54
|
- `setup --dry-run` previews it; `--uninstall` restores the pre-upgrade snapshot.
|
|
52
55
|
|
|
53
56
|
## Grow it
|
package/opencode.jsonc
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: loop
|
|
3
3
|
description: Use when a frozen SPEC must become working code without rescoping — cut tracer-bullet tickets, loop one ticket at a time with TDD to a cited runnable check, then run the repo's full gate green.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# loop
|
|
7
|
+
|
|
8
|
+
Distinct from the native `/goal` built-in session-continuation command (OpenCode v2.2.1); this skill is the custom end-to-end looper, invoked as `/loop`.
|
|
7
9
|
|
|
8
10
|
End-to-end looper: `to-spec` → `to-tickets` → `implement` → `tdd` → repo gate → fresh verdict.
|
|
9
11
|
|