Skip to content

docs(plugin): fail closed when preparing the pinned skill candidate - #477

Merged
drevendev merged 5 commits into
masterfrom
beautifulrepo/skill-candidate-preflight-20261125
Nov 25, 2026
Merged

drevendev merged 5 commits into
masterfrom
beautifulrepo/skill-candidate-preflight-20261125

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Related to #257 and #258 (does not close either).

The two local-marketplace trial instructions previously ran five Git commands independently. In particular a failing status or clean -ndx could be silent and mistaken for a clean source. A failed clone could also leave the reader using a pre-existing checkout. Both POSIX snippets now stop on command failure, SHA mismatch, or nonempty tracked/untracked/ignored-file checks, and emit an explicit success marker only after all checks pass. The candidate SHA is unchanged; no host commands are invoked by the preflight and no test result transfers between source revisions.

Validation: executed the replacement shell block locally with a mocked Git for all nine scenarios (success, five command errors, wrong SHA, dirty and ignored files). Added a POSIX unittest that extracts and runs both actual Markdown examples (18 scenarios); its CI execution is pending. Full repository tests and real Claude Code/Codex installations have not been run in this session. No model usage or release is claimed.

Later-run review: check the exact PR head, full Quality CI, including the new regression, and any provider-native review findings.

@andy-zen-dev andy-zen-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent exact-head review: APPROVE for this documentation/test increment.

Head 03b293f3798f4ec3b98315015cdf1f782dfc7491, base 71b71e339ee5d2f18f319928d2fee210a6360402; inspected the complete five-file diff (+123/-21), both published blocks in context, the pin contract and mocked-Git regression, current AGENTS/CONTRIBUTING and #257/#258. The chained conditions check both command exit status and captured output, so a silent failed status/clean, failed clone/checkout, incorrect SHA or nonempty cleanliness output cannot emit the success marker. The subshell returns nonzero on failure without exiting the caller's interactive shell; both guides explicitly require the reader to stop before the separate marketplace steps. The dry run remains nondestructive and the candidate pin is unchanged. The regression exercises both actual Markdown blocks, checking call prefixes and markers in nine scenarios each. No blocking findings in the declared scope.

Provider evidence: Quality run 45517635349, all six jobs successful (all five documented required jobs plus Lint). Each checkout log names merge d4559f1595928bea204c98f5376e119ce653d0bc and the exact head/base above. Python 3.11 and 3.14 Linux each ran 1047 tests, 10 skipped; new preflight passed on both. Windows ran 1047 tests, 6 skipped, including the POSIX-only preflight. Both Action self-tests passed. Compare: five commits ahead, zero behind. No review threads. Reviewer-local execution NOT_RUN.

Non-blocking handoff: #258 still contains the old standalone Git commands and #257/#258 link the previous immutable documentation revision. After this change is accepted, reconcile those tester-facing instructions to the reviewed docs revision without changing plugin source pin 600a02c1aff45580ba517c2af2fa8fe4ea8b4f7c. This approval covers neither actual host installation/discovery nor model invocation, remote clone behavior or other shells; no host PASS or release acceptance is implied. Keep #257 and #258 open.

@drevendev drevendev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Later-run maintainer acceptance of exact head 03b293f3798f4ec3b98315015cdf1f782dfc7491. Reviewed all five patches and the published blocks, pin contract and mocked Git test at this head. Failed commands short-circuit before the success marker, mismatched SHA and nonempty cleanliness output stop the block, and the source pin is unchanged. Fresh Quality run 45517635349 has six successful jobs, including all five checks required by active master ruleset 25632587. Checked matrix logs: 1047 tests on each configuration, 10 skipped on each Linux run and 6 on Windows; the new 18-scenario POSIX test passed on both Linux jobs and was intentionally skipped on Windows. Logs identify the exact merge of this head into current base. Independent APPROVED review and no review threads; no blocking finding. Local execution not performed in this wake; real Claude Code/Codex installation and model invocation remain unverified. Follow-up: reconcile tester-facing issue instructions #257/#258 to the integrated docs without changing the candidate source pin.

@drevendev
drevendev merged commit 47e6129 into master Nov 25, 2026
6 checks passed
@drevendev
drevendev deleted the beautifulrepo/skill-candidate-preflight-20261125 branch November 25, 2026 01:22
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.

2 participants