feat(skills): every skill commit carries the Created-with trailer
kvb-git-commit-no-verify is the single place of the rule: commits end with --trailer "Created-with: https://s.veen.world/skills" before Co-Authored-By, merges run git merge --no-commit and then that commit (git merge has no --trailer), and PR bodies end with the link. The commit, merge, hotfix, unify, update-branches and PR skills point at it. hotfix.py sync concludes each merge with the trailer itself; fast-forwards create no commit. 🎯 Fix: 92 % 💥 Break: 4 % 💸 Tokens: 100 % ⏱️ Velocity: 100 % 🛡️ Security: 100 % 🏆 Score: 88 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c4a3ab227
commit
9b1f0690de
10 files changed
+34
-26
No files matched your search
@@ -36,7 +36,8 @@ hotfix.py void --repo <worktree> --target <t> [--target ...]
|
||||
1. `sync`: fetches, merges `origin/<default>`, then every branch up the funnel
|
||||
chain the `kvb-org-swarm` skill records as `base` (open rows of this
|
||||
repository), then the flow's `pull` list (`pkgmgr worktree flow --json`),
|
||||
each with `--no-verify --no-edit`. It needs the task's branch checked out,
|
||||
each with `--no-verify` and the `Created-with` trailer. It needs the
|
||||
task's branch checked out,
|
||||
a clean tracked tree, a valid flow and the worktree lock free; exit 2
|
||||
names the blocker. Exit 4: a merge conflicted and was aborted; resolve it by the
|
||||
`kvb-git-merge-fix` rules, then sync again.
|
||||
|
||||
@@ -146,6 +146,7 @@ ORIGIN_HEAD = "refs/remotes/origin/HEAD"
|
||||
GIT = ("git", "-c", "maintenance.auto=false")
|
||||
FETCH = ("fetch", "--quiet", "--no-auto-maintenance", "origin")
|
||||
FETCH_SECONDS = 120
|
||||
CREATED_WITH = "Created-with: https://s.veen.world/skills"
|
||||
PKGMGR_FLOW = ("pkgmgr", "worktree", "flow")
|
||||
FLOW_FILE = ("pkgmgr", "flow.yml")
|
||||
FLOW_SECONDS = 60
|
||||
@@ -943,7 +944,9 @@ def cmd_sync(rasci: ModuleType, args: argparse.Namespace) -> int:
|
||||
if ancestor(repo, ref, "HEAD"):
|
||||
print(f"contained\t{shown}")
|
||||
continue
|
||||
result = git(repo, "merge", "--no-verify", "--no-edit", ref)
|
||||
result = git(repo, "merge", "--no-verify", "--no-commit", ref)
|
||||
if result.returncode == 0 and git(repo, "rev-parse", "--verify", "--quiet", "MERGE_HEAD").returncode == 0:
|
||||
result = git(repo, "commit", "--no-verify", "--no-edit", "--trailer", CREATED_WITH)
|
||||
if result.returncode == 0:
|
||||
print(f"merged\t{shown}\t{git_out(repo, 'rev-parse', 'HEAD').strip()}")
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user