@jesdi/skills 0.0.68 → 0.0.70
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 +1 -1
- package/skills/agents-wayfinder/SKILL.md +1 -1
- package/skills/implement-spec/ARCHITECTURE.md +5 -5
- package/skills/implement-spec/README.md +12 -12
- package/skills/implement-spec/SKILL.md +1 -1
- package/skills/implement-spec/driver_agents.py +3 -1
- package/skills/implement-spec/driver_final.py +38 -10
- package/skills/implement-spec/driver_fixloop.py +91 -17
- package/skills/implement-spec/driver_report.py +9 -1
- package/skills/implement-spec/driver_review.py +1 -0
- package/skills/implement-spec/driver_state.py +1 -1
- package/skills/implement-spec/models.json +1 -1
- package/skills/implement-spec/prompts/correctness.md +4 -2
- package/skills/implement-spec/prompts/final-fixer.md +4 -1
- package/skills/implement-spec/prompts/final-reviewer.md +7 -4
- package/skills/implement-spec/prompts/final-scoped.md +1 -1
- package/skills/implement-spec/prompts/rereview.md +1 -1
- package/skills/implement-spec/prompts/reviewer.md +5 -3
- package/skills/implement-spec/tests/test_cli.py +20 -0
- package/skills/implement-spec/tests/test_decisions.py +1 -39
- package/skills/implement-spec/tests/test_driver.py +2 -0
- package/skills/implement-spec/tests/test_final.py +54 -1
- package/skills/implement-spec/tests/test_fixloop.py +57 -39
- package/skills/implement-spec/tests/test_models.py +1 -1
- package/skills/implement-spec/tests/test_review.py +104 -20
- package/skills/implement-spec/tests/test_stops.py +10 -39
- package/skills/implement-spec/tests/test_walk.py +4 -4
- package/skills-manifest.json +5 -5
|
@@ -11,8 +11,8 @@ Interface choices (ticket 05):
|
|
|
11
11
|
- evidence strings are file pointers: `.agent/implement/<NN>/implementer.json` and `.agent/implement/ledger.md:<line>`,
|
|
12
12
|
the line being a ledger line that names the ticket and BLOCKED.
|
|
13
13
|
- question ids are `<NN>-locked-test-<n>` with n counting per run (the first is 1, a second stop on the ticket is 2),
|
|
14
|
-
and
|
|
15
|
-
|
|
14
|
+
and a capped ticket with unmet criteria blocks without a finding question. Options for `locked-test` are
|
|
15
|
+
`overrule-test` / `overrule-implementer` (recommended: overrule-implementer).
|
|
16
16
|
- an implementer is BLOCKED with a `locked-test` stop only when a `concerns` entry starts with "locked test
|
|
17
17
|
contradicts spec:"; any other BLOCKED report is an `implementer-stopped` stop (issue #123).
|
|
18
18
|
- the answers file is `.agent/implement-answers.json` in the schema.md shape: `v`, `stage: "implement"`, `submitted`
|
|
@@ -201,45 +201,16 @@ def test_a_blocked_report_that_is_not_a_contradicted_locked_test_is_an_implement
|
|
|
201
201
|
assert rig.state()["tickets"]["01"]["phase"] == "blocked"
|
|
202
202
|
|
|
203
203
|
|
|
204
|
-
# ----------------------------------------------------------------
|
|
204
|
+
# ---------------------------------------------------------------- capped ticket
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
rig = Review(tmp)
|
|
211
|
-
bad = review("01", [A, B])
|
|
212
|
-
return rig.run(plan(**{"01/reviewer": [bad] * 5, "01/fixer": [fix("01", n) for n in (1, 2, 3, 4)]}), *extra)
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
def finding_ids(rig):
|
|
216
|
-
questions = decisions(rig)["questions"]
|
|
217
|
-
return {name: next(q["id"] for q in questions if name in q["title"] + q["why"]) for name in ("STUCK-A", "STUCK-B")}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
def test_open_findings_after_round_4_make_one_question_each_and_accept_closes_them(tmp_path):
|
|
221
|
-
rig = round4(tmp_path)
|
|
222
|
-
assert rig.code == 1, rig.output()
|
|
223
|
-
questions = decisions(rig)["questions"]
|
|
224
|
-
assert len(questions) == 2 and rig.state()["tickets"]["01"]["phase"] == "blocked"
|
|
225
|
-
assert all({o["id"] for o in q["options"]} == {"accept", "split", "redesign"} for q in questions)
|
|
226
|
-
check_page((rig.repo / ".agent/implement-review.html").read_text(), decisions(rig))
|
|
227
|
-
ids = finding_ids(rig)
|
|
228
|
-
rig.run({}, "--answer", f"{ids['STUCK-A']}=accept", "--answer", f"{ids['STUCK-B']}=accept")
|
|
229
|
-
assert rig.code == 0, rig.output()
|
|
230
|
-
assert rig.led("Ruling", "STUCK-A", "accept") and rig.led("Ruling", "STUCK-B", "accept")
|
|
231
|
-
assert rig.state()["tickets"]["01"]["phase"] == "merged" and "feat: 01 rows" in rig.pr_subjects()
|
|
232
|
-
assert len(rig.calls("01", "fixer")) == 4
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
def test_split_and_redesign_keep_the_ticket_blocked_with_the_ruling(tmp_path):
|
|
236
|
-
rig = round4(tmp_path)
|
|
237
|
-
ids = finding_ids(rig)
|
|
238
|
-
rig.run({}, "--answer", f"{ids['STUCK-A']}=split", "--answer", f"{ids['STUCK-B']}=redesign")
|
|
206
|
+
def test_unmet_criteria_at_cap_block_without_a_finding_question(tmp_path):
|
|
207
|
+
rig = Review(tmp_path)
|
|
208
|
+
bad = review("01", [finding("STUCK-A", line=98), finding("STUCK-B", line=99)])
|
|
209
|
+
rig.run(plan(**{"01/reviewer": [bad] * 3, "01/fixer": [fix("01", n) for n in (1, 2)]}))
|
|
239
210
|
assert rig.code == 1, rig.output()
|
|
240
|
-
assert rig.
|
|
241
|
-
assert rig.state()["
|
|
242
|
-
assert len(rig.calls("01", "fixer")) ==
|
|
211
|
+
assert rig.state()["tickets"]["01"]["phase"] == "blocked"
|
|
212
|
+
assert not rig.state()["run"]["questions"]
|
|
213
|
+
assert len(rig.calls("01", "fixer")) == 2
|
|
243
214
|
|
|
244
215
|
|
|
245
216
|
# ---------------------------------------------------------------- unattended
|
|
@@ -271,8 +271,8 @@ def std(tmp_path_factory):
|
|
|
271
271
|
|
|
272
272
|
@pytest.fixture(scope="module")
|
|
273
273
|
def blocked(tmp_path_factory):
|
|
274
|
-
"""The default scenario with a red gate on ticket/feat%2Fcsv/01 that
|
|
275
|
-
fixes = [fix("01", n) for n in (1, 2
|
|
274
|
+
"""The default scenario with a red gate on ticket/feat%2Fcsv/01 that two fix rounds do not make green."""
|
|
275
|
+
fixes = [fix("01", n) for n in (1, 2)]
|
|
276
276
|
return Rig(tmp_path_factory.mktemp("blocked"), gate={"red": ["ticket/feat%2Fcsv/01"]}).run(plan(**{"01/fixer": fixes}))
|
|
277
277
|
|
|
278
278
|
|
|
@@ -339,7 +339,7 @@ def test_gate_environment_names_the_pr_branch_and_a_pycache_prefix_under_agent_i
|
|
|
339
339
|
assert os.path.realpath(gate["pycache"]).startswith(str((rig.repo / ".agent/implement").resolve()) + os.sep)
|
|
340
340
|
|
|
341
341
|
|
|
342
|
-
def
|
|
342
|
+
def test_red_gate_blocks_the_ticket_after_round_2_names_the_record_and_launches_no_review(blocked):
|
|
343
343
|
assert blocked.code == 1, blocked.output()
|
|
344
344
|
a1 = blocked.sha("01", "implementer")
|
|
345
345
|
finding = f"Ticket 01: critical finding of kind code from the gate at .agent/implement/01/gate-{a1[:7]}.log:0: "
|
|
@@ -347,7 +347,7 @@ def test_red_gate_blocks_the_ticket_after_round_4_names_the_record_and_launches_
|
|
|
347
347
|
assert re.search(r"exit\D*1", (blocked.repo / f".agent/implement/01/gate-{a1[:7]}.log").read_text())
|
|
348
348
|
last = blocked.calls("01", "fixer")[-1]["sha"]
|
|
349
349
|
assert [l for l in blocked.ledger() if "01" in l and "BLOCKED" in l and f"gate-{last[:7]}.log" in l], blocked.ledger()
|
|
350
|
-
assert [c["role"] for c in blocked.calls("01")] == ["test-writer", "implementer"] + ["fixer"] *
|
|
350
|
+
assert [c["role"] for c in blocked.calls("01")] == ["test-writer", "implementer"] + ["fixer"] * 2
|
|
351
351
|
assert blocked.state()["tickets"]["01"]["phase"] == "blocked"
|
|
352
352
|
assert "ticket/feat%2Fcsv/01" in blocked.branches() and "feat: 01 rows" not in blocked.pr_subjects()
|
|
353
353
|
|
package/skills-manifest.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-28T10:09:20.689Z",
|
|
4
4
|
"skills": [
|
|
5
5
|
{
|
|
6
6
|
"name": "agents-wayfinder",
|
|
7
|
-
"version": "0.1.
|
|
8
|
-
"hash": "sha256-
|
|
7
|
+
"version": "0.1.1",
|
|
8
|
+
"hash": "sha256-6b55d58e51da25f0b61bca29f9672c162dd9143553b36f31398d47b19b044b50",
|
|
9
9
|
"description": "Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, resolve them one at a time until the way to the destination is clear, and hand off each increment for building as soon as it is specifiable."
|
|
10
10
|
},
|
|
11
11
|
{
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"name": "implement-spec",
|
|
61
|
-
"version": "0.1.
|
|
62
|
-
"hash": "sha256-
|
|
61
|
+
"version": "0.1.43",
|
|
62
|
+
"hash": "sha256-9e15bd7b59af1ddf79e6383af92a2b7d579a54c9f861b8b8300f73e31d82c72d",
|
|
63
63
|
"description": "Implement a specification in code."
|
|
64
64
|
},
|
|
65
65
|
{
|