Skip to content

docs(dev): make the PR automation golden-bless example satisfy its reason contract #9043

Closed

Description

@EffortlessSteven

Claim and ownership

This lane owns one bounded contributor-review example: the quoted goldens bless reason in docs/PR_AUTOMATION.md, Command Lanes / Mutating Shape Commands. Main inspected: 6be02b0bff14fe4729fdb6a39072d7ee4e9ee427 (2026-10-21). No review-scope, identity, root, workflow/qualification or security prerequisite change.

The current example is cargo xtask goldens bless <fixture> --reason "...". Substituting a fixture leaves a reason that the installed parse_reason contract rejects before execution: --reason must cite a spec id. The same guide already explains that reasons must cite an existing docs/specs ID. This is a documentation/contract mismatch, not a request to relax validation. The fixture token is an intentional placeholder; the repair will identify both substitutions explicitly.

All-state PR searches for bless and PR_AUTOMATION+bless and issue search for bless found no owner for this example. #7398 / #8099 fixed the separate fixtures-new generated example; their test remains untouched. No competing implementation is planned.

Acceptance and proof

Replace the unusable quoted reason with an example citing a current spec, explicitly require the actual governing spec and reviewed change description, and add a cheap executable test taking the reason from the actual document through production parse_reason and validate_bless_reason. Retain missing/unknown-spec negative controls. Observe the old documented value fail, then the revised value pass. Exercise the real command up to a deliberately absent fixture after valid reason validation, proving no golden writes occur in the smoke. Rollback: revert the focused docs/test/changelog change. No analyzer or golden output changes.

Local admission

Selected environment Linux/Bash, prepared Rust/Cargo 1.95.0 under /workspace/.ripr-toolchain. Shared checkout /workspace/ripr-swarm remains read-only for implementation; candidate worktree will be /workspace/golden-example, with isolated target /workspace/golden-example/target. Git common directory /workspace/ripr-swarm/.git. Observed free space 30GiB; reserve 10GiB; peak additional budget 10GiB for checkout, scoped xtask binary/test compilation and retained logs. No full workspace Cargo/test/golden run admitted. Prior mutable target and executables are not deleted or claimed as exact-main proof. Retain small logs/patch for parent relay, remove only lane-created disposable outputs after consumers release them.

Next: exact-base focused baseline, admitted doc-to-validator red/green, independent exact-head review, Draft publication and ordinary qualification through the existing integrator. No competing RIPR landing decision.

Activity

  1. EffortlessSteven commented on Oct 31, 2026

    @EffortlessSteven
    MemberAuthor

    Claim: redoing abandoned origin/docs/9043-golden-bless-example fresh on current main (849699920); no PR on that branch.

  2. EffortlessSteven commented on Oct 31, 2026

    @EffortlessSteven
    MemberAuthor

    Receipt: owned by open PR #11511 (head cdf268d, Closes #9043), which fixes the docs example and adds a doc-to-validator smoke test. Not duplicating. Not closing yet because the fix has not landed on main; the PR's closing keyword will close this on merge.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions