@jesdi/skills 0.0.77 → 0.0.78

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.
Files changed (70) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
  3. package/skills/implement-spec/ARCHITECTURE.md +102 -54
  4. package/skills/implement-spec/README.md +53 -51
  5. package/skills/implement-spec/SKILL.md +5 -6
  6. package/skills/implement-spec/driver.py +67 -153
  7. package/skills/implement-spec/driver_agents.py +75 -25
  8. package/skills/implement-spec/driver_decisions.py +92 -199
  9. package/skills/implement-spec/driver_dispute.py +189 -0
  10. package/skills/implement-spec/driver_final.py +196 -97
  11. package/skills/implement-spec/driver_fixloop.py +102 -192
  12. package/skills/implement-spec/driver_legacy.py +73 -5
  13. package/skills/implement-spec/driver_locked.py +186 -0
  14. package/skills/implement-spec/driver_merge.py +3 -48
  15. package/skills/implement-spec/driver_report.py +84 -64
  16. package/skills/implement-spec/driver_review.py +12 -119
  17. package/skills/implement-spec/driver_run.py +167 -130
  18. package/skills/implement-spec/driver_state.py +11 -9
  19. package/skills/implement-spec/models.json +0 -2
  20. package/skills/implement-spec/prompts/arbitration.md +34 -0
  21. package/skills/implement-spec/prompts/conflict.md +1 -0
  22. package/skills/implement-spec/prompts/correction.md +7 -4
  23. package/skills/implement-spec/prompts/elsewhere.md +6 -0
  24. package/skills/implement-spec/prompts/final-fixer.md +1 -1
  25. package/skills/implement-spec/prompts/final-lens.md +40 -0
  26. package/skills/implement-spec/prompts/final-reviewer.md +7 -7
  27. package/skills/implement-spec/prompts/fixer.md +2 -2
  28. package/skills/implement-spec/prompts/implementer.md +1 -1
  29. package/skills/implement-spec/prompts/lens-copy.md +1 -0
  30. package/skills/implement-spec/prompts/lens-correctness.md +8 -0
  31. package/skills/implement-spec/prompts/lens-spec.md +2 -0
  32. package/skills/implement-spec/prompts/lens-structure.md +2 -0
  33. package/skills/implement-spec/prompts/rebase-conflict.md +1 -0
  34. package/skills/implement-spec/prompts/rereview.md +0 -1
  35. package/skills/implement-spec/prompts/rerun.md +1 -1
  36. package/skills/implement-spec/prompts/reviewer.md +3 -6
  37. package/skills/implement-spec/prompts/ruled.md +3 -0
  38. package/skills/implement-spec/prompts/test-writer.md +4 -5
  39. package/skills/implement-spec/tests/test_agents.py +23 -22
  40. package/skills/implement-spec/tests/test_amendments.py +6 -48
  41. package/skills/implement-spec/tests/test_arbitration.py +314 -0
  42. package/skills/implement-spec/tests/test_cli.py +3 -3
  43. package/skills/implement-spec/tests/test_decisions.py +251 -374
  44. package/skills/implement-spec/tests/test_driver.py +22 -50
  45. package/skills/implement-spec/tests/test_final.py +45 -77
  46. package/skills/implement-spec/tests/test_fixloop.py +400 -633
  47. package/skills/implement-spec/tests/test_landing.py +23 -126
  48. package/skills/implement-spec/tests/test_lenses.py +217 -0
  49. package/skills/implement-spec/tests/test_merge.py +0 -43
  50. package/skills/implement-spec/tests/test_models.py +50 -1
  51. package/skills/implement-spec/tests/test_report.py +9 -23
  52. package/skills/implement-spec/tests/test_review.py +15 -153
  53. package/skills/implement-spec/tests/test_review_page.py +7 -3
  54. package/skills/implement-spec/tests/test_scoped.py +125 -0
  55. package/skills/implement-spec/tests/test_state.py +8 -3
  56. package/skills/implement-spec/tests/test_stops.py +43 -61
  57. package/skills/implement-spec/tests/test_tidy.py +77 -98
  58. package/skills/implement-spec/tests/test_walk.py +7 -6
  59. package/skills/review-page/SKILL.md +1 -1
  60. package/skills/to-tickets/SKILL.md +1 -1
  61. package/skills-manifest.json +7 -7
  62. package/skills/implement-spec/prompts/corrected.md +0 -3
  63. package/skills/implement-spec/prompts/correctness.md +0 -42
  64. package/skills/implement-spec/prompts/final-scoped.md +0 -1
  65. package/skills/implement-spec/prompts/full-review.md +0 -2
  66. package/skills/implement-spec/prompts/overruled.md +0 -7
  67. package/skills/implement-spec/prompts/rejected.md +0 -1
  68. package/skills/implement-spec/prompts/restored-red.md +0 -3
  69. package/skills/implement-spec/prompts/restored.md +0 -3
  70. package/skills/implement-spec/prompts/stands.md +0 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-10-29T12:22:26.879Z",
