harness-everything 0.11.5 → 0.11.7
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/CHANGELOG.md +32 -0
- package/README.md +7 -3
- package/ci/mechanism-2a-rule-of-3.test.js +71 -0
- package/ci/mechanism-2ah-workflow-lifecycle.test.js +314 -8
- package/ci/mechanism-2c-state-persist.test.js +45 -2
- package/ci/mechanism-2t-issue-20.test.js +0 -8
- package/ci/mechanism-30-opencode-plugin-loadability.test.js +39 -7
- package/docs/architecture.md +17 -0
- package/docs/audit.md +52 -5
- package/docs/release-evidence.md +3 -0
- package/docs/workflow-runtime.md +13 -0
- package/docs/workflows/environment-detection.md +47 -37
- package/docs/workflows/eval-harness.md +45 -38
- package/docs/workflows/fable-discipline.md +45 -33
- package/docs/workflows/git-commit.md +53 -45
- package/docs/workflows/grill-me.md +36 -38
- package/docs/workflows/grill-with-docs.md +36 -46
- package/docs/workflows/harness-everything.md +59 -57
- package/docs/workflows/improve-codebase-architecture.md +36 -44
- package/docs/workflows/install-cognitive-os.md +36 -29
- package/docs/workflows/repo-docs.md +29 -40
- package/docs/workflows/rewrite-commits.md +40 -36
- package/docs/workflows/security-review.md +34 -53
- package/docs/workflows/skill-creator.md +39 -56
- package/docs/workflows/skill-style.md +35 -40
- package/docs/workflows/using-git-worktrees.md +40 -44
- package/docs/workflows/verification-loop.md +43 -48
- package/docs/workflows/verify-before-claim.md +37 -40
- package/docs/workflows/zoom-out.md +39 -51
- package/harness-everything/SKILL.md +1 -1
- package/harness-everything/scripts/kernel-router.js +38 -10
- package/hooks/hooks.json +25 -1
- package/hooks/scripts/lib/workflow-isolation.js +111 -6
- package/hooks/scripts/lib/workflow-runtime.js +138 -2
- package/hooks/scripts/rule-of-3-tracker.js +17 -9
- package/hooks/scripts/state-persist.js +52 -9
- package/hooks/scripts/workflow-gate.js +22 -7
- package/hooks/scripts/workflow-mutation-denied.js +17 -0
- 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/hooks.json +1 -1
- package/plugins/harness-everything/hooks/scripts/lib/workflow-isolation.js +111 -6
- package/plugins/harness-everything/hooks/scripts/lib/workflow-runtime.js +138 -2
- package/plugins/harness-everything/hooks/scripts/rule-of-3-tracker.js +17 -9
- package/plugins/harness-everything/hooks/scripts/state-persist.js +52 -9
- package/plugins/harness-everything/hooks/scripts/workflow-gate.js +22 -7
- package/plugins/harness-everything/hooks/scripts/workflow-mutation-denied.js +17 -0
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +38 -10
- package/docs/issue-20-rollup.md +0 -47
- package/docs/reviews/pr-142-issue-131.md +0 -89
|
@@ -1,71 +1,79 @@
|
|
|
1
1
|
# Workflow: Git Commit
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Create clean Angular-style commit messages for an explicit commit request or a finished task phase, after checking repo state, submodules, and staged changes.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Source of truth: `git-commit/SKILL.md`.
|
|
6
6
|
|
|
7
7
|
## 1. Skill Behavior Workflow
|
|
8
8
|
|
|
9
|
-
This section visualizes how the `git-commit` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
-
|
|
11
9
|
```mermaid
|
|
12
10
|
graph TD
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
DirectCommit --> VerifyCommit["Run git log -1 to Verify"]
|
|
29
|
-
TempFileCommit --> VerifyCommit
|
|
30
|
-
VerifyCommit --> End([Staging Clean and Committed])
|
|
11
|
+
CommitTrig([Commit requested or phase concluded]) --> StatusCheck[Run git status]
|
|
12
|
+
StatusCheck --> RepoOk{Git repo present?}
|
|
13
|
+
RepoOk -->|no| InitOffer[Offer git init or skip]
|
|
14
|
+
RepoOk -->|yes| SubCheck[Check submodule changes per SUBMODULES guide]
|
|
15
|
+
SubCheck --> SubDirty{Submodules changed?}
|
|
16
|
+
SubDirty -->|yes| SubFirst[Commit submodules first]
|
|
17
|
+
SubDirty -->|no| DiffCheck[Run git diff-cached]
|
|
18
|
+
SubFirst --> DiffCheck
|
|
19
|
+
DiffCheck --> StagedOk{Anything staged?}
|
|
20
|
+
StagedOk -->|no| PromptStage[Prompt user and stage targeted files]
|
|
21
|
+
StagedOk -->|yes| FormatMsg[Format type-scope-subject message]
|
|
22
|
+
PromptStage --> FormatMsg
|
|
23
|
+
FormatMsg --> VerifyLog[Commit then verify with git log -1]
|
|
24
|
+
VerifyLog --> DoneClean([Tree updated and clean])
|
|
31
25
|
```
|
|
32
26
|
|
|
33
|
-
|
|
27
|
+
```mermaid
|
|
28
|
+
graph TD
|
|
29
|
+
FormatSimple[Formatted Angular message] --> EscCheck{Simple single line?}
|
|
30
|
+
EscCheck -->|yes| DirectM[git commit -m]
|
|
31
|
+
EscCheck -->|no multiline or Windows| TempF[Write commit-msg file then git commit -F and cleanup]
|
|
32
|
+
DirectM --> LogOne[git log -1 verifies commit]
|
|
33
|
+
TempF --> LogOne
|
|
34
|
+
LogOne --> CleanTree([Working tree clean])
|
|
35
|
+
```
|
|
34
36
|
|
|
35
37
|
## 2. Triggering and Routing Path
|
|
36
38
|
|
|
37
|
-
This diagram illustrates how the `git-commit` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
|
|
38
|
-
|
|
39
39
|
```mermaid
|
|
40
40
|
graph LR
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
UserReq[User requests commit] --> GitSkill[git-commit SKILL]
|
|
42
|
+
PhaseDone[Task phase concludes with staged diff] --> GitSkill
|
|
43
|
+
GitSkill --> StatusGate[git status gate]
|
|
44
|
+
StatusGate --> SubGuide[guides SUBMODULES.md if needed]
|
|
45
|
+
SubGuide --> StyleGuide[guides ANGULAR_STYLE.md formatting]
|
|
46
|
+
StyleGuide --> CommitVerify[Commit and git log -1 check]
|
|
45
47
|
```
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
## 3. Real-World Use Case
|
|
48
50
|
|
|
49
|
-
|
|
51
|
+
Developer finishes an auth fix and asks for a commit.
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
1. Run `git status`; if not a repo, offer `git init` or skip.
|
|
54
|
+
2. If submodules changed, commit those first per `git-commit/guides/SUBMODULES.md`.
|
|
55
|
+
3. Run `git diff --cached`; if nothing staged, prompt before staging targeted files.
|
|
56
|
+
4. Format `<type>(<scope>): <subject>` per `git-commit/guides/ANGULAR_STYLE.md`.
|
|
57
|
+
5. Use `git commit -m` for a simple line, or `.git-commit-msg.txt` + `git commit -F` with cleanup for multiline/Windows, then verify with `git log -1`.
|
|
52
58
|
|
|
53
59
|
```mermaid
|
|
54
60
|
graph TD
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
DevDone[Auth fix finished and staged] --> CheckStatus[Run git status and cached diff]
|
|
62
|
+
CheckStatus --> FmtMsg[Format feat-auth style message]
|
|
63
|
+
FmtMsg --> PickMethod{Multiline or Windows?}
|
|
64
|
+
PickMethod -->|no| CommitM[git commit -m]
|
|
65
|
+
PickMethod -->|yes| CommitF[git commit -F with temp file]
|
|
66
|
+
CommitM --> VerifyOne[git log -1]
|
|
67
|
+
CommitF --> VerifyOne
|
|
68
|
+
VerifyOne --> CleanDone([Committed and verified])
|
|
61
69
|
```
|
|
62
70
|
|
|
63
|
-
---
|
|
64
|
-
|
|
65
71
|
## 4. Verification Check
|
|
66
72
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
- [ ]
|
|
70
|
-
- [ ]
|
|
71
|
-
- [ ]
|
|
73
|
+
- [ ] `git status` ran first; non-repo offered `git init` or skip, and empty staging prompted the user instead of committing nothing
|
|
74
|
+
- [ ] Submodule changes were handled first per `git-commit/guides/SUBMODULES.md`
|
|
75
|
+
- [ ] Staged diff was reviewed with `git diff --cached`, with targeted staging only after confirmation
|
|
76
|
+
- [ ] Message followed `<type>(<scope>): <subject>` per `git-commit/guides/ANGULAR_STYLE.md`
|
|
77
|
+
- [ ] Multiline/Windows path used `.git-commit-msg.txt` + `git commit -F` with cleanup; simple path used `git commit -m`; result verified with `git log -1`
|
|
78
|
+
- [ ] No branch, rebase, merge, or push was performed, and no staging happened without confirmation
|
|
79
|
+
- [ ] Detail followed `git-commit/references/commit-flow.md` where needed
|
|
@@ -1,62 +1,60 @@
|
|
|
1
1
|
# Workflow: Grill Me
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> A demanding challenger that pressure-tests vague plans and architectures one question at a time, exposes loopholes and undefined boundaries, counters sycophantic agreement, keeps the CONTEXT.md glossary current, and passes settled decisions to to-spec for formal specs and ADRs.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Source of truth: `grill-me/SKILL.md`.
|
|
6
6
|
|
|
7
7
|
## 1. Skill Behavior Workflow
|
|
8
8
|
|
|
9
|
-
This section visualizes how the `grill-me` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
-
|
|
11
9
|
```mermaid
|
|
12
10
|
graph TD
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
Propose["Vague plan or architecture proposal received"] --> Discover["Scan plan code plus CONTEXT.md, README.md, docs/adr/"]
|
|
12
|
+
Discover --> DomainTerms["Grill using project domain model and terminology"]
|
|
13
|
+
DomainTerms --> AskOne["Ask exactly ONE question with attached insight"]
|
|
14
|
+
AskOne --> ResolveBranch["Resolve decision-tree branch before moving on"]
|
|
15
|
+
ResolveBranch --> UpdateGlossary["Update CONTEXT.md glossary inline"]
|
|
16
|
+
UpdateGlossary --> ConsensusCheck{"Consensus on all branches?"}
|
|
17
|
+
ConsensusCheck -->|No| AskOne
|
|
18
|
+
ConsensusCheck -->|Yes| HandoffSpec["Hand off to to-spec to preview outline and publish"]
|
|
19
|
+
HandoffSpec --> RouteExec["Route execution to to-tickets, fable-mode, or tdd"]
|
|
21
20
|
```
|
|
22
21
|
|
|
23
|
-
---
|
|
24
|
-
|
|
25
22
|
## 2. Triggering and Routing Path
|
|
26
23
|
|
|
27
|
-
This diagram illustrates how the `grill-me` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
|
|
28
|
-
|
|
29
24
|
```mermaid
|
|
30
25
|
graph LR
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
VaguePlan["Input: vague plan proposal"] --> GrillMe["grill-me / SKILL.md"]
|
|
27
|
+
EvaluateArch["Input: evaluate architecture request"] --> GrillMe
|
|
28
|
+
ExplicitAsk["Input: explicit grill me request"] --> GrillMe
|
|
29
|
+
GrillMe --> ToSpec["to-spec: preview outline and publish PRD, CLI/API reference, Schema doc, or ADR"]
|
|
30
|
+
ToSpec --> ToTickets["to-tickets for execution"]
|
|
31
|
+
ToSpec --> FableMode["fable-mode for execution"]
|
|
32
|
+
ToSpec --> TDD["tdd for execution"]
|
|
35
33
|
```
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
## 3. Real-World Use Case Flowchart
|
|
40
|
-
|
|
41
|
-
Here we model concrete real-world scenarios and use cases of the `grill-me` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
35
|
+
## 3. Real-World Use Case
|
|
42
36
|
|
|
43
37
|
```mermaid
|
|
44
38
|
graph TD
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
CronProposal["Proposal: nightly cron syncs tables directly"] --> GrillStart["grill-me starts single-question loop"]
|
|
40
|
+
GrillStart --> Q1["Q1: What happens on mid-sync failure with locks held?"]
|
|
41
|
+
Q1 --> A1["Answer: wrap in transactions, define lock behavior"]
|
|
42
|
+
A1 --> Glossary1["Update CONTEXT.md glossary for sync and lock terms"]
|
|
43
|
+
Glossary1 --> Q2["Q2: What are boundary conditions for partial state?"]
|
|
44
|
+
Q2 --> Consensus["Consensus reached on failure and boundary handling"]
|
|
45
|
+
Consensus --> SpecHandoff["to-spec publishes ADR and spec"]
|
|
52
46
|
```
|
|
53
47
|
|
|
54
|
-
|
|
48
|
+
Concrete example: a developer proposes a direct table-sync cron job. `grill-me` scans `CONTEXT.md` and related code, asks one question about mid-sync failure, resolves it, updates the glossary, asks the next question about monitoring and boundary conditions, then hands the hardened decisions to `to-spec` for a PRD or ADR. Execution follows via `to-tickets`, `fable-mode`, or `tdd`.
|
|
55
49
|
|
|
56
|
-
|
|
50
|
+
Deep detail: `grill-me/references/grilling-playbook.md`.
|
|
57
51
|
|
|
58
|
-
|
|
52
|
+
## 4. Verification Check
|
|
59
53
|
|
|
60
|
-
- [ ]
|
|
61
|
-
- [ ]
|
|
62
|
-
- [ ]
|
|
54
|
+
- [ ] Exactly ONE question asked at a time; questionnaires prohibited
|
|
55
|
+
- [ ] Each question carries the agent's insight and its branch is resolved before advancing
|
|
56
|
+
- [ ] Questions use the project's domain model and terminology from `CONTEXT.md`, `README.md`, and `docs/adr/`
|
|
57
|
+
- [ ] `CONTEXT.md` glossary updated inline as terms resolve; document creation left to `to-spec`
|
|
58
|
+
- [ ] On consensus, `to-spec` invoked to preview outline and publish PRD, CLI/API reference, Schema doc, or ADR
|
|
59
|
+
- [ ] No code implementation or ticket breakdown inside this skill; execution routed to `to-tickets`, `fable-mode`, or `tdd`
|
|
60
|
+
- [ ] Not used for casual Q and A, direct spec writing, or ticket breakdown of an approved spec
|
|
@@ -1,69 +1,59 @@
|
|
|
1
|
-
# Workflow: Grill
|
|
1
|
+
# Workflow: Grill With Docs
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Tests a plan against the recorded domain language and past decisions, tightens fuzzy terminology into canonical terms, and writes CONTEXT.md and ADR updates inline as choices settle.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Source of truth: `grill-with-docs/SKILL.md`.
|
|
6
6
|
|
|
7
7
|
## 1. Skill Behavior Workflow
|
|
8
8
|
|
|
9
|
-
This section visualizes how the `grill-with-docs` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
-
|
|
11
9
|
```mermaid
|
|
12
10
|
graph TD
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ResolveADRPath -->|No Folder Found| WriteFallback["Write to committable docs/adr"]
|
|
23
|
-
|
|
24
|
-
WriteDocs --> ToSpec["Hand off to to-spec for Outline Preview & Spec/ADR Publishing"]
|
|
25
|
-
WriteFallback --> ToSpec
|
|
26
|
-
ToSpec --> End([Route to to-tickets / fable-mode / tdd])
|
|
11
|
+
PlanInput["Plan needing domain alignment"] --> ResolveStorage["Resolve storage with project-docs-resolver.js; CONTEXT-MAP.md root wins"]
|
|
12
|
+
ResolveStorage --> ChallengeTerms["Challenge glossary conflicts; sharpen fuzzy terms to canonical ones"]
|
|
13
|
+
ChallengeTerms --> ScenarioTest["Stress-test relationships with concrete scenarios; cross-check claims against code"]
|
|
14
|
+
ScenarioTest --> InlineUpdate["Update context glossary inline, never batched; zero implementation details"]
|
|
15
|
+
InlineUpdate --> ADRGate{"ADR warranted: hard to reverse plus surprising without context plus real trade-off?"}
|
|
16
|
+
ADRGate -->|Yes| WriteADR["Offer and write ADR at resolved location"]
|
|
17
|
+
ADRGate -->|No| SkipADR["Skip ADR; keep pure glossary"]
|
|
18
|
+
WriteADR --> Handoff["Hand off aligned design to to-spec"]
|
|
19
|
+
SkipADR --> Handoff
|
|
27
20
|
```
|
|
28
21
|
|
|
29
|
-
---
|
|
30
|
-
|
|
31
22
|
## 2. Triggering and Routing Path
|
|
32
23
|
|
|
33
|
-
This diagram illustrates how the `grill-with-docs` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
|
|
34
|
-
|
|
35
24
|
```mermaid
|
|
36
25
|
graph LR
|
|
37
|
-
|
|
38
|
-
GrillMe["grill-me
|
|
39
|
-
GWD
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
DomainStress["Input: stress-testing a plan against domain language and documented decisions"] --> GWD["grill-with-docs / SKILL.md"]
|
|
27
|
+
GWD --> GrillMe["grill-me for unverified design"]
|
|
28
|
+
GWD --> ToSpec["to-spec for aligned design"]
|
|
29
|
+
ToSpec --> ToTickets["to-tickets for execution"]
|
|
30
|
+
ToSpec --> FableMode["fable-mode for execution"]
|
|
31
|
+
ToSpec --> TDD["tdd for execution"]
|
|
42
32
|
```
|
|
43
33
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
## 3. Real-World Use Case Flowchart
|
|
47
|
-
|
|
48
|
-
Here we model concrete real-world scenarios and use cases of the `grill-with-docs` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
34
|
+
## 3. Real-World Use Case
|
|
49
35
|
|
|
50
36
|
```mermaid
|
|
51
37
|
graph TD
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
SyncCode --> Done([Zero architectural drift achieved])
|
|
38
|
+
RetryProposal["Proposal: change notification retry limits"] --> ResolveDocs["Resolve docs location; read CONTEXT.md and rate-limit ADR"]
|
|
39
|
+
ResolveDocs --> Conflict["Find glossary conflict: retry versus backoff"]
|
|
40
|
+
Conflict --> Scenario["Scenario test: burst retry against overload protection limit"]
|
|
41
|
+
Scenario --> GlossaryFix["Inline glossary fix to canonical terms"]
|
|
42
|
+
GlossaryFix --> ADRDecision["ADR offered because limit change is hard to reverse and involves trade-off"]
|
|
43
|
+
ADRDecision --> AlignedHandoff["Aligned design to to-spec; execution to to-tickets, fable-mode, or tdd"]
|
|
59
44
|
```
|
|
60
45
|
|
|
61
|
-
|
|
46
|
+
Concrete example: a retry-limit change is checked against the existing rate-limiting ADR and code. Fuzzy retry language is sharpened, the glossary is fixed inline, and only because the decision is hard to reverse and surprising without context is an ADR written. An unverified design would go to `grill-me` first instead.
|
|
62
47
|
|
|
63
|
-
|
|
48
|
+
Deep detail: `grill-with-docs/references/session-playbook.md`. Formats: `grill-with-docs/ADR-FORMAT.md`, `grill-with-docs/CONTEXT-FORMAT.md`.
|
|
64
49
|
|
|
65
|
-
|
|
50
|
+
## 4. Verification Check
|
|
66
51
|
|
|
67
|
-
- [ ]
|
|
68
|
-
- [ ]
|
|
69
|
-
- [ ]
|
|
52
|
+
- [ ] Storage resolved with `multi-agent-workspace/scripts/project-docs-resolver.js`; `<workspace>/CONTEXT-MAP.md` root wins
|
|
53
|
+
- [ ] Fuzzy terms sharpened to canonical ones; glossary stays pure with zero implementation details
|
|
54
|
+
- [ ] Relationships tested with concrete scenarios and claims cross-checked against code
|
|
55
|
+
- [ ] Context glossary updated inline, never batched
|
|
56
|
+
- [ ] ADR offered only when hard to reverse plus surprising without context plus a real trade-off
|
|
57
|
+
- [ ] ADRs meet the 3-part bar; handoff to `to-spec` after alignment
|
|
58
|
+
- [ ] Routing respected: unverified design to `grill-me`; aligned design to `to-spec`; execution to `to-tickets`, `fable-mode`, or `tdd`
|
|
59
|
+
- [ ] Not used for verifying unstable designs without a grilling pass, and not used for spec publishing without grilling
|
|
@@ -1,95 +1,97 @@
|
|
|
1
1
|
# Workflow: Harness Everything
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Route software/project work through the Harness kernel: classify Tier 1/2/3, establish mandatory invariants, then let the agent choose tactics and domain skills. Not general Q&A or non-software writing.
|
|
4
|
+
|
|
5
|
+
Source of truth: `harness-everything/SKILL.md`. Deep dive: `harness-everything/references/triage-and-tiers.md`.
|
|
4
6
|
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
## 1. Skill Behavior Workflow
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
The kernel establishes the smallest applicable workflow before mutation. Suggested skills are mandatory to evaluate and advisory to execute; the selected topology is mandatory to resolve.
|
|
10
12
|
|
|
11
13
|
```mermaid
|
|
12
14
|
graph TD
|
|
13
15
|
Start([User Prompt Received]) --> CheckSoftware{Software / Engineering Task?}
|
|
14
|
-
CheckSoftware -->|No: Pure Chat / Translation / Web Search| BypassHarness["Bypass Harness
|
|
15
|
-
CheckSoftware -->|Yes: Code / Architecture / Project| ExecuteRouter["
|
|
16
|
-
ExecuteRouter -->
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
FactReminder --> FinalizeOutput
|
|
33
|
-
FinalizeOutput --> Normalization["Apply Always-On ADHD-Friendly Output Shaping (Global Normalization)"]
|
|
34
|
-
Normalization --> End([Developer receives highly focused, concise response])
|
|
35
|
-
BypassHarness --> End
|
|
16
|
+
CheckSoftware -->|No: Pure Chat / Translation / Web Search| BypassHarness["Bypass Harness Completely - Reply Directly"]
|
|
17
|
+
CheckSoftware -->|Yes: Code / Architecture / Project| ExecuteRouter["Run kernel-router.js OR reuse UserPromptSubmit hook output"]
|
|
18
|
+
ExecuteRouter --> TriageTier{Triage Tier}
|
|
19
|
+
TriageTier -->|Tier 1: Trivial| Tier1Route["direct-single: smallest sufficient tactic"]
|
|
20
|
+
TriageTier -->|Tier 2: Standard| Tier2Route["iterative-single: verify each increment"]
|
|
21
|
+
TriageTier -->|Tier 3: Macro| Tier3Route["fable-staged / fable-parallel / fable-multi-agent-workspace"]
|
|
22
|
+
Tier1Route --> Checkpoint["Surface Harness Routing Checkpoint"]
|
|
23
|
+
Tier2Route --> Checkpoint
|
|
24
|
+
Tier3Route --> Checkpoint
|
|
25
|
+
Checkpoint --> Evaluate["Read each suggested SKILL.md: USE FOR, DO NOT USE FOR, flow, hard rules"]
|
|
26
|
+
Evaluate --> Execute["Execute selected topology to resolution"]
|
|
27
|
+
Execute --> VerifyGate{Objective evidence supports completion?}
|
|
28
|
+
VerifyGate -->|Yes| Done([Evidence-backed completion])
|
|
29
|
+
VerifyGate -->|No| Diagnose["Diagnose / bounded re-plan"]
|
|
30
|
+
Diagnose --> RetryCheck{Same-signature failure x3?}
|
|
31
|
+
RetryCheck -->|No| Execute
|
|
32
|
+
RetryCheck -->|Yes| ZoomOut["zoom-out: stop edits, rebuild facts read-only, report RESUME or ESCALATE"]
|
|
33
|
+
ZoomOut --> Execute
|
|
36
34
|
```
|
|
37
35
|
|
|
38
36
|
---
|
|
39
37
|
|
|
40
38
|
## 2. Triggering and Routing Path
|
|
41
39
|
|
|
42
|
-
This diagram
|
|
40
|
+
This diagram shows how the `harness-everything` skill is triggered and how it chains with companion skills. Routing suggestions are conditional on applicability; the selected topology is not advisory.
|
|
43
41
|
|
|
44
42
|
```mermaid
|
|
45
43
|
graph LR
|
|
46
|
-
UserPrompt([User Input]) --> Router["harness-everything / tier-router.js"]
|
|
47
|
-
|
|
48
|
-
Router -->|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Ch4 --> ADHD
|
|
59
|
-
|
|
44
|
+
UserPrompt([User Input]) --> Router["harness-everything / kernel-router.js + tier-router.js"]
|
|
45
|
+
|
|
46
|
+
Router -->|Bug / Feature / Refactor| Ch1["tdd + todo-driven-workflow + verification-loop + verify-before-claim"]
|
|
47
|
+
Router -->|Commit / History / Isolation| Ch2["git-commit + rewrite-commits + using-git-worktrees + verification-loop"]
|
|
48
|
+
Router -->|Large / Multi-source / Multi-session| Ch3["fable-mode + fable-discipline + multi-agent-workspace + using-git-worktrees"]
|
|
49
|
+
Router -->|Architecture / Plan review| Ch4["improve-codebase-architecture + grill-me + grill-with-docs + to-spec + to-tickets"]
|
|
50
|
+
|
|
51
|
+
Ch1 --> Invariants["Invariants: route-before-execution, verify-before-claim, re-plan-after-x3, evaluate-before-skip, resolve-selected-workflow"]
|
|
52
|
+
Ch2 --> Invariants
|
|
53
|
+
Ch3 --> Invariants
|
|
54
|
+
Ch4 --> Invariants
|
|
55
|
+
|
|
60
56
|
style Router fill:#d35400,stroke:#e67e22,stroke-width:2px,color:#ffffff
|
|
61
|
-
style
|
|
57
|
+
style Invariants fill:#1abc9c,stroke:#16a085,stroke-width:2px,color:#ffffff
|
|
62
58
|
```
|
|
63
59
|
|
|
64
60
|
---
|
|
65
61
|
|
|
66
62
|
## 3. Real-World Use Case Flowchart
|
|
67
63
|
|
|
68
|
-
Here we model concrete real-world scenarios and use cases of the `harness-everything` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
69
|
-
|
|
70
64
|
```mermaid
|
|
71
65
|
graph TD
|
|
72
|
-
Input1["User: 'Add a new settings page'"] --> Router1["
|
|
73
|
-
Router1 -->
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
Input2["User: 'Refactor DB architecture and grill my plan'"] --> Router2["tier-router.js executes"]
|
|
66
|
+
Input1["User: 'Add a new settings page'"] --> Router1["kernel-router.js executes"]
|
|
67
|
+
Router1 --> Triage2["Triaged as Tier 2: Standard Task"]
|
|
68
|
+
Triage2 --> Checkpoint1["Routing Checkpoint: tdd, todo-driven-workflow, verification-loop suggested"]
|
|
69
|
+
Checkpoint1 --> Eval1["Read each suggested SKILL.md; keep applicable, mark not-applicable with flow-grounded reason"]
|
|
70
|
+
Eval1 --> Exec1["Execute iterative-single to resolution; verify with tests before claiming done"]
|
|
71
|
+
Exec1 --> Done1([Feature delivered with objective evidence])
|
|
72
|
+
|
|
73
|
+
Input2["User: 'Refactor DB architecture across services'"] --> Router2["kernel-router.js executes"]
|
|
81
74
|
Router2 --> Triage3["Triaged as Tier 3: Macro Task"]
|
|
82
|
-
Triage3 -->
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
Triage3 --> Iso["Verify linked Git worktree isolation before source mutation"]
|
|
76
|
+
Iso --> Exec2["fable-mode stage map + per-stage checks + cold verification"]
|
|
77
|
+
Exec2 --> Done2([Staged delivery with per-stage evidence])
|
|
78
|
+
|
|
79
|
+
Input3["User: 'Just fix this typo'"] --> Router3["kernel-router.js executes"]
|
|
80
|
+
Router3 --> Triage1["Triaged as Tier 1: Trivial Task"]
|
|
81
|
+
Triage1 --> Exec3["direct-single: smallest sufficient edit, then verify"]
|
|
82
|
+
Exec3 --> Done3([Typo fixed, no ceremony added])
|
|
85
83
|
```
|
|
86
84
|
|
|
85
|
+
Escape applies only to genuinely uncovered workflow scope with explicit scope + evidence; covered obligations, isolation, and independent verification survive escape. Model confidence alone never justifies skipping the selected topology.
|
|
86
|
+
|
|
87
87
|
---
|
|
88
88
|
|
|
89
89
|
## 4. Verification Check
|
|
90
90
|
|
|
91
91
|
To ensure that the `harness-everything` skill is operating in strict compliance with Harness OS design laws, verify the following:
|
|
92
92
|
|
|
93
|
-
- [ ] **
|
|
94
|
-
- [ ] **
|
|
95
|
-
- [ ] **
|
|
93
|
+
- [ ] **Route before execution**: scope/tier and smallest applicable workflow established before mutation.
|
|
94
|
+
- [ ] **Evaluate before omission**: each suggested skill's complete `SKILL.md` flow evaluated before deciding applicability.
|
|
95
|
+
- [ ] **Resolve selected workflow**: the selected topology executed to resolution; escape only for uncovered scope with evidence.
|
|
96
|
+
- [ ] **Verify before claim**: objective evidence (tests, checks, quoted tool output) supports completion.
|
|
97
|
+
- [ ] **Re-plan on repetition**: after 3 same-signature failures, `zoom-out` reflection completed before resuming.
|