@jesdi/skills 0.0.68 → 0.0.69

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.
@@ -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 `<NN>-finding-<n>` for an open finding after round 4. Options: `overrule-test` / `overrule-implementer`
15
- (recommended: overrule-implementer), and `accept` / `split` / `redesign`.
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
- # ---------------------------------------------------------------- open findings after round 4
204
+ # ---------------------------------------------------------------- capped ticket
205
205
 
206
- A, B = finding("STUCK-A", line=98), finding("STUCK-B", line=99)
207
-
208
-
209
- def round4(tmp, *extra):
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.led("Ruling", "STUCK-A", "split") and rig.led("Ruling", "STUCK-B", "redesign")
241
- assert rig.state()["tickets"]["01"]["phase"] == "blocked" and "feat: 01 rows" not in rig.pr_subjects()
242
- assert len(rig.calls("01", "fixer")) == 4
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 four fix rounds do not make green."""
275
- fixes = [fix("01", n) for n in (1, 2, 3, 4)]
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 test_red_gate_blocks_the_ticket_after_round_4_names_the_record_and_launches_no_review(blocked):
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"] * 4
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
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-10-27T16:50:39.730Z",
3
+ "generatedAt": "2026-10-28T10:05:57.289Z",
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.42",
62
- "hash": "sha256-4fca049cc52ea1acf4ae57a262cb334eb4fec9104c9cdf25e24b5bc29574d945",
61
+ "version": "0.1.43",
62
+ "hash": "sha256-9e15bd7b59af1ddf79e6383af92a2b7d579a54c9f861b8b8300f73e31d82c72d",
63
63
  "description": "Implement a specification in code."
64
64
  },
65
65
  {