3
+ "generatedAt": "2026-10-31T08:31:27.446Z",
4
4
  "skills": [
5
5
  {
6
6
  "name": "agents-wayfinder",
@@ -58,8 +58,8 @@
58
58
  },
59
59
  {
60
60
  "name": "implement-spec",
61
- "version": "0.1.46",
62
- "hash": "sha256-fc47dd018aeb520ba6db5196f2487bdf126c1c447d250462767f2a1fd72d6664",
61
+ "version": "0.1.47",
62
+ "hash": "sha256-0aef522504cc63d918dd8731f9b2fa00e33c7291c680f37c3dfc6a08adc38d93",
63
63
  "description": "Implement a specification in code."
64
64
  },
65
65
  {
@@ -94,8 +94,8 @@
94
94
  },
95
95
  {
96
96
  "name": "review-page",
97
- "version": "0.1.1",
98
- "hash": "sha256-e8204e4c6f05e2721a20d9ac3f72b8ff84a2854647688bb9bf057312b53a59f4",
97
+ "version": "0.1.2",
98
+ "hash": "sha256-12746275595aafc21ea043843ee89a6bbc6f5a82e1e5440af831a1f3384b63d7",
99
99
  "description": "One interactive HTML page for a plan review or a questionnaire, built from a fixed template. Use when a pipeline session must deliver a plan review or a questionnaire as an interactive page the console shows."
100
100
  },
101
101
  {
@@ -118,8 +118,8 @@
118
118
  },
119
119
  {
120
120
  "name": "to-tickets",
121
- "version": "0.1.6",
122
- "hash": "sha256-b8e508cc04da4cb7b2645ae67198ff7b7404970a51bd4d7167366b0e4eec7d5d",
121
+ "version": "0.1.7",
122
+ "hash": "sha256-c67cfed832cad39836bd054f7ca3ce423f4dc51055aa07e14c773c3bafa922f4",
123
123
  "description": "Break a spec, plan, or the current conversation into numbered tracer-bullet ticket files under .agent/tickets/, each declaring its blocking edges and acceptance criteria phrased as observable behavior. Use after a spec is approved and before implementation starts."
124
124
  },
125
125
  {
@@ -1,3 +0,0 @@
1
-
2
- When this correction adds a requirement, update each shared fake or fixture that other locked tests use, so that those tests satisfy the requirement too. List each file you change in `locked`, and each one that holds no test in `fixtures` too.
3
- Then run each whole file of `locked` and each locked test of merged tickets. In `concerns`, name each red test and why it is expected to be red, or write that all are green.
@@ -1,42 +0,0 @@
1
- # Correctness pass
2
-
3
- Spec: {spec}
4
- Ticket: {ticket}
5
- Seam: {seam}
6
- Range: {pr_branch}...{branch}, with the ticket tip at {start_sha}
7
- Locked files: {locked}
8
-
9
- Apply each check of the review-diff checks below to the diff of the range, with the Risk line of the ticket first: races, idempotency, time, authorization, persistence keys and identities, migrations, error paths.
10
- The output section of the checks does not apply here: your findings go into the report.
11
-
12
- <checks>
13
- {correctness}
14
- </checks>
15
-
16
- Read file content from git at {start_sha} (`git diff`, `git show {start_sha}:<path>`), never from the working tree, and run no tests: another agent makes temporary edits in this worktree while you work.
17
- The one exception is the input of the driver, which git can lack because `.agent/` is ignored: read the spec, the ticket and the findings file from the working tree. The other agent does not edit them.
18
- Report only a defect that you can show with a concrete sequence of events. Put an unmet ticket criterion or regression of merged-ticket behavior in `findings`; put every other defect in `observations` for final review. Set `basis` on each finding to `criterion` or `regression` accordingly. `mutations` is optional for this pass.
19
- Give each finding a severity (critical, important or minor), the file and line, a title, the evidence, and a kind: `fixture` when a locked test encodes a stale path, format or setup detail; `test` when a test is weak or missing, as a locked test that stays green when you break the line it protects; `code` for anything else. The test-writer corrects each `fixture` finding and each critical or important `test` finding on a locked file, and the fixer gets the rest.
20
- Do not commit and do not dispatch subagents. Leave the tree as you found it.
21
-
22
- Write one JSON report at {report}. When your sandbox is read-only, give the JSON as your whole final message and the driver saves it there. The report matches this schema:
23
-
24
- ```json
25
- {
26
- "type": "object",
27
- "required": ["status", "files", "concerns", "findings"],
28
- "properties": {
29
- "status": {"enum": ["DONE", "DONE_WITH_CONCERNS", "NEEDS_CONTEXT", "BLOCKED"]},
30
- "files": {"type": "array", "items": {"type": "string"}},
31
- "concerns": {"type": "array", "items": {"type": "string"}},
32
- "findings": {"type": "array", "items": {"type": "object", "required": ["severity", "file", "line", "title", "evidence", "kind"], "properties": {"severity": {"enum": ["critical", "important", "minor"]}, "file": {"type": "string"}, "line": {"type": "integer"}, "title": {"type": "string", "minLength": 1}, "evidence": {"type": "string", "minLength": 1}, "kind": {"enum": ["code", "fixture", "test"]}, "basis": {"enum": ["criterion", "regression"]}}}},
33
- "observations": {"type": "array", "items": {"type": "object", "required": ["severity", "file", "line", "title", "evidence", "kind"], "properties": {"severity": {"enum": ["critical", "important", "minor"]}, "file": {"type": "string"}, "line": {"type": "integer"}, "title": {"type": "string", "minLength": 1}, "evidence": {"type": "string", "minLength": 1}, "kind": {"enum": ["code", "fixture", "test"]}}}},
34
- "regressions": {"description": "After a fix: new regressions introduced by that fix. Set basis to criterion when a ticket criterion fails, or regression when merged-ticket behavior fails.", "type": "array", "items": {"type": "object", "required": ["severity", "file", "line", "title", "evidence", "kind"], "properties": {"severity": {"enum": ["critical", "important", "minor"]}, "file": {"type": "string"}, "line": {"type": "integer"}, "title": {"type": "string", "minLength": 1}, "evidence": {"type": "string", "minLength": 1}, "kind": {"enum": ["code", "fixture", "test"]}, "basis": {"enum": ["criterion", "regression"]}}}},
35
- "mutations": {"description": "Optional for this pass.", "type": "array", "items": {"type": "object", "required": ["test", "file", "line", "red"], "properties": {"test": {"type": "string", "minLength": 1}, "file": {"type": "string", "minLength": 1}, "line": {"type": "integer"}, "red": {"type": "string", "minLength": 1}}}}
36
- }
37
- }
38
- ```
39
-
40
- Run git as plain `git` in this worktree, and leave the git config as it is: all worktrees read one shared config, and one key written there, such as a `core.worktree`, breaks git in each of them. So never set GIT_DIR or GIT_WORK_TREE, and never write with `git config`.
41
- The gate record of the driver for {start_sha} is {gate_record}.
42
- Never run `git stash`, never reset, and never check out another branch: worktrees share one stash and one ref store.
@@ -1 +0,0 @@
1
- This is the scoped review after the fix batch: the range holds only the `fix(NN)` commits, and the commits up to {reviewed} have their review. Check that each critical or important finding in {findings} is fixed, including every must-fix finding, and that the fix commits break nothing else. Put each verified must-fix title in `resolved_must_fix`.
@@ -1,2 +0,0 @@
1
-
2
- This is a full review of {start_sha}: give one mutation proof or more for each of these locked test files: {locked_tests}
@@ -1,7 +0,0 @@
1
-
2
- This call is a correction after a ruling, not a new test set. The implementer or the fixer reported that a locked test contradicts the spec or the ticket, and the operator ruled that the test is wrong: read `concerns` in {blocked_report}.
3
- Correct only the tests that those concerns name, so that they state what the spec and the ticket require. Keep each other test as it is.
4
- The branch can hold commits of the implementer, and the tree can hold its uncommitted work: change neither, and commit only the test files you correct.
5
- A corrected test fails because the behavior is missing: run it, print that failing output, and give its failure line in `red`. A corrected test can be green, because the implementer's code is there: then break the production line that the test protects, run the test, print its failing output, give that line in `red`, and revert the edit. In `locked`, list each test file you corrected.
6
- When a concern needs no test change, leave the test as it is and add the concern to `not_addressed`: `finding` is its text, copied exactly from this list, and `reason` is why the test stands:
7
- {overruled}
@@ -1 +0,0 @@
1
- Before the ruling of the operator, the driver rejected two reports of this role in this review: {rejection}. This time, give what the driver asked for.
@@ -1,3 +0,0 @@
1
-
2
- The driver ran the gate on that commit, {start_sha}, and the gate is red: read the output in {record}. The gate was green before the restore, so a restored file fails with the code of this ticket.
3
- Update each restored file that fails so that it works with the new interface: keep what each test asserts, and list the file in `locked`. When no such update can keep what a test asserts, report BLOCKED with a concern that starts with `locked test contradicts spec:`, then the test and the evidence.
@@ -1,3 +0,0 @@
1
-
2
- The driver put back these files at their locked versions, in a commit before this call, because the implementer or a fixer had changed them: {restored}.
3
- A fixer may not change a locked file. When a test in one of these files now fails only because this ticket changed an interface that the test uses, update that file so it works with the new interface: keep what each test asserts, and list the file in `locked`. Else leave the file as it is, unless a finding of this correction is on it.
@@ -1,2 +0,0 @@
1
-
2
- The earlier attempt reported that a locked test contradicts the spec, and the operator ruled that the locked tests stand as they are. Your earlier commits are on the branch and your uncommitted work is in the tree: continue from them and make the locked tests green. Do not report that contradiction again.