Skip to content

docs(skills): merge-pr waits out UNKNOWN, setup ledgers, checkout updates, classifier-safe discards - #143

Merged
synthet merged 1 commit into
mainfrom
af/scf-3ovct-skills-merge-pr-unknown-wait-one
Nov 29, 2026
Merged

synthet merged 1 commit into
mainfrom
af/scf-3ovct-skills-merge-pr-unknown-wait-one

Conversation

@synthet

@synthet synthet commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Refs scf-3ovct

Lessons from a working session, kept as short additions to existing skills (no new skills):

Skill Addition
merge-pr UNKNOWN mergeable or merge state right after another merge into the base means GitHub is recomputing: poll for up to 5 minutes, never treat it as a conflict or merge on it.
agent-setup (references/usage.md) A one-skill install can show "unmanaged or overlapping edit" for an unedited skill when another --state ledger owns it. Plan with each ledger, apply per owning ledger, check every receipt.
git-and-diff-workflows Bring a checkout up to date with fetch + merge --ff-only origin/<default>, or fetch origin main:main when main isn't checked out. Never set an upstream (.git/config). Then check for a linked build still running an old untracked dist/.
safe-command-patterns When a permission classifier refuses a discard (checkout --, restore, branch -D), use git stash push --include-untracked -m … -- <paths>, one destructive command per step, and hand the rest to the user as a ! command. Never reword it to get past the check.

Checks

sync --check, inventory --check, frontmatter, portability, eval fixtures and pytest tests exit 0. Only these four skills (and their generated mirrors) change. check_secrets.py wasn't run here; a local hook blocks agents from running it.

🤖 Generated with Claude Code

…ates, classifier-safe discards

- merge-pr: mergeable or merge state UNKNOWN means GitHub is
  recomputing; poll up to 5 minutes, never merge on it.
- agent-setup usage: a conflict on an unedited skill can mean another
  state ledger owns it; apply per owning ledger and check each receipt.
- git-and-diff-workflows: update a checkout with fetch plus merge
  --ff-only or fetch origin main:main, never by setting an upstream;
  then check for a linked build running stale output.
- safe-command-patterns: when a classifier refuses a discard, stash with
  a message and paths, one destructive command per step, hand the rest
  to the user; never reword it.

Refs scf-3ovct

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@synthet
synthet merged commit 6cfc230 into main Nov 29, 2026
1 check passed
@synthet
synthet deleted the af/scf-3ovct-skills-merge-pr-unknown-wait-one branch November 29, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant