name: inspequte-rule-no-go-resume description: Resume a rule implementation that was marked No-Go in GitHub Actions by importing plan/spec/impl from a PR, completing missing behavior and tests, and marking the rule as implemented in no-go-history.
inspequte rule no-go resume
Inputs
- Source PR URL (required).
- Optional
rule-idoverride only when automatic extraction fails. - Optional verify run URL or workflow logs with the No-Go reason.
Outputs
- Restored rule files under
src/rules/<rule-id>/using PR artifacts as baseline. - Completed implementation and tests that satisfy
spec.md. - Updated
prompts/references/no-go-history.mdentry for the rule with implemented status and remediation notes.
Minimal Context Loading
- Read
prompts/references/no-go-history.mdand locate the targetrule-identry. - Read
src/rules/<rule-id>/spec.mdandsrc/rules/<rule-id>/plan.done.md(orplan.md) after importing from PR. - Read only the target rule implementation and directly related helpers/tests.
- Read failure evidence only from CI artifacts/logs relevant to the No-Go reason.
Workflow
- Resolve
rule-idfrom the source PR:- first, read PR head branch name and extract the snake_case suffix when it contains a rule identifier.
- fallback: inspect changed files in the PR and pick the unique path under
src/rules/<rule-id>/. - if still ambiguous, stop and ask for an explicit override.
- Confirm the source PR contains rule artifacts for
src/rules/<rule-id>/:spec.md(required)plan.done.mdorplan.md(required)mod.rs(optional baseline)
- Import
spec.mdandplan.done.md/plan.mdfrom the PR without content edits. - Review the No-Go reason and map missing acceptance criteria to concrete code/test tasks.
- Implement missing behavior in
src/rules/<rule-id>/mod.rsand add/extend harness tests for TP/TN/edge. - Ensure rule wiring is complete:
#[derive(Default)]on rule structcrate::register_rule!(...)src/rules/mod.rsmodule registration and rule-count expectation updates- snapshot refresh when registered rule set changes
- Run validation gates:
cargo fmtcargo buildJAVA_HOME=<Java 21 path> cargo testcargo audit --format sarif
- Update
prompts/references/no-go-history.mdfor the target entry:- keep original No-Go record for traceability
- append implementation status and remediation notes in this format:
status: implemented (<YYYY-MM-DD>)resolution-ref: <commit hash or PR URL>actions: <short summary of what was added/fixed and how it was validated>
- Run a completeness gate before finalizing:
git diff --name-onlymust include target rule implementation and tests.- Diff must include the no-go-history update.
- If diff only touches registration/docs/prompts, continue implementation.
Guardrails
spec.mdis the contract and must not be changed unless explicitly requested.- Do not use
@Suppress/@SuppressWarningsas suppression semantics. - Support only JSpecify-driven annotation semantics unless the spec explicitly states otherwise.
- Keep output deterministic (stable ordering, stable findings).
Definition of Done
- PR plan/spec are imported and retained as-is.
- No-Go root cause is addressed with concrete implementation and test coverage.
prompts/references/no-go-history.mdmarks the rule as implemented and records remediation actions.cargo fmt,cargo build,cargo test, andcargo audit --format sarifsucceed, or failures are reported with concrete evidence.