thoth-agents 0.2.9 → 0.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thoth-agents",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "Delegate-first OpenCode plugin with seven agents, thoth-mem persistence, and bundled SDD skills.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,19 +47,43 @@ The orchestrator passes the artifact store mode (`thoth-mem`, `openspec`, or
47
47
  - In accelerated pipeline, derive task structure directly from the proposal.
48
48
  3. If a task plan already exists, recover `sdd/{change-name}/tasks` with the
49
49
  same mode-aware retrieval rules before rewriting it.
50
- 4. **Validate existing-file references**: For every task that modifies an existing file (not creates a new one), verify the file actually exists on disk before including it in the task list. If a referenced "existing" file is not found, flag it as a design defect in an `> ⚠️ Warning` block at the top of the tasks artifact, and omit the task or add a note.
51
- 5. **Codebase discovery (required when design artifact is absent or lacks file paths)**:
52
- Before generating tasks, actively explore the repository to gather the concrete data needed for accurate Verification blocks:
53
- 1. Read the project's build manifest or task runner config (e.g., `package.json`, `Makefile`, `Cargo.toml`, `.csproj`, `pyproject.toml`) to discover available commands for testing, building, linting, and type-checking. Use the exact commands the project defines in `Run:` fields — never invent commands that don't exist in the project.
54
- 2. Explore the directory structure of affected areas to confirm actual file paths and module layout.
55
- 3. Check for existing test files (e.g., `*.test.ts`, `*.spec.ts`) to reference in Verification commands.
56
- 4. Use the proposal's "Affected Areas" and "Approach" as navigation hints, not as authoritative file paths.
57
-
58
- This exploration is mandatory in accelerated pipeline. In full pipeline, prefer paths from the design artifact's `File Changes` section but still validate commands from `package.json`.
50
+ 4. **Reuse settled evidence before validating**: Reuse settled proposal, design, exploration, and handoff evidence first. Treat accepted scope, success
51
+ criteria, recorded assumptions, and surfaced `handoffHints` as preservation
52
+ constraints. Do not repeat broad discovery merely because the accelerated
53
+ pipeline has no design artifact or because an available artifact omits a
54
+ path.
55
+ 5. **Run bounded validation**: Validate only the accepted affected areas, the
56
+ authoritative command source, task-referenced existing files, and neighboring relevant tests needed to make the plan executable.
57
+ - Identify the authoritative command source from project instructions and
58
+ existing conventions (for example `package.json`, `Makefile`, `Cargo.toml`,
59
+ `.csproj`, or `pyproject.toml`). Use only commands confirmed there in
60
+ `Run:` fields; never invent commands or imply that an unchecked command
61
+ exists.
62
+ - For every task that modifies an existing file, verify that path within the
63
+ accepted affected areas. Check neighboring relevant tests only where they
64
+ support a planned task or its Verification block. Never present an unverified path, command, or test reference as confirmed.
65
+ - Do not expand this pass into repository-wide discovery. If a required
66
+ reference remains unresolved, defer or omit the dependent task, add a
67
+ bounded discovery or coordination task when appropriate, and record the
68
+ unresolved reference once under `## Validation Gaps`.
69
+ - Emit one entry per unresolved reference using this exact structure:
70
+
71
+ ```md
72
+ ## Validation Gaps
73
+
74
+ | Target | Checks performed | Impact / task disposition | Next action |
75
+ | --- | --- | --- | --- |
76
+ | {unverified path, command, or test} | {bounded checks completed} | {blocked, deferred, omitted, or follow-up task} | {specific discovery, owner, or decision needed} |
77
+ ```
78
+
79
+ - Escalate a gap that prevents an executable plan. If the accumulated gaps or
80
+ cross-area validation exceed bounded mechanical planning, recommend
81
+ escalation or complexity-based routing; do not use role changes as generic
82
+ failure recovery.
59
83
  6. Build a phased checklist for `openspec/changes/{change-name}/tasks.md`. In
60
84
  `thoth-mem` mode, produce the same canonical checklist content without
61
85
  creating the file.
62
- 5. Use hierarchical numbering and Markdown checkboxes with per-task verification:
86
+ 7. Use hierarchical numbering and Markdown checkboxes with per-task verification:
63
87
 
64
88
  ```md
65
89
  # Tasks: {Change Title}
@@ -112,21 +136,21 @@ The orchestrator passes the artifact store mode (`thoth-mem`, `openspec`, or
112
136
  - `- [x]` completed
113
137
  - `- [-]` skipped — always append a reason: `- [-] 1.2 Task name — skipped: reason here`
114
138
 
115
- 7. Reference concrete file paths and specific spec scenarios in the tasks.
116
- 8. If the selected mode includes thoth-mem, persist the full checklist with:
139
+ 8. Reference concrete file paths and specific spec scenarios in the tasks.
140
+ 9. If the selected mode includes thoth-mem, persist the full checklist with:
117
141
 
118
142
  Use the memory tool binding for `mem_save` with the canonical SDD topic key
119
143
  and required metadata fields: `title`, `topic_key`, `type`, `project`,
120
144
  `scope`, and `content`.
121
145
 
122
- 9. After `tasks.md` is generated, the workflow proceeds to an optional oracle
146
+ 10. After `tasks.md` is generated, the workflow proceeds to an optional oracle
123
147
  plan review via the `plan-reviewer` skill. This is managed outside the scope
124
148
  of this skill.
125
- 10. The artifact governance validator may run **after** `sdd-tasks` as a
149
+ 11. The artifact governance validator may run **after** `sdd-tasks` as a
126
150
  report-only handoff. It captures placement guidance for the future
127
151
  pre-`sdd-apply` entrypoint, but it does not enforce execution or overlap
128
152
  with plan review.
129
- 11. The orchestrator handles the `[OKAY]` / `[REJECT]` review loop and any
153
+ 12. The orchestrator handles the `[OKAY]` / `[REJECT]` review loop and any
130
154
  necessary fixes before proceeding to execution.
131
155
 
132
156
  ## Traceability, TDD Ordering, and Handoff Hints