@jesdi/skills 0.0.96 → 0.0.97
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
|
@@ -160,7 +160,7 @@ The end of run starts only when every ticket is merged and every slot is idle. I
|
|
|
160
160
|
History rules:
|
|
161
161
|
|
|
162
162
|
- The branch is rewritten once, before the first review, and never after it. Fixes of the final review stay as `fix(NN)` commits.
|
|
163
|
-
- A history that `origin` already has is never rewritten. When `origin` has the PR branch or one of its commits, the driver does no tidy and no rebase. The full gate, the final review and a fast-forward push still run.
|
|
163
|
+
- A history that `origin` already has is never rewritten. When `origin` has the PR branch or one of its commits, the driver does no tidy and no rebase. The full gate, the final review and a fast-forward push still run. The review range then starts at the merge-base of the branch and the base tip, so what the base gained since the branch left it is not shown as a change of the branch. A kept branch that shares no commit with the base stops the end of run.
|
|
164
164
|
- The push happens only when the branch tip is the reviewed tip and that tip has a green full gate record.
|
|
165
165
|
- With `commit.gpgsign` on, the driver signs every commit it makes (ticket merges, tidied and renamed commits) with the configured key. The push happens only when every commit that `origin` lacks has a good signature (`%G?` is `G`); otherwise the end of run is BLOCKED and nothing is pushed.
|
|
166
166
|
- No pushed commit has a `Co-authored-by` trailer. `claude` agents run with Claude Code's commit attribution off, every commit the driver makes (merges, tidied and renamed commits) drops the trailer, and the push is BLOCKED when a commit that `origin` lacks still has one, for example in a history that `origin` already has. Reword it, then run with `--push` again.
|
|
@@ -7,7 +7,8 @@ open asks `final-ticket-blocked-<n>`: only a `retry` runs another batch and scop
|
|
|
7
7
|
skipped why the end-of-run work did not start
|
|
8
8
|
recovery the PR tip before the rewrite; Run.names names its ref. None when origin had the history already
|
|
9
9
|
tidied the tip the rewrite made, or the tip as the tickets left it when the history is kept
|
|
10
|
-
base, onto the --base branch (or the default branch of origin) and its
|
|
10
|
+
base, onto the --base branch (or the default branch of origin) and its commit under the history: its tip, or the merge-base
|
|
11
|
+
with it when the history is kept; with no origin: "" and the start of the run
|
|
11
12
|
commits {ticket: its commit}
|
|
12
13
|
reviewed the last tip a review covered
|
|
13
14
|
round the reviews done
|
|
@@ -185,9 +186,14 @@ def _origin_has_commits(pr: str, tip: str, onto: str) -> bool:
|
|
|
185
186
|
|
|
186
187
|
|
|
187
188
|
def _keep_published_history(run: Run, tip: str, base: str, onto: str) -> None:
|
|
188
|
-
"""Record the history as it is: a history that origin has is never rewritten.
|
|
189
|
+
"""Record the history as it is: a history that origin has is never rewritten. It stays on its old base, so `onto`
|
|
190
|
+
is its merge-base with the base tip: a review range from the base tip would show what the base gained since as
|
|
191
|
+
reversions made by the branch."""
|
|
192
|
+
under = git(".", "merge-base", onto, tip).stdout.strip()
|
|
193
|
+
if not under:
|
|
194
|
+
raise Blocked(f"{run.pr} at {tip[:7]} shares no history with {base} at {onto[:7]}")
|
|
189
195
|
commits = dict(run.state.read()["run"]["landed"])
|
|
190
|
-
run.state.update(lambda state: state["run"]["final"].update(tidied=tip, onto=
|
|
196
|
+
run.state.update(lambda state: state["run"]["final"].update(tidied=tip, onto=under, base=base, commits=commits))
|
|
191
197
|
ledger(f"End of run: origin has commits of {run.pr}, so its history is kept as it is: no tidy and no rebase, "
|
|
192
198
|
f"because a published history is not rewritten. The gate and the final review run on {tip[:7]}.")
|
|
193
199
|
|
|
@@ -577,6 +577,37 @@ def test_a_history_that_origin_already_has_is_not_rebased_and_not_tidied(tmp_pat
|
|
|
577
577
|
assert f"- 01: {rig.branch()[:7]} Export rows" in rig.prs()[0]["body"] and stage(rig)["status"] == "done"
|
|
578
578
|
|
|
579
579
|
|
|
580
|
+
def test_a_kept_history_whose_base_moved_is_reviewed_from_its_merge_base_not_the_new_base_tip(tmp_path):
|
|
581
|
+
"""#165: the base gains a commit the kept branch does not hold. A two-dot range from the new base tip would show
|
|
582
|
+
that commit as a reversion made by the branch."""
|
|
583
|
+
rig = Inside(tmp_path, ONE)
|
|
584
|
+
stray(rig, "published before the run")
|
|
585
|
+
git(rig.repo, "push", "-q", "origin", "feat/csv")
|
|
586
|
+
rig.move_base({"docs.md": "base docs\n"})
|
|
587
|
+
rig.run(plan(), *UNATTENDED)
|
|
588
|
+
assert rig.code == 0, rig.out + "\n".join(rig.ledger())
|
|
589
|
+
tip, under = rig.branch(), rig.start
|
|
590
|
+
assert rig.final()["onto"] == under, "onto is the commit the kept branch sits on"
|
|
591
|
+
for role in ("final-spec", "final-correctness", "final-structure"):
|
|
592
|
+
(call,) = rig.final_calls(role)
|
|
593
|
+
assert f"Range: {under}..{tip}\n" in call["prompt"], role
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
def test_a_kept_history_that_shares_no_commit_with_the_base_stops_before_any_review(tmp_path):
|
|
597
|
+
rig = Inside(tmp_path, ONE)
|
|
598
|
+
stray(rig, "published before the run")
|
|
599
|
+
git(rig.repo, "push", "-q", "origin", "feat/csv")
|
|
600
|
+
clone = rig.tmp / "orphan-clone"
|
|
601
|
+
git(rig.tmp, "clone", "-q", str(rig.origin), str(clone))
|
|
602
|
+
git(clone, "checkout", "-q", "--orphan", "elsewhere")
|
|
603
|
+
git(clone, "commit", "-q", "--allow-empty", "-m", "unrelated root")
|
|
604
|
+
git(clone, "push", "-q", "origin", "elsewhere")
|
|
605
|
+
rig.run(plan(), *UNATTENDED, "--base", "elsewhere")
|
|
606
|
+
assert rig.code == 1 and not rig.final_calls("final-spec"), rig.out
|
|
607
|
+
(line,) = rig.led("End of run: BLOCKED at feat/csv at")
|
|
608
|
+
assert "shares no history with elsewhere at " + ref(rig.origin, "refs/heads/elsewhere")[:7] in line
|
|
609
|
+
|
|
610
|
+
|
|
580
611
|
def test_a_co_authored_commit_in_a_history_that_origin_already_has_blocks_the_push(tmp_path):
|
|
581
612
|
rig = Inside(tmp_path, ONE)
|
|
582
613
|
stray(rig, "published before the run")
|
package/skills-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-10T09:31:49.250Z",
|
|
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.
|
|
62
|
-
"hash": "sha256-
|
|
61
|
+
"version": "0.1.59",
|
|
62
|
+
"hash": "sha256-4537ddbf8e4b4139a79f12a8248b60e9c3a28760ed0e3a90b8480216fa6ada8a",
|
|
63
63
|
"description": "Implement a specification in code."
|
|
64
64
|
},
|
|
65
65
|
{
|