thoth-agents 0.4.1 → 0.5.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/LICENSE +30 -0
- package/README.md +86 -58
- package/dist/agents/prompt-sections.d.ts +5 -3
- package/dist/agents/prompt-utils.d.ts +1 -1
- package/dist/agents/worker.d.ts +2 -0
- package/dist/{chunk-STCURXAQ.js → chunk-MRFCA3U2.js} +33 -67
- package/dist/{chunk-EFGSGPYM.js → chunk-OW6I7ZUU.js} +391 -416
- package/dist/chunk-V7HSGRMB.js +1016 -0
- package/dist/{chunk-2D7E7GMP.js → chunk-VUNYH263.js} +1650 -380
- package/dist/cli/claude-code-paths.d.ts +2 -2
- package/dist/cli/codex-install.d.ts +5 -2
- package/dist/cli/codex-paths.d.ts +2 -2
- package/dist/cli/index.js +47 -11
- package/dist/cli/model-defaults.d.ts +4 -0
- package/dist/cli/operations/pi.d.ts +1 -0
- package/dist/cli/pi-effort.d.ts +1 -1
- package/dist/cli/pi-external-package.d.ts +24 -0
- package/dist/cli/pi-git-source.d.ts +1 -0
- package/dist/cli/pi-install.d.ts +92 -15
- package/dist/cli/pi-managed-write.d.ts +3 -0
- package/dist/cli/pi-model-config.d.ts +17 -0
- package/dist/cli/pi-native-probe.d.ts +2 -0
- package/dist/cli/pi-paths.d.ts +2 -0
- package/dist/cli/pi-resources.d.ts +3 -1
- package/dist/cli/pi-tool-config.d.ts +32 -0
- package/dist/cli/tui/index.js +32 -7
- package/dist/cli/tui/operations.d.ts +3 -1
- package/dist/cli/types.d.ts +2 -0
- package/dist/config/constants.d.ts +4 -8
- package/dist/config/schema.d.ts +7 -36
- package/dist/harness/adapters/claude-code.d.ts +2 -4
- package/dist/harness/core/agent-pack.d.ts +52 -42
- package/dist/harness/core/memory-governance.d.ts +2 -2
- package/dist/harness/core/sdd.d.ts +159 -319
- package/dist/harness/writers/pi-agent.d.ts +3 -1
- package/dist/index.js +12 -6
- package/dist/pi/tools-panel.d.ts +51 -0
- package/dist/pi.d.ts +44 -2
- package/dist/pi.js +471 -9
- package/dist/utils/subprocess.d.ts +1 -0
- package/package.json +18 -4
- package/pi/.thoth-agents-assets.json +5 -6
- package/pi/agents/thoth-designer.md +23 -8
- package/pi/agents/thoth-explorer.md +29 -9
- package/pi/agents/thoth-librarian.md +30 -8
- package/pi/agents/thoth-oracle.md +18 -10
- package/pi/agents/thoth-worker.md +96 -0
- package/plugin/.claude-plugin/.thoth-agents-plugin-assets.json +7 -12
- package/plugin/.claude-plugin/plugin.json +2 -2
- package/plugin/.codex-plugin/plugin.json +2 -2
- package/plugin/agents/designer.md +13 -5
- package/plugin/agents/explorer.md +16 -5
- package/plugin/agents/librarian.md +15 -4
- package/plugin/agents/oracle.md +13 -7
- package/plugin/agents/orchestrator.md +82 -91
- package/plugin/agents/worker.md +76 -0
- package/plugin/skills/plan-reviewer/SKILL.md +39 -141
- package/plugin/skills/thoth-archive/SKILL.md +50 -47
- package/plugin/skills/thoth-archive/scripts/archive.mjs +287 -654
- package/plugin/skills/thoth-constitution/SKILL.md +23 -42
- package/plugin/skills/thoth-constitution/templates/constitution.md +54 -44
- package/plugin/skills/thoth-init/SKILL.md +19 -29
- package/plugin/skills/thoth-init/scripts/init.mjs +73 -66
- package/plugin/skills/thoth-sdd/SKILL.md +164 -117
- package/plugin/skills/thoth-sdd/references/phases/checklist.md +2 -22
- package/plugin/skills/thoth-sdd/references/phases/clarify.md +14 -12
- package/plugin/skills/thoth-sdd/references/phases/converge.md +2 -13
- package/plugin/skills/thoth-sdd/references/phases/explore.md +3 -8
- package/plugin/skills/thoth-sdd/references/phases/implement.md +58 -57
- package/plugin/skills/thoth-sdd/references/phases/plan.md +2 -18
- package/plugin/skills/thoth-sdd/references/phases/specify.md +2 -33
- package/plugin/skills/thoth-sdd/references/phases/tasks.md +4 -45
- package/plugin/skills/thoth-sdd/references/phases/verify.md +4 -22
- package/plugin/skills/thoth-sdd/scripts/validate.mjs +610 -1232
- package/plugin/skills/thoth-sdd/templates/change.md +94 -0
- package/skills/README.md +11 -13
- package/skills/plan-reviewer/SKILL.md +39 -141
- package/skills/thoth-archive/SKILL.md +50 -47
- package/skills/thoth-archive/scripts/archive.mjs +287 -654
- package/skills/thoth-constitution/SKILL.md +23 -42
- package/skills/thoth-constitution/templates/constitution.md +54 -44
- package/skills/thoth-init/SKILL.md +19 -29
- package/skills/thoth-init/scripts/init.mjs +73 -66
- package/skills/thoth-sdd/SKILL.md +164 -117
- package/skills/thoth-sdd/references/phases/checklist.md +2 -22
- package/skills/thoth-sdd/references/phases/clarify.md +14 -12
- package/skills/thoth-sdd/references/phases/converge.md +2 -13
- package/skills/thoth-sdd/references/phases/explore.md +3 -8
- package/skills/thoth-sdd/references/phases/implement.md +58 -57
- package/skills/thoth-sdd/references/phases/plan.md +2 -18
- package/skills/thoth-sdd/references/phases/specify.md +2 -33
- package/skills/thoth-sdd/references/phases/tasks.md +4 -45
- package/skills/thoth-sdd/references/phases/verify.md +4 -22
- package/skills/thoth-sdd/scripts/validate.mjs +610 -1232
- package/skills/thoth-sdd/templates/change.md +94 -0
- package/thoth-agents.schema.json +9 -77
- package/dist/agents/deep.d.ts +0 -2
- package/dist/agents/quick.d.ts +0 -2
- package/dist/chunk-2U5MBLLV.js +0 -312
- package/pi/agents/thoth-deep.md +0 -81
- package/pi/agents/thoth-quick.md +0 -81
- package/plugin/agents/deep.md +0 -68
- package/plugin/agents/quick.md +0 -68
- package/plugin/skills/plan-reviewer/templates/plan-review.md +0 -65
- package/plugin/skills/thoth-sdd/templates/archive-report.md +0 -25
- package/plugin/skills/thoth-sdd/templates/checklist.md +0 -27
- package/plugin/skills/thoth-sdd/templates/plan.md +0 -46
- package/plugin/skills/thoth-sdd/templates/spec.md +0 -62
- package/plugin/skills/thoth-sdd/templates/tasks.md +0 -58
- package/plugin/skills/thoth-sdd/templates/verify-report.md +0 -28
- package/skills/plan-reviewer/templates/plan-review.md +0 -65
- package/skills/thoth-sdd/templates/archive-report.md +0 -25
- package/skills/thoth-sdd/templates/checklist.md +0 -27
- package/skills/thoth-sdd/templates/plan.md +0 -46
- package/skills/thoth-sdd/templates/spec.md +0 -62
- package/skills/thoth-sdd/templates/tasks.md +0 -58
- package/skills/thoth-sdd/templates/verify-report.md +0 -28
|
@@ -1,48 +1,7 @@
|
|
|
1
|
-
# Tasks
|
|
1
|
+
# Tasks
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
**Output**: `openspec/changes/<feature>/tasks.md`
|
|
3
|
+
For substantial work, record only useful implementation slices in the same ID-named record. `tasks` and `ready` gates require every accepted outcome to have concrete task coverage; planning does not. Use one checkbox row per independently acceptable work unit, with the validator-compatible `- [ ] AC-n: ...` form on that row; repeat an AC number when separate units contribute to it. Keep the outcome in the row and indent its details as shown in the template: exact known entrypoints and skill paths; concrete accepted inputs and upstream dependencies; produced output; owner, owned writes and interface boundaries; focused check with observable PASS evidence; meaningful return milestone; and stop/escalation condition. Mark writes as `none` for read-only work.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
containing the installed `thoth-sdd/SKILL.md`.
|
|
5
|
+
Split a phase that contains separately acceptable outcomes before dispatch. Keep tiny cohesive mechanical edits together; do not fragment by file, test step, or mandatory agent phase. A dependent unit names the producer and accepted output, and starts only after root accepts it. Independent, precise Explorer questions may run in parallel within native capacity; dependent questions wait, and discovery is not repeated. Follow the specific discovery ownership policy when assigning evidence gathering.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
```text
|
|
12
|
-
- [ ] T### [P?] [US#?] description with FR-###/SC-### coverage in `exact/path` | Verify: observable outcome
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
IDs start at `T001` and remain unique and sequential across the entire file;
|
|
16
|
-
never reset numbering per story or section. `[P]`, when present, precedes
|
|
17
|
-
`[US#]`; omit `[US#]` only for shared setup or closeout. Before `| Verify:`, use
|
|
18
|
-
exactly one backtick span containing one literal repository-relative path and no
|
|
19
|
-
placeholder, glob, absolute path, URI, home path, or repository escape. Cover
|
|
20
|
-
every FR and **buildable** SC. Outcome SCs remain verification targets but do
|
|
21
|
-
not justify artificial implementation tasks.
|
|
22
|
-
|
|
23
|
-
Order test-first work before its implementation, group tasks by independently
|
|
24
|
-
deliverable story, identify the MVP, and state dependencies. `[P]` is permitted
|
|
25
|
-
only for tasks assigned to a declared lane whose mutable path union does not
|
|
26
|
-
overlap another lane in the same group. If there is no safe parallel work, use
|
|
27
|
-
`- None: <evidence-backed reason>` instead. Avoid ceremonial tasks.
|
|
28
|
-
|
|
29
|
-
## Parallel execution
|
|
30
|
-
|
|
31
|
-
Declare safe work with this exact grammar:
|
|
32
|
-
|
|
33
|
-
### Group P1
|
|
34
|
-
|
|
35
|
-
- Lane L1: T001 -> T002 | Owner: deep
|
|
36
|
-
- Lane L2: T003 -> T004 | Owner: quick
|
|
37
|
-
- Prerequisites: None
|
|
38
|
-
- Barrier: Final verification
|
|
39
|
-
- Rationale: Both lane path sets are disjoint and neither lane consumes peer output.
|
|
40
|
-
|
|
41
|
-
Groups and lanes are sequential and unique. Every `[P]` task belongs to exactly one lane; non-`[P]` tasks do not. Lane surfaces are the union of exact task
|
|
42
|
-
paths, and lanes in a group have disjoint surfaces and no cross-lane dependency.
|
|
43
|
-
The `Rationale` must explicitly state path-disjointness and cross-lane dependency
|
|
44
|
-
evidence so structural validation can gate the evidence shape and Oracle can
|
|
45
|
-
judge whether the claim is true.
|
|
46
|
-
Prerequisites name known tasks outside the group; the barrier is a downstream
|
|
47
|
-
task or `Final verification` after all lane members. If no group exists, use
|
|
48
|
-
only `- None: <evidence-backed reason>` and no task may use `[P]`.
|
|
7
|
+
Set meaningful native progress milestones; do not substitute a generous timeout. Preserve operator-selected model and effort. Test-first for behavior changes. Refine technical detail within accepted intent. Missing inputs or interfaces, conflicting ownership, a new independently acceptable outcome, or material scope or risk growth returns bounded progress to root for reassessment before expansion. Native harness owns liveness and waits. Keep one writer per surface and no scheduler, sidecar report, process tool, execution wrapper, or temporary artifact.
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
# Verify
|
|
1
|
+
# Verify
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Every change requires final verification against accepted outcomes and actual execution evidence. Small low-risk work uses focused independent root checks; substantial or materially risky work requires a fresh read-only Oracle independent from the writer. Judge the actual diff, behavior, completeness, correctness, coherence, checks, and residual risks.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
may be verified by Root with focused deterministic checks. Materially risky
|
|
7
|
-
Direct work and Accelerated or Full final verification use a fresh read-only
|
|
8
|
-
Oracle. The implementation writer never approves its own work. Inspect changed
|
|
9
|
-
code and run or validate the smallest sufficient checks.
|
|
5
|
+
Before requesting final Oracle for substantial work, run `node "<skill-dir>/scripts/validate.mjs" --change .thoth/changes/<id> --through verify --json`. This gate requires ready coverage, complete tasks, authorization disposition/provenance, and reviewed source digests/baselines; final-review fields, AC evidence rows, and Archive may remain placeholders. For each capability named by a durable delta, add exactly one `Source` entry for `.thoth/specs/<capability>/spec.md`: its reviewed SHA-256 when it exists, or `absent` only when no canonical file exists.
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
coverage, **correctness** against behavioral contracts and executed evidence,
|
|
13
|
-
and **coherence** across artifacts, code, tests, and documentation. Map every FR
|
|
14
|
-
and buildable SC to implementation evidence and an executed check. Record
|
|
15
|
-
each outcome SC as PASS with concrete observed evidence or as RISK with an
|
|
16
|
-
explicit ID-matched residual-risk entry, never as an invented implementation
|
|
17
|
-
task.
|
|
18
|
-
|
|
19
|
-
Return `pass` or `fail`, compliance matrix, commands/results, stable findings,
|
|
20
|
-
critical issues, warnings, and remediation anchors. For Direct, return the
|
|
21
|
-
verdict in-session regardless of owner. For Accelerated and Full, root persists Oracle's exact result
|
|
22
|
-
using `<skill-dir>/templates/verify-report.md`, where `<skill-dir>` is the
|
|
23
|
-
directory containing the installed `thoth-sdd/SKILL.md`. Fail routes to converge
|
|
24
|
-
(straight back to implement for Direct); PASS permits closeout and archive for
|
|
25
|
-
artifact-backed routes.
|
|
7
|
+
After review, record each outcome's concrete PASS evidence, actual checks, source SHA-256 digests, and the hash of exact UTF-8 record bytes preceding the case-sensitive `## Authorization` heading. After PASS, edits confined to Authorization, Verification, or Closeout need no new review; any edit before `## Authorization` requires fresh independent review and a new digest. This allowance never waives structural checks, truthful provenance, stale-source rejection, or review of changed implementation. Recheck baselines after review; missing or stale digests/absence, missing evidence, or blockers prevent closeout and archive. Never create a verification report or evidence directory; route actionable findings to convergence.
|