jhste-skills 0.9.0 → 0.10.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/CHANGELOG.md +14 -0
- package/README.en.md +8 -6
- package/README.md +8 -6
- package/THIRD_PARTY_NOTICES.md +40 -0
- package/package.json +2 -2
- package/skills/jhste-subagent-orchestration/SKILL.md +93 -0
- package/skills/jhste-subagent-orchestration/agents/openai.yaml +7 -0
- package/skills/jhste-subagent-orchestration/references/control-state.md +67 -0
- package/skills/jhste-subagent-orchestration/references/worker-contract.md +97 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.0 - 2026-08-03
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Added `jhste-subagent-orchestration` for bounded investigation, implementation, and read-only acceptance workers under a decision-owning head.
|
|
7
|
+
- Added static routing contracts for explicit delegation, implicit structural benefit, ordinary-work exclusions, handoff boundaries, and external-write authority.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Reduced the reviewed orchestration package from 469 to 264 lines while preserving the four-file structure and critical head, worker, ownership, and verification invariants.
|
|
11
|
+
- Separated worker stage from task skill, read-only acceptance from corrective finalization, worker lifecycle from head verification and disposition, and logical mutation leases from harness-enforced permissions.
|
|
12
|
+
- Moved worker concurrency limits entirely to the harness boundary and excluded worker model and reasoning-effort routing from the skill.
|
|
13
|
+
- Added wave-level result dispositions, source-basis checks for stale verification, resumable clarification rules, live-activity transfer, and assignment-defect recovery after repeated independent failures.
|
|
14
|
+
- Updated both READMEs and package metadata from eleven to twelve skills and expanded static routing coverage from 78 to 88 scenarios across ten covered skills.
|
|
15
|
+
- Recorded the reviewed Codexclaw revision and the orchestration concepts adapted or deliberately omitted.
|
|
16
|
+
|
|
3
17
|
## 0.9.0 - 2026-07-28
|
|
4
18
|
|
|
5
19
|
### Added
|
package/README.en.md
CHANGED
|
@@ -8,6 +8,7 @@ A personal engineering skill set maintained around GPT-5.6's outcome-first, lean
|
|
|
8
8
|
|
|
9
9
|
- **[`jhste-coding`](skills/jhste-coding/SKILL.md)** — implements sufficiently understood features, bug fixes, refactors, and ordinary continuation from a handoff's exact resume point with a small change and relevant validation.
|
|
10
10
|
- **[`jhste-prototype`](skills/jhste-prototype/SKILL.md)** — tests one important design question before production implementation with the smallest disposable runnable evidence.
|
|
11
|
+
- **[`jhste-subagent-orchestration`](skills/jhste-subagent-orchestration/SKILL.md)** — coordinates bounded investigation, implementation, and acceptance workers under a decision-owning head when delegation is explicit or has concrete structural benefit.
|
|
11
12
|
- **[`jhste-diagnosing-bugs`](skills/jhste-diagnosing-bugs/SKILL.md)** — diagnoses difficult bugs and performance regressions whose cause or correct fix is uncertain through reproduction, hypotheses, and measurement.
|
|
12
13
|
- **[`jhste-grill`](skills/jhste-grill/SKILL.md)** — resolves consequential decision branches one question at a time while continuously maintaining settled domain context and ADRs.
|
|
13
14
|
- **[`jhste-domain-modeling`](skills/jhste-domain-modeling/SKILL.md)** — clarifies domain terms, boundaries, and relationships, immediately recording settled glossary entries and qualifying ADRs.
|
|
@@ -18,27 +19,28 @@ A personal engineering skill set maintained around GPT-5.6's outcome-first, lean
|
|
|
18
19
|
- **[`jhste-pr-review`](skills/jhste-pr-review/SKILL.md)** — reviews explicitly requested PRs against the actual diff and posts only high-confidence actionable findings.
|
|
19
20
|
- **[`jhste-review-followup`](skills/jhste-review-followup/SKILL.md)** — validates existing PR feedback and pushes only justified fixes to the existing PR branch.
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
Most skills do not require or automatically call one another. `jhste-subagent-orchestration` composes existing task skills into bounded worker assignments only when real worker execution exists and delegation is explicit or provides concrete structural benefit; it does not copy their contracts or expand their authority. A sufficiently clear implementation belongs to `jhste-coding`; only an important uncertainty about what to build that needs runnable evidence belongs to `jhste-prototype`; an unexplained failure in existing behavior belongs to `jhste-diagnosing-bugs`; and a user-owned policy decision belongs to `jhste-grill`. Once a prototype direction is selected, `jhste-coding` implements it for production and `jhste-to-spec` records it only when a specification is requested.
|
|
22
23
|
|
|
23
24
|
## Behavioral boundaries
|
|
24
25
|
|
|
25
26
|
- `jhste-coding` applies to sufficiently understood code changes and ordinary continuation from an existing handoff or partial implementation. Executable experiments that test an important design assumption before production belong to `jhste-prototype`.
|
|
26
27
|
- `jhste-prototype` answers one concrete question about a state model, business rule, data shape, API surface, interaction flow, or UI structure with disposable runnable evidence. It does not take over ordinary implementation, diagnosis of an existing failure, static mockups, open-ended ideation, or production-ready delivery.
|
|
28
|
+
- `jhste-subagent-orchestration` applies whenever the user explicitly requests subagents, delegation, multi-worker execution, or a separate-agent acceptance pass. Implicit use requires decision-complete, independently verifiable work whose consequential judgment remains with the head. It does not take over ordinary linear coding, diagnosis, prototyping, handoff authoring, finalization, PR review, or domain meanings such as Kubernetes orchestration. The harness owns worker limits and actual permission or isolation enforcement.
|
|
27
29
|
- `jhste-diagnosing-bugs` applies when an observed failure needs a reproduction signal, competing hypotheses, instrumentation, or measurement. Testing a design that has not been built yet belongs to `jhste-prototype`.
|
|
28
30
|
- `jhste-grill` applies when the user wants an interview or decision stress test. It does not let a prototype guess a user-owned choice; once a decision is settled, representability or ergonomics that need executable evidence can move to `jhste-prototype`.
|
|
29
31
|
- `jhste-domain-modeling` owns focused domain-language clarification and the corresponding glossary and qualifying ADR updates, not incidental code naming or generic architecture discussion.
|
|
30
32
|
- `jhste-to-spec` defines settled behavior, contracts, validation, and scope. It does not freeze a guess into a specification when an unresolved design assumption should first be tested.
|
|
31
33
|
- `jhste-to-tickets` drafts or publishes a GitHub issue graph. It does not duplicate local handoff state across issue bodies.
|
|
32
34
|
- `jhste-handoff` runs only when the user asks to create, update, refresh, or phase a handoff document. It does not own implementation merely because an existing handoff must be read.
|
|
33
|
-
- `jhste-implementation-finalizer` applies to production implementation explicitly submitted for independent audit, verification, correction, or final completion. It does not promote disposable prototype code; a selected direction is implemented properly with `jhste-coding`.
|
|
35
|
+
- `jhste-implementation-finalizer` applies to production implementation explicitly submitted for independent audit, verification, correction, or final completion. It does not promote disposable prototype code or serve as a read-only acceptance worker; a selected direction is implemented properly with `jhste-coding`.
|
|
34
36
|
- `jhste-pr-review` applies only to an explicit review-only request and does not modify the branch.
|
|
35
37
|
- `jhste-review-followup` applies only when existing PR feedback defines the scope. It is not the general completion workflow for a worker result or partially implemented branch.
|
|
36
38
|
|
|
37
|
-
This package does not include a mandatory TDD workflow, Wayfinder,
|
|
39
|
+
This package does not include a mandatory TDD workflow, Wayfinder, or a separate architecture-audit skill. Orchestration is narrowly limited to real worker coordination and does not replace ordinary single-agent delivery.
|
|
38
40
|
|
|
39
41
|
## Install user-wide from npm
|
|
40
42
|
|
|
41
|
-
This package has no CLI. It distributes the
|
|
43
|
+
This package has no CLI. It distributes the twelve skills and their Codex metadata.
|
|
42
44
|
|
|
43
45
|
```sh
|
|
44
46
|
npm install -g jhste-skills
|
|
@@ -55,7 +57,7 @@ mkdir -p "$HOME/.agents/skills"
|
|
|
55
57
|
cp -R skills/. "$HOME/.agents/skills/"
|
|
56
58
|
```
|
|
57
59
|
|
|
58
|
-
If another agent expects a different global skills directory, copy the
|
|
60
|
+
If another agent expects a different global skills directory, copy the twelve directories under `skills/` there. This package does not require project-local skill copies.
|
|
59
61
|
|
|
60
62
|
## Development and validation
|
|
61
63
|
|
|
@@ -64,6 +66,6 @@ npm test
|
|
|
64
66
|
npm pack --dry-run
|
|
65
67
|
```
|
|
66
68
|
|
|
67
|
-
`npm test` checks package, metadata, and documentation consistency plus
|
|
69
|
+
`npm test` checks package, metadata, and documentation consistency plus 88 static routing scenarios across ten covered skills. The fixture does not invoke a model or measure live automatic-trigger accuracy.
|
|
68
70
|
|
|
69
71
|
External sources and license attribution are recorded in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). When a change containing a new package version is merged to `main`, or a `v*.*.*` release tag is pushed, GitHub Actions runs release checks and publishes the version through npm trusted publishing if it is not already present.
|
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ GPT-5.6의 outcome-first, lean-prompt 지침에 맞춰 관리하는 개인용
|
|
|
8
8
|
|
|
9
9
|
- **[`jhste-coding`](skills/jhste-coding/SKILL.md)** — 충분히 이해된 기능, 버그 수정, 리팩터링과 handoff의 정확한 재개 지점부터 이어지는 일반 구현을 작은 변경과 관련 검증으로 수행합니다.
|
|
10
10
|
- **[`jhste-prototype`](skills/jhste-prototype/SKILL.md)** — production 구현 전에 하나의 중요한 설계 질문을 가장 작은 폐기 가능한 실행 증거로 검증합니다.
|
|
11
|
+
- **[`jhste-subagent-orchestration`](skills/jhste-subagent-orchestration/SKILL.md)** — 명시적 서브에이전트 요청이나 구조적 이익이 분명한 작업에서, 결정권을 가진 헤드 아래 bounded investigation, implementation, acceptance 워커를 조정합니다.
|
|
11
12
|
- **[`jhste-diagnosing-bugs`](skills/jhste-diagnosing-bugs/SKILL.md)** — 원인이나 올바른 수정이 불확실한 어려운 버그와 성능 저하를 재현, 가설, 측정으로 진단합니다.
|
|
12
13
|
- **[`jhste-grill`](skills/jhste-grill/SKILL.md)** — 중요한 결정 분기를 한 번에 한 질문씩 해소하면서 확정된 도메인 문맥과 ADR을 계속 갱신합니다.
|
|
13
14
|
- **[`jhste-domain-modeling`](skills/jhste-domain-modeling/SKILL.md)** — 도메인 용어, 경계, 관계를 명확히 하고 확정된 glossary 항목과 필요한 ADR을 바로 기록합니다.
|
|
@@ -18,27 +19,28 @@ GPT-5.6의 outcome-first, lean-prompt 지침에 맞춰 관리하는 개인용
|
|
|
18
19
|
- **[`jhste-pr-review`](skills/jhste-pr-review/SKILL.md)** — 명시적으로 요청된 PR을 실제 diff 기준으로 검토하고 신뢰도 높은 실행 가능한 지적만 게시합니다.
|
|
19
20
|
- **[`jhste-review-followup`](skills/jhste-review-followup/SKILL.md)** — 기존 PR 피드백을 검증하고 정당한 수정만 기존 PR 브랜치에 반영합니다.
|
|
20
21
|
|
|
21
|
-
스킬은 서로를 의무적으로 호출하지
|
|
22
|
+
대부분의 스킬은 서로를 의무적으로 호출하지 않습니다. `jhste-subagent-orchestration`은 실제 워커 실행 수단이 있고 명시적 위임 요청이나 구체적인 구조적 이익이 있을 때 기존 task skill을 bounded assignment에 조합하지만, 그 스킬의 계약을 복제하거나 권한을 확장하지 않습니다. 구현 경로가 충분히 명확하면 `jhste-coding`, 무엇을 만들지에 대한 중요한 설계 불확실성이 실행 가능한 증거를 필요로 할 때만 `jhste-prototype`, 이미 존재하는 동작의 원인이 불명확하면 `jhste-diagnosing-bugs`, 사용자 소유 정책 결정이 남아 있으면 `jhste-grill`이 담당합니다. 프로토타입에서 방향이 선택되면 `jhste-coding`으로 production 구현하고, 명세가 필요할 때만 `jhste-to-spec`으로 기록합니다.
|
|
22
23
|
|
|
23
24
|
## 동작 경계
|
|
24
25
|
|
|
25
26
|
- `jhste-coding`은 구현 경로가 충분히 명확한 코드 변경과 기존 handoff 또는 부분 구현의 일반적인 이어서 하기를 담당합니다. production 전 실행 실험으로 중요한 설계 가정을 검증하는 작업은 `jhste-prototype`에 속합니다.
|
|
26
27
|
- `jhste-prototype`은 state model, business rule, data shape, API surface, interaction flow, UI structure에 관한 하나의 구체적 질문을 폐기 가능한 실행 증거로 답합니다. 일반 구현, 기존 장애 원인 진단, 정적 mockup, 열린 아이디어 탐색, production-ready 전달을 가로채지 않습니다.
|
|
28
|
+
- `jhste-subagent-orchestration`은 서브에이전트, 위임, multi-worker 실행, 별도-agent acceptance가 명시적으로 요청되면 선택됩니다. 암묵적으로는 assignment가 decision-complete하고 독립 검증 가능하며, 중요한 판단이 헤드에 남는 경우에만 사용합니다. 일반적인 선형 코딩·진단·프로토타이핑·handoff 작성·finalization·PR review 또는 Kubernetes 같은 도메인 의미의 orchestration은 가로채지 않습니다. 워커 수와 실제 권한·격리는 하네스가 관리합니다.
|
|
27
29
|
- `jhste-diagnosing-bugs`는 이미 관찰된 실패에 재현 신호, 경쟁 가설, 계측, 측정이 필요할 때 담당합니다. 아직 만들지 않은 설계를 시험하는 작업은 `jhste-prototype`입니다.
|
|
28
30
|
- `jhste-grill`은 사용자가 인터뷰나 의사결정 검증을 원할 때만 동작합니다. 사용자 소유 결정이 먼저 필요하면 프로토타입으로 추측하지 않고 인터뷰하며, 결정된 가정의 representability나 ergonomics가 실행 증거를 필요로 하면 `jhste-prototype`으로 넘깁니다.
|
|
29
31
|
- `jhste-domain-modeling`은 도메인 언어와 개념 경계를 담당하며, 단순 변수명 변경이나 일반적인 아키텍처 설명을 가로채지 않습니다.
|
|
30
32
|
- `jhste-to-spec`은 확정된 동작, 계약, 검증, 범위를 정의합니다. 해결되지 않은 설계 가정을 실행해 보는 대신 명세에 추측을 고정하지 않습니다.
|
|
31
33
|
- `jhste-to-tickets`는 GitHub issue graph를 초안 작성하거나 게시합니다. 로컬 handoff 상태를 여러 issue 본문에 중복하지 않습니다.
|
|
32
34
|
- `jhste-handoff`는 handoff 문서를 새로 만들거나 갱신하고, 재개 가능한 단계로 나누는 명시적 요청에서만 동작합니다. 기존 handoff를 읽고 구현을 계속하는 작업 자체는 담당하지 않습니다.
|
|
33
|
-
- `jhste-implementation-finalizer`는 완료 주장, 독립 검증, 최종 감사·수정 의도가 명시된 production 구현을 담당합니다. 폐기 가능한 프로토타입을 production 코드로
|
|
35
|
+
- `jhste-implementation-finalizer`는 완료 주장, 독립 검증, 최종 감사·수정 의도가 명시된 production 구현을 담당합니다. 폐기 가능한 프로토타입을 production 코드로 승격하거나 읽기 전용 acceptance를 수행하는 수단이 아니며, 선택된 방향은 `jhste-coding`으로 다시 구현합니다.
|
|
34
36
|
- `jhste-pr-review`는 검토 전용 요청에만 적용되며 브랜치를 수정하지 않습니다.
|
|
35
37
|
- `jhste-review-followup`은 이미 존재하는 PR 피드백이 범위를 정의할 때만 적용됩니다. 일반적인 작업자 결과 마무리 용도가 아닙니다.
|
|
36
38
|
|
|
37
|
-
이 패키지는 의무적인 TDD workflow, Wayfinder,
|
|
39
|
+
이 패키지는 의무적인 TDD workflow, Wayfinder, 별도 architecture-audit 스킬을 포함하지 않습니다. 오케스트레이션은 실제 워커 조정에만 좁게 적용되며 일반적인 단일-agent delivery workflow를 대체하지 않습니다.
|
|
38
40
|
|
|
39
41
|
## npm에서 사용자 전역 설치
|
|
40
42
|
|
|
41
|
-
이 패키지는 CLI를 제공하지 않습니다.
|
|
43
|
+
이 패키지는 CLI를 제공하지 않습니다. 열두 개 스킬과 Codex metadata를 배포합니다.
|
|
42
44
|
|
|
43
45
|
```sh
|
|
44
46
|
npm install -g jhste-skills
|
|
@@ -55,7 +57,7 @@ mkdir -p "$HOME/.agents/skills"
|
|
|
55
57
|
cp -R skills/. "$HOME/.agents/skills/"
|
|
56
58
|
```
|
|
57
59
|
|
|
58
|
-
다른 agent가 다른 전역 skills 디렉터리를 사용하면 `skills/` 아래
|
|
60
|
+
다른 agent가 다른 전역 skills 디렉터리를 사용하면 `skills/` 아래 열두 개 디렉터리를 그 위치에 복사하세요. 프로젝트별 복사본은 필수가 아닙니다.
|
|
59
61
|
|
|
60
62
|
## 개발 및 검증
|
|
61
63
|
|
|
@@ -64,6 +66,6 @@ npm test
|
|
|
64
66
|
npm pack --dry-run
|
|
65
67
|
```
|
|
66
68
|
|
|
67
|
-
`npm test`는 패키지, metadata, 문서 일관성과
|
|
69
|
+
`npm test`는 패키지, metadata, 문서 일관성과 열 개 스킬을 다루는 정적 라우팅 시나리오 88개를 검사합니다. 이 fixture는 모델을 실제 호출하거나 자동 trigger 정확도를 측정하지 않습니다.
|
|
68
70
|
|
|
69
71
|
외부 출처와 라이선스 표기는 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)에 기록합니다. 새 package version을 포함한 변경이 `main`에 병합되거나 `v*.*.*` release tag가 push되면 GitHub Actions 검증 후 아직 게시되지 않은 버전을 npm trusted publishing으로 배포합니다.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -46,3 +46,43 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
46
46
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
47
47
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
48
48
|
SOFTWARE.
|
|
49
|
+
|
|
50
|
+
## Codexclaw
|
|
51
|
+
|
|
52
|
+
The `jhste-subagent-orchestration` design is independently maintained. Its review considered the following orchestration concepts from `lidge-jun/codexclaw`:
|
|
53
|
+
|
|
54
|
+
- distinguish runtime-enforced harness controls from model-followed guidance;
|
|
55
|
+
- delegate work that is decision-complete, independently verifiable, and bounded so consequential judgment remains with the head;
|
|
56
|
+
- record a head disposition for each worker return before dependent work proceeds;
|
|
57
|
+
- bind verification evidence to the source state it covered so later integration can invalidate stale evidence;
|
|
58
|
+
- treat repeated independent failures of the same unchanged assignment as evidence that the assignment packet may be defective;
|
|
59
|
+
- dispatch independent work in waves and triage required returns before opening dependent work.
|
|
60
|
+
|
|
61
|
+
Upstream reviewed at commit `ecc644e7742dc516ea91777414baf3da1859a162` on 2026-08-03:
|
|
62
|
+
|
|
63
|
+
- https://github.com/lidge-jun/codexclaw
|
|
64
|
+
- https://github.com/lidge-jun/codexclaw/tree/ecc644e7742dc516ea91777414baf3da1859a162
|
|
65
|
+
|
|
66
|
+
The JHSTE skill does not copy Codexclaw's PABCD state machine, hooks, evidence-receipt runtime, role TOMLs, model or reasoning-effort routing, worker-count limits, or fixed retry counts. No Codexclaw source file is distributed verbatim. The full upstream MIT notice is retained conservatively because the resulting instructions adapt several orchestration concepts and terms.
|
|
67
|
+
|
|
68
|
+
### MIT License
|
|
69
|
+
|
|
70
|
+
Copyright (c) 2026 lidge-jun
|
|
71
|
+
|
|
72
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
73
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
74
|
+
in the Software without restriction, including without limitation the rights
|
|
75
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
76
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
77
|
+
furnished to do so, subject to the following conditions:
|
|
78
|
+
|
|
79
|
+
The above copyright notice and this permission notice shall be included in all
|
|
80
|
+
copies or substantial portions of the Software.
|
|
81
|
+
|
|
82
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
83
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
84
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
85
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
86
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
87
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
88
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jhste-skills",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "A lean GPT-5.6-oriented engineering skill set for prototyping, coding, diagnosis, specifications, handoffs, implementation finalization, GitHub tickets, pull request review and follow-up, decision interviews, and domain modeling.",
|
|
3
|
+
"version": "0.10.0",
|
|
4
|
+
"description": "A lean GPT-5.6-oriented engineering skill set for subagent orchestration, prototyping, coding, diagnosis, specifications, handoffs, implementation finalization, GitHub tickets, pull request review and follow-up, decision interviews, and domain modeling.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: jhste-subagent-orchestration
|
|
3
|
+
description: Coordinate low-retention worker agents under a decision-owning head through bounded investigation, implementation, or acceptance assignments, isolated mutation leases, and head-verified evidence. Use whenever the user explicitly asks ChatGPT to delegate to subagents or workers, fan out work across agents, run multi-agent execution, or obtain a separate-agent acceptance pass. Invoke implicitly only when real worker execution exists and decision-complete, independently verifiable workstreams or a genuinely independent check provide concrete structural benefit. Do not invoke implicitly for ordinary coding, diagnosis, prototyping, handoff authoring, implementation finalization, PR review, large-but-linear work, unresolved user decisions, or domain uses of orchestration unrelated to ChatGPT workers. Compose task skills without replacing their contracts.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# JHSTE Subagent Orchestration
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
|
|
10
|
+
Coordinate bounded workers while the head retains canonical state, consequential judgment, ownership, integration, and final verification.
|
|
11
|
+
|
|
12
|
+
Treat each worker as a low-retention leaf with one stage and one outcome. Use workers to widen evidence or execute separable work, not to outsource decisions the head must own.
|
|
13
|
+
|
|
14
|
+
## Establish runtime and authority
|
|
15
|
+
|
|
16
|
+
Confirm that a real worker mechanism is available. An explicit delegation request selects this skill even when the mechanism is unavailable; report the limitation instead of simulating workers or inventing results.
|
|
17
|
+
|
|
18
|
+
Treat harness controls as authoritative for concurrency and actual permissions. Do not set a worker-count limit in this skill. Treat mutation ownership as a head-maintained lease, not a runtime lock, unless the harness provides real isolation.
|
|
19
|
+
|
|
20
|
+
Keep these responsibilities in the head:
|
|
21
|
+
|
|
22
|
+
- Spawn, assign, interrupt, replace, and retire workers.
|
|
23
|
+
- Resolve consequential product, scope, security, data, compatibility, and architecture decisions.
|
|
24
|
+
- Maintain canonical state, dependencies, mutation leases, and live-activity ownership.
|
|
25
|
+
- Verify evidence, choose dispositions, integrate results, and decide completion.
|
|
26
|
+
|
|
27
|
+
Use a star topology. Workers report only to the head and must not spawn, delegate, hand off to one another, or invoke this orchestration skill.
|
|
28
|
+
|
|
29
|
+
## Decide what to delegate
|
|
30
|
+
|
|
31
|
+
For implicit invocation, delegate only when the assignment is:
|
|
32
|
+
|
|
33
|
+
- **Decision-complete:** the packet can state the outcome, settled facts, and decision boundary without asking the worker to invent policy.
|
|
34
|
+
- **Independently verifiable:** the head can check the return through code, a diff, tests, measurements, artifacts, or external state.
|
|
35
|
+
- **Judgment-bounded:** consequential selection and integration remain with the head.
|
|
36
|
+
|
|
37
|
+
Complexity alone is not a reason to delegate. Keep large-but-linear work in the owning task skill when workers would add only coordination cost. Dispatch within harness capacity and use the smallest set of independently ownable assignments that creates a concrete benefit.
|
|
38
|
+
|
|
39
|
+
## Separate stage from task skill
|
|
40
|
+
|
|
41
|
+
Assign exactly one stage independently of the skill used to perform it:
|
|
42
|
+
|
|
43
|
+
- `investigation`: gather evidence without changing production behavior. Explicitly authorized disposable prototype artifacts may support the investigation.
|
|
44
|
+
- `implementation`: execute a settled decision within a fixed mutation and external-write boundary.
|
|
45
|
+
- `acceptance`: independently inspect and verify; keep it read-only by default.
|
|
46
|
+
|
|
47
|
+
Name one primary task skill when a matching installed skill materially improves execution. Supporting skills are optional. The assignment narrows every invoked skill and no skill may expand mutation, delegation, decision, or external-write authority.
|
|
48
|
+
|
|
49
|
+
Use `jhste-diagnosing-bugs` for uncertain root-cause investigation and `jhste-coding` for defined implementation. Use `jhste-prototype` only for a bounded executable experiment, normally inside investigation with explicit artifact authority. Use `jhste-pr-review` only for an identifiable PR review. Do not use `jhste-implementation-finalizer` as a read-only acceptance worker; it belongs to implementation/finalization work that is authorized to correct gaps. Resolve user-owned decisions in the head, using `jhste-grill` before dispatch when needed.
|
|
50
|
+
|
|
51
|
+
Keep investigation, implementation, and acceptance workers separate. Verify investigation evidence before selecting an implementation. After a material correction, use a fresh acceptance worker when the reviewed surface changed enough to invalidate the prior pass.
|
|
52
|
+
|
|
53
|
+
## Maintain canonical state
|
|
54
|
+
|
|
55
|
+
Keep one compact ledger of the objective, user authority, settled decisions, repository state, assignment graph, mutation leases, live activity, evidence, verification, dispositions, and next-wave gates.
|
|
56
|
+
|
|
57
|
+
Treat every worker return as an unverified claim. Check the relevant source, diff, test output, artifact, or external state before changing canonical state. Record each needed return as `accepted`, `rejected`, `merged`, or `superseded` with a short rationale before opening the next dependent wave.
|
|
58
|
+
|
|
59
|
+
When verification evidence can become stale, record the source state it covered, such as the workspace, commit, tree state, or task-owned diff. Re-run affected checks after later integration changes invalidate that basis.
|
|
60
|
+
|
|
61
|
+
Read [references/control-state.md](references/control-state.md) for mutation leases, lifecycle, wave triage, background work, recovery, and completion.
|
|
62
|
+
|
|
63
|
+
## Dispatch self-contained assignments
|
|
64
|
+
|
|
65
|
+
Write every assignment in English as a standalone contract. Include verified context and settled decisions rather than forwarding conversation history. State exact paths, symbols, resources, and expected observations when known.
|
|
66
|
+
|
|
67
|
+
Dispatch only when the packet defines:
|
|
68
|
+
|
|
69
|
+
- One stage, one outcome, and a fixed starting state.
|
|
70
|
+
- The worker's decision boundary and unresolved matters it must return.
|
|
71
|
+
- Read, mutation, and external-write authority, including an exclusive mutation lease where applicable.
|
|
72
|
+
- Deterministic done criteria, verification, and hard-stop conditions.
|
|
73
|
+
- A compact evidence-based report and any live-activity transfer requirement.
|
|
74
|
+
|
|
75
|
+
Do not dispatch an assignment that requires rediscovering requirements, choosing among consequential alternatives, inferring permission, or coordinating with another worker.
|
|
76
|
+
|
|
77
|
+
Read [references/worker-contract.md](references/worker-contract.md) before the first dispatch, a clarification response, or report evaluation.
|
|
78
|
+
|
|
79
|
+
## Operate in verified waves
|
|
80
|
+
|
|
81
|
+
Dispatch the current independent wave within harness capacity, then synthesize its required returns before opening a dependent wave. Prefer safe completion notifications over continuous polling for long-running commands or remote jobs.
|
|
82
|
+
|
|
83
|
+
A worker may enter `waiting_for_head` only for an essential clarification and only when the harness can resume that worker. Reply with a self-contained amendment. If resumption is unavailable, or the outcome, stage, ownership domain, external authority, or consequential decision changes, terminate the assignment and send a fresh contract to a new worker.
|
|
84
|
+
|
|
85
|
+
Do not resume a terminal worker. Give replacements canonical state, not the prior worker conversation. When independent replacements repeatedly fail the same unchanged packet, treat the packet as defective: recheck its context, decision boundary, ownership, and verification oracle, then rewrite, narrow, or reclaim it instead of spawning another copy.
|
|
86
|
+
|
|
87
|
+
Do not release or reassign a mutation lease while its worker owns live activity. Require the worker to stop it or transfer a stable identifier, notification path, intervention limit, termination method, and verification requirement to the head.
|
|
88
|
+
|
|
89
|
+
## Complete in the head
|
|
90
|
+
|
|
91
|
+
Finish only when material requirements have verified status, required returns have dispositions, the integrated result and relevant checks are current, no worker mutation lease remains, every live activity is completed, terminated, or explicitly owned by the head, and authorized external state matches the intended target.
|
|
92
|
+
|
|
93
|
+
Report the verified outcome, checks performed, material limitations, and remaining risks. Never substitute a worker completion claim for head verification.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "JHSTE Subagent Orchestration"
|
|
3
|
+
short_description: "Coordinate bounded workers under head-owned decisions"
|
|
4
|
+
default_prompt: "Use $jhste-subagent-orchestration to coordinate bounded worker assignments under head-owned decisions, isolated mutation leases, and head verification."
|
|
5
|
+
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: true
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Head Control State
|
|
2
|
+
|
|
3
|
+
Use this reference for dependent assignments, mutation leases, live background activity, replacement workers, or multiple waves.
|
|
4
|
+
|
|
5
|
+
## Compact ledger
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
Mission
|
|
9
|
+
- Objective, user authority, forbidden actions
|
|
10
|
+
- Settled decisions and unresolved head decisions
|
|
11
|
+
|
|
12
|
+
Repository
|
|
13
|
+
- Repository, workspace, base, branch, starting commit
|
|
14
|
+
- Known unrelated changes
|
|
15
|
+
|
|
16
|
+
Assignments
|
|
17
|
+
- ID, stage, primary skill, dependencies
|
|
18
|
+
- State: planned | active | waiting_for_head | completed | blocked | failed | discarded
|
|
19
|
+
- Verification: unverified | verified
|
|
20
|
+
- Disposition: pending | accepted | rejected | merged | superseded
|
|
21
|
+
- Disposition rationale
|
|
22
|
+
|
|
23
|
+
Mutation leases
|
|
24
|
+
- Domain, owner assignment, release or transfer condition
|
|
25
|
+
|
|
26
|
+
Live activity
|
|
27
|
+
- Owner, command or job ID, notification path
|
|
28
|
+
- Intervention limit, termination method, verification requirement
|
|
29
|
+
|
|
30
|
+
Next wave gate
|
|
31
|
+
- Required evidence, decisions, dispositions, and available leases
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Track only state that prevents conflicting work, stale evidence, or false completion.
|
|
35
|
+
|
|
36
|
+
## Lifecycle and dispositions
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
planned -> active <-> waiting_for_head
|
|
40
|
+
active -> completed | blocked | failed -> discarded
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Use `waiting_for_head` only when the same worker can resume safely. Never return a terminal worker to `active`.
|
|
44
|
+
|
|
45
|
+
Keep lifecycle, verification, and disposition separate. `completed` is a worker claim. Verify it through direct head inspection, then record each required return as accepted, rejected, merged, or superseded before dependent work proceeds.
|
|
46
|
+
|
|
47
|
+
## Leases and live activity
|
|
48
|
+
|
|
49
|
+
A mutation lease is the head's logical reservation, not proof of a runtime lock. The harness controls actual isolation and permissions. Do not overlap leases for the same mutation domain.
|
|
50
|
+
|
|
51
|
+
Before release or reassignment, verify the resulting state and ensure live activity is completed, terminated, or transferred to the head. A transfer needs a stable identifier, completion notification, intervention limit, termination method, and release check. Silence or worker termination does not release a lease.
|
|
52
|
+
|
|
53
|
+
## Waves and evidence freshness
|
|
54
|
+
|
|
55
|
+
Dispatch independent work within harness capacity and triage required returns before opening a dependent wave.
|
|
56
|
+
|
|
57
|
+
Record the source state covered by important tests, measurements, or acceptance evidence. Re-run affected verification when later integration changes the relevant tree, configuration, data, or external target. Use a fresh acceptance worker after a material correction, not merely to accumulate agreement.
|
|
58
|
+
|
|
59
|
+
## Recovery
|
|
60
|
+
|
|
61
|
+
Classify failure as infrastructure, stale precondition, contract gap, implementation defect, ownership conflict, unauthorized action, or unusable evidence. Give replacements a fresh packet from canonical state.
|
|
62
|
+
|
|
63
|
+
When independent replacements repeatedly fail the same unchanged packet, inspect the packet. Rewrite, narrow, or reclaim it when its context, decision boundary, ownership, or verification oracle is defective. Preserve partial work only when its owner and actual state are known.
|
|
64
|
+
|
|
65
|
+
## Completion gate
|
|
66
|
+
|
|
67
|
+
Complete only when material requirements have verified implementation and verification status, required returns have final dispositions, the integrated surface was inspected, checks are current for the final state, no worker lease remains, live activity is completed, terminated, or head-owned, and authorized external state matches the target with remaining risks explicit.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Worker Contract Protocol
|
|
2
|
+
|
|
3
|
+
Use this reference to create a self-contained assignment, handle one clarification, and evaluate the return. Omit fields that do not affect execution.
|
|
4
|
+
|
|
5
|
+
## Assignment template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Worker Assignment
|
|
9
|
+
## Identity
|
|
10
|
+
- Assignment ID:
|
|
11
|
+
- Stage: investigation | implementation | acceptance
|
|
12
|
+
- Primary task skill: optional
|
|
13
|
+
- Supporting skills: optional
|
|
14
|
+
- Repository, workspace, and starting state:
|
|
15
|
+
## Single outcome
|
|
16
|
+
State the one result this worker must produce.
|
|
17
|
+
## Context and decisions
|
|
18
|
+
List only verified facts, settled decisions, paths, symbols, and identifiers needed here.
|
|
19
|
+
## Decision boundary
|
|
20
|
+
- Worker may decide:
|
|
21
|
+
- Worker must return unresolved:
|
|
22
|
+
## Scope and authority
|
|
23
|
+
- Read scope:
|
|
24
|
+
- Mutation lease: none | exact files, workspace, host, or resource
|
|
25
|
+
- Allowed external writes: none | exact targets and actions
|
|
26
|
+
- Forbidden scope:
|
|
27
|
+
Execution authority: Perform this assignment directly. Do not spawn, delegate, hand off, coordinate with another worker, or invoke `jhste-subagent-orchestration`.
|
|
28
|
+
Authority ceiling: This assignment may narrow any invoked skill. No skill grants additional decision, mutation, delegation, destructive-action, or external-write authority.
|
|
29
|
+
## Procedure, hard stops, and completion
|
|
30
|
+
- Ordered steps, only where sequence matters:
|
|
31
|
+
- Stop conditions:
|
|
32
|
+
- Done criteria:
|
|
33
|
+
- Required verification and expected result:
|
|
34
|
+
- Evidence basis to record, when staleness matters:
|
|
35
|
+
## Required report
|
|
36
|
+
Return the compact report below without routine progress narration.
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Allow read-only inspection inside the stated scope unless forbidden. Enumerate mutation, destructive actions, and external writes rather than every harmless read command.
|
|
40
|
+
|
|
41
|
+
Always stop on a material starting-state mismatch, ownership conflict, missing consequential decision, unavailable required skill or evidence source, need for broader authority, or verification that cannot measure the claimed outcome.
|
|
42
|
+
|
|
43
|
+
## Clarification and amendment
|
|
44
|
+
|
|
45
|
+
Use `waiting_for_head` only when the harness can resume the same worker safely.
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
# Clarification Request
|
|
49
|
+
- Assignment ID:
|
|
50
|
+
- Verified fact or mismatch:
|
|
51
|
+
- Decision or information required:
|
|
52
|
+
- Current live activity and held lease:
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Reply without references to prior conversation:
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
# Assignment Amendment
|
|
59
|
+
- Assignment ID:
|
|
60
|
+
- Changed fact or decision:
|
|
61
|
+
- Scope and authority impact:
|
|
62
|
+
- Hard-stop impact:
|
|
63
|
+
- Verification impact:
|
|
64
|
+
- Everything else remains unchanged: yes | no
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Replace the assignment when the outcome, stage, ownership domain, external authority, or consequential decision changes.
|
|
68
|
+
|
|
69
|
+
## Report template
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# Worker Report
|
|
73
|
+
## Status
|
|
74
|
+
completed | blocked | failed
|
|
75
|
+
## Result and evidence
|
|
76
|
+
State the result first, then cite relevant paths, lines, diff, measurements, artifacts, logs, or external state.
|
|
77
|
+
## Changed resources
|
|
78
|
+
List every modified path or external resource, or `None`.
|
|
79
|
+
## Verification
|
|
80
|
+
- Command or inspection:
|
|
81
|
+
- Observed result and exit status:
|
|
82
|
+
- Evidence basis: workspace, commit, tree state, or task-owned diff when relevant
|
|
83
|
+
## Deviation or blocker
|
|
84
|
+
State any deviation, unmet criterion, or unresolved item, or `None`.
|
|
85
|
+
## Live activity and lease
|
|
86
|
+
- Active commands or jobs, stable identifiers, and notification path:
|
|
87
|
+
- Locks or resources still held:
|
|
88
|
+
- Safe for the head to release or reassign the lease: yes | no
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Include adjacent observations only when they affect completion, safety, or the next assignment.
|
|
92
|
+
|
|
93
|
+
## Stage constraints
|
|
94
|
+
|
|
95
|
+
- **Investigation:** return facts, evidence, candidate explanations, and uncertainty. Do not choose the final consequential decision or change production behavior. Create disposable artifacts only when explicitly authorized.
|
|
96
|
+
- **Implementation:** apply the selected solution inside the lease, preserve named contracts, and stop on a material mismatch. Do not rediscover product requirements or invent recovery policy.
|
|
97
|
+
- **Acceptance:** inspect the complete task-owned change and relevant integration surface. Return evidence-backed findings and a verdict without editing; corrections require a new implementation assignment.
|