harness-everything 0.19.0 → 0.19.1
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +3 -2
- package/CHANGELOG.md +2 -0
- package/README.md +14 -14
- package/ci/invariant-routing.test.js +42 -19
- package/ci/mechanism-2af-worktree-isolation.test.js +3 -3
- package/ci/mechanism-2ag-router-worktree-contract.test.js +1 -0
- package/ci/mechanism-2an-workflow-obligations.test.js +1 -0
- package/ci/mechanism-33-issues-205-207.test.js +2 -2
- package/ci/openai-plugin-package.test.js +6 -6
- package/ci/router-workflow-plan.test.js +12 -9
- package/ci/workflow-execution-contract.test.js +2 -2
- package/docs/architecture.md +15 -15
- package/docs/enforcement-locks.md +17 -15
- package/docs/philosophy.md +43 -8
- package/docs/routing.md +23 -16
- package/docs/workflow-runtime.md +20 -19
- package/environment-detection/SKILL.md +3 -1
- package/evals/harness-everything/tasks/positive-tier1.yaml +1 -1
- package/evals/harness-everything/tasks/positive-tier2.yaml +1 -1
- package/evals/harness-everything/tasks/positive-tier3.yaml +1 -1
- package/evals/using-git-worktrees/tasks/positive-trigger.yaml +1 -1
- package/find-skills/SKILL.md +20 -29
- package/git-commit/SKILL.md +4 -4
- package/harness-everything/SKILL.md +16 -17
- package/harness-everything/references/triage-and-tiers.md +17 -16
- package/harness-everything/scripts/kernel-router-core.js +26 -24
- package/harness-everything/scripts/kernel-router.js +8 -8
- package/harness-everything/scripts/router-contract-core.js +7 -7
- package/harness-everything/scripts/router-contract.js +1 -1
- package/hooks/scripts/atomic-commit-check.js +1 -1
- package/hooks/scripts/boundary-guard.js +2 -2
- package/hooks/scripts/depth-guard.js +5 -6
- package/hooks/scripts/subagent-scope-guard.js +2 -2
- package/hooks/scripts/workflow-gate.js +1 -1
- package/install-cognitive-os/SKILL.md +3 -3
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/hooks/scripts/atomic-commit-check.js +1 -1
- package/plugins/harness-everything/hooks/scripts/boundary-guard.js +2 -2
- package/plugins/harness-everything/hooks/scripts/depth-guard.js +5 -6
- package/plugins/harness-everything/hooks/scripts/subagent-scope-guard.js +2 -2
- package/plugins/harness-everything/hooks/scripts/workflow-gate.js +1 -1
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/scripts/lib/advisory-text.js +19 -17
- package/plugins/harness-everything/skills/environment-detection/SKILL.md +3 -1
- package/plugins/harness-everything/skills/find-skills/SKILL.md +20 -29
- package/plugins/harness-everything/skills/git-commit/SKILL.md +4 -4
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +16 -17
- package/plugins/harness-everything/skills/harness-everything/references/triage-and-tiers.md +17 -16
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router-core.js +26 -24
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +8 -8
- package/plugins/harness-everything/skills/harness-everything/scripts/router-contract-core.js +7 -7
- package/plugins/harness-everything/skills/harness-everything/scripts/router-contract.js +1 -1
- package/plugins/harness-everything/skills/install-cognitive-os/SKILL.md +3 -3
- package/plugins/harness-everything/skills/rewrite-commits/SKILL.md +2 -2
- package/plugins/harness-everything/skills/to-tickets/SKILL.md +2 -2
- package/plugins/harness-everything/skills/using-git-worktrees/SKILL.md +6 -6
- package/rewrite-commits/SKILL.md +2 -2
- package/scripts/lib/advisory-text.js +19 -17
- package/to-tickets/SKILL.md +2 -2
- package/using-git-worktrees/SKILL.md +6 -6
|
@@ -4,7 +4,7 @@ description: Break a to-spec feature-spec, a plan, or a conversation into tracer
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.19.1
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# To Tickets
|
|
@@ -33,7 +33,7 @@ Cuts a plan or spec into tracer-bullet vertical slices, each declaring its block
|
|
|
33
33
|
## Process
|
|
34
34
|
|
|
35
35
|
1. Resolve path: script check (Exit 0 = configured location) → workspace convention dirs → platform fallback (`.claude`/`.github`/`.cursor` + `/harness-everything/tickets/`).
|
|
36
|
-
2. Gather context:
|
|
36
|
+
2. Gather context: **SHOULD** use a referenced to-spec spec when available — design-audit verification is MANDATORY first, else refuse; no spec is fine.
|
|
37
37
|
3. Explore codebase (optional): evidence-cited findings only; prefactor first.
|
|
38
38
|
4. Draft vertical slices: complete path through every layer, demoable alone, one context window each; declare blocking edges.
|
|
39
39
|
5. Quiz the user on granularity and edges until approved (MANDATORY gate).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: using-git-worktrees
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when work needs isolation or before major implementation plans - resolves workspace isolation via native tools or git worktree fallback, with an explicit degraded fallback when isolation is unavailable
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.19.1
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Using Git Worktrees
|
|
@@ -13,9 +13,9 @@ Use native worktree support first; raw Git is the fallback.
|
|
|
13
13
|
|
|
14
14
|
## Contract
|
|
15
15
|
|
|
16
|
-
- **
|
|
17
|
-
- **Ordinary mode** — isolation
|
|
18
|
-
-
|
|
16
|
+
- **Tier 3 / Fable (MUST resolve)** — before broad source/artifact mutation, reuse/create a verified linked worktree. If isolation is unavailable or the user explicitly chooses to stay in place, MUST report an explicit degraded fallback/risk before continuing.
|
|
17
|
+
- **Ordinary mode (SHOULD)** — use isolation when it materially reduces collision/risk; explicit user preference may keep work in place.
|
|
18
|
+
- **MUST NOT** nest a worktree inside an already isolated worktree.
|
|
19
19
|
|
|
20
20
|
## Workflow
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ git rev-parse --show-superproject-working-tree
|
|
|
28
28
|
```
|
|
29
29
|
Different git/common dirs and no superproject => already isolated; continue to Step 2. A submodule is a normal repo for this check.
|
|
30
30
|
|
|
31
|
-
**Step 1 — Create/enter**:
|
|
31
|
+
**Step 1 — Create/enter**: use native `EnterWorktree`, `/worktree`, or `--worktree` first; otherwise use `git worktree add "$path" -b "$BRANCH_NAME"`. Use an already-ignored or external/sibling path when possible. If creation/entry fails, MUST surface the degraded isolation disposition before continuing.
|
|
32
32
|
|
|
33
33
|
**Step 2 — Setup**: install project dependencies as needed.
|
|
34
34
|
|
package/rewrite-commits/SKILL.md
CHANGED
|
@@ -4,7 +4,7 @@ description: "Rewrite past Git history to comply with Angular Style conventions.
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.19.1
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Rewrite Commits
|
|
@@ -31,7 +31,7 @@ metadata:
|
|
|
31
31
|
## Workflow
|
|
32
32
|
|
|
33
33
|
1. `[Discover]` Run `git log --oneline -n <num>` to confirm the range. If commits were already pushed to remote `main`/`master`, warn and require secondary human confirmation.
|
|
34
|
-
2. `[Think
|
|
34
|
+
2. `[Think/Try]` Create a temp branch. **MUST NOT** use bare `git rebase -i`; **SHOULD** use `git reset --soft HEAD~<N>` + structured commits or Node.js (no hardcoded `sed -i`). Messages MUST follow `git-commit`.
|
|
35
35
|
3. `[Summarize]` Run `git log --oneline` for confirmation. On merge conflict, run `git rebase --abort`, STOP, and hand over to human decision or trigger `zoom-out`.
|
|
36
36
|
|
|
37
37
|
Deep dive: <this-skill-dir>/references/workflow.md
|
|
@@ -7,14 +7,14 @@ const MARKER = "Harness OS Guidance (Advisory)";
|
|
|
7
7
|
|
|
8
8
|
const advisoryInstructions = [
|
|
9
9
|
`\n# ${MARKER}`,
|
|
10
|
-
`Harness is an observer/router/reminder layer on this surface; do not treat
|
|
10
|
+
`Harness is an observer/router/reminder layer on this surface. Instruction/advisory delivery describes the mechanism, not semantic optionality; do not treat Harness as a hard scheduler.`,
|
|
11
11
|
``,
|
|
12
|
-
`## 🚦 ENTRY TRIAGE &
|
|
12
|
+
`## 🚦 ENTRY TRIAGE & SEMANTIC CONTRACT`,
|
|
13
13
|
`For software/project work, load the \`harness-everything\` skill and establish routing context before broad mutation:`,
|
|
14
|
-
`1.
|
|
15
|
-
`2.
|
|
16
|
-
`3.
|
|
17
|
-
`4.
|
|
14
|
+
`1. MUST route before broad mutation; run \`npx github:dyphn1/Harness-everything next "<Brief summary of user's prompt>"\` when terminal execution is available and no equivalent routing state was injected.`,
|
|
15
|
+
`2. MUST read/evaluate EVERY suggested skill. If applicable, MUST follow its core contract; if not-applicable, keep a flow-grounded reason.`,
|
|
16
|
+
`3. Selected-topology required obligations are MUSTs. Implementation tactics MAY adapt; numeric iteration/revision/replan/worker values MAY guide planning but never hard-block.`,
|
|
17
|
+
`4. MUST verify before claiming completion. Tier-3/Fable broad mutation MUST resolve isolation: linked worktree or explicit degraded fallback.`,
|
|
18
18
|
`5. Use the routing checkpoint only as internal source state for the first Harness Status; do not render a competing progress block.`,
|
|
19
19
|
``,
|
|
20
20
|
`## 📣 USER-VISIBLE STATUS (MUST)`,
|
|
@@ -31,10 +31,11 @@ const advisoryInstructions = [
|
|
|
31
31
|
`- **No universal skill pipeline**: do not force every task through TODO/TDD/Fable.`,
|
|
32
32
|
`- **Rule of 3**: after 3 same-signature failures, stop micro-retrying and use a fresh diagnosis / zoom-out. This reflection boundary may block mutation until completed.`,
|
|
33
33
|
`- **Permission boundaries are separate**: explicit host/user approval for destructive or external actions remains authoritative.`,
|
|
34
|
-
`- **
|
|
35
|
-
`- **
|
|
36
|
-
`- **
|
|
37
|
-
`- **
|
|
34
|
+
`- **Contract strength**: MUST = required semantic obligation; SHOULD = default with evidence-based exception; MAY = optional optimization. Reminder-only mechanics never downgrade MUST.`,
|
|
35
|
+
`- **Verification is evidence, not a cage**: MUST verify before completion claims; host hooks may remind rather than persistently block.`,
|
|
36
|
+
`- **Environment discovery**: MUST establish relevant OS/shell/toolchain/host facts before relying on environment-sensitive behavior.`,
|
|
37
|
+
`- **Memory / self-evolve**: durable writes MUST be authorized by the active workflow/session contract and backed by verified reusable evidence.`,
|
|
38
|
+
`- **Editing / commits**: targeted edits SHOULD be preferred; before committing, MUST inspect the staged diff and SHOULD split unrelated concerns.`,
|
|
38
39
|
``
|
|
39
40
|
].join('\n');
|
|
40
41
|
|
|
@@ -144,15 +145,16 @@ function buildCodexGlobalContent() {
|
|
|
144
145
|
`# ${MARKER}`,
|
|
145
146
|
`This instruction surface cannot be assumed to provide hard lifecycle blocking.`,
|
|
146
147
|
``,
|
|
147
|
-
`-
|
|
148
|
-
`- For software/project work,
|
|
148
|
+
`- MUST establish relevant environment/host facts before relying on environment-sensitive behavior.`,
|
|
149
|
+
`- For software/project work, MUST establish routing before broad mutation; use \`npx github:dyphn1/Harness-everything next "<summary>"\` when terminal execution is available and routing state was not already injected.`,
|
|
149
150
|
`- For non-trivial work, MUST render one Markdown \`### 🚦 Harness Status\` with bullet-aligned bold \`Current\`, \`Read / Evidence\`, \`Next\`, and optional \`Risk / Blocked\`; repeat it at major phase/direction boundaries and before final completion.`,
|
|
150
|
-
`-
|
|
151
|
-
`-
|
|
151
|
+
`- MUST read/evaluate every suggested skill; applicable skill core contracts MUST be followed, while not-applicable needs a flow-grounded reason.`,
|
|
152
|
+
`- Selected-topology required obligations are MUSTs; implementation tactics MAY adapt and numeric planning values MAY guide but never hard-block.`,
|
|
152
153
|
`- Do not impose a universal TODO/TDD/Fable sequence; use the smallest useful topology plus applicable skills.`,
|
|
153
|
-
`-
|
|
154
|
-
`-
|
|
155
|
-
`-
|
|
154
|
+
`- MUST verify before declaring done; a reminder-only host mechanism does not make verification optional.`,
|
|
155
|
+
`- Tier-3/Fable broad mutation MUST resolve isolation: verified linked worktree or explicit degraded fallback.`,
|
|
156
|
+
`- After 3 same-signature failures, MUST stop retrying and use a fresh diagnosis / zoom-out.`,
|
|
157
|
+
`- Targeted edits SHOULD be preferred; before committing, MUST inspect the staged diff and SHOULD split unrelated concerns.`,
|
|
156
158
|
``
|
|
157
159
|
].join('\n');
|
|
158
160
|
}
|
package/to-tickets/SKILL.md
CHANGED
|
@@ -4,7 +4,7 @@ description: Break a to-spec feature-spec, a plan, or a conversation into tracer
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.19.1
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# To Tickets
|
|
@@ -33,7 +33,7 @@ Cuts a plan or spec into tracer-bullet vertical slices, each declaring its block
|
|
|
33
33
|
## Process
|
|
34
34
|
|
|
35
35
|
1. Resolve path: script check (Exit 0 = configured location) → workspace convention dirs → platform fallback (`.claude`/`.github`/`.cursor` + `/harness-everything/tickets/`).
|
|
36
|
-
2. Gather context:
|
|
36
|
+
2. Gather context: **SHOULD** use a referenced to-spec spec when available — design-audit verification is MANDATORY first, else refuse; no spec is fine.
|
|
37
37
|
3. Explore codebase (optional): evidence-cited findings only; prefactor first.
|
|
38
38
|
4. Draft vertical slices: complete path through every layer, demoable alone, one context window each; declare blocking edges.
|
|
39
39
|
5. Quiz the user on granularity and edges until approved (MANDATORY gate).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: using-git-worktrees
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when work needs isolation or before major implementation plans - resolves workspace isolation via native tools or git worktree fallback, with an explicit degraded fallback when isolation is unavailable
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.19.1
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Using Git Worktrees
|
|
@@ -13,9 +13,9 @@ Use native worktree support first; raw Git is the fallback.
|
|
|
13
13
|
|
|
14
14
|
## Contract
|
|
15
15
|
|
|
16
|
-
- **
|
|
17
|
-
- **Ordinary mode** — isolation
|
|
18
|
-
-
|
|
16
|
+
- **Tier 3 / Fable (MUST resolve)** — before broad source/artifact mutation, reuse/create a verified linked worktree. If isolation is unavailable or the user explicitly chooses to stay in place, MUST report an explicit degraded fallback/risk before continuing.
|
|
17
|
+
- **Ordinary mode (SHOULD)** — use isolation when it materially reduces collision/risk; explicit user preference may keep work in place.
|
|
18
|
+
- **MUST NOT** nest a worktree inside an already isolated worktree.
|
|
19
19
|
|
|
20
20
|
## Workflow
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ git rev-parse --show-superproject-working-tree
|
|
|
28
28
|
```
|
|
29
29
|
Different git/common dirs and no superproject => already isolated; continue to Step 2. A submodule is a normal repo for this check.
|
|
30
30
|
|
|
31
|
-
**Step 1 — Create/enter**:
|
|
31
|
+
**Step 1 — Create/enter**: use native `EnterWorktree`, `/worktree`, or `--worktree` first; otherwise use `git worktree add "$path" -b "$BRANCH_NAME"`. Use an already-ignored or external/sibling path when possible. If creation/entry fails, MUST surface the degraded isolation disposition before continuing.
|
|
32
32
|
|
|
33
33
|
**Step 2 — Setup**: install project dependencies as needed.
|
|
34
34
|
|