Skip to content

fix(template): show the secretspec read with a reason - #59

Draft
runewright[bot] wants to merge 1 commit into
mainfrom
change/secret-read-reason
Draft

runewright[bot] wants to merge 1 commit into
mainfrom
change/secret-read-reason

Conversation

@runewright

@runewright runewright Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Shows the example read in secretspec.toml with --reason, which secretspec requires from an agent session.

Plan

Change secret-read-reason: proposal, one ADDED delta (secret-read-reason), and tasks under docs/changes/secret-read-reason/.

Changes

  • Changes the comment in templates/base/secretspec.toml.jinja and the root secretspec.toml: the read is secretspec run --reason "<why>" -- <command>, and the bare secretspec get <NAME> example is gone, because it prints the value.
  • Adds one CHANGELOG.md line.

Testing

  • With secretspec 0.21.1 in an agent session, a read without --reason exits 1 with "Accessing secrets requires a reason", and the same read with --reason succeeds. The probe used a scratch manifest with a synthetic value.
  • rune spec validate secret-read-reason passes. The guarded push pipeline passed on this head.

Release Notes

  • The secretspec.toml comment shows a read that works in an agent session.

Note

Show secretspec run --reason example in template comments

Agent sessions must give a reason when reading secrets, so the old comment example (secretspec get) would fail if copied. Updates the comments in secretspec.toml and templates/base/secretspec.toml.jinja to show a secretspec run --reason example instead.

  • Adds a new spec requirement that the generated secret declaration shows an example read with a reason, plus a matching scenario
  • Adds a proposal and PR document under docs/changes/secret-read-reason/
  • Adds an Unreleased entry to CHANGELOG.md
  • Comment-only change; the secretspec.toml declarations themselves are unchanged

Macroscope summarized 6b530e4.

The comment in secretspec.toml showed `secretspec run -- <command>` and a
bare `secretspec get <NAME>`. Secretspec 0.21.1 refuses both in an agent
session, because require_reason defaults to agents, and the bare get
prints the value into the transcript. The comment now shows one read
with --reason and says an agent session must give one. The template and
the root copy change together.

Change secret-read-reason.

Co-Authored-By: Martin Zeman <N4M3Z@users.noreply.github.com>
@github-actions github-actions Bot added size:med auto: changed-lines bucket area:docs auto: documentation and markdown area:templates labels Nov 24, 2026
@runeseer

runeseer Bot commented Nov 24, 2026

Copy link
Copy Markdown

review/correctness round 1 started on 6b530e42 at ledger generation 1.

@runeseer

runeseer Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Claude finished @Runewright[bot]'s task in 1m 18s —— View job


Review

Looks good. The comment change is confined to secretspec.toml and its template, and nothing in the repository invokes secretspec run or secretspec get, so no script depends on the removed example.

  • The secretspec-manifest hook calls secretspec schema --file secretspec.toml (.pre-commit-config.yaml:161), which the new text does not affect. The root file and templates/base/secretspec.toml.jinja stay byte-identical in the changed block.
  • Minor: secretspec.toml:5 and line 5 of the template run to 105 columns while the rest of the comment wraps near 79. Rewrapping keeps the block even. Fix this →
  • MD013 is disabled in .rumdl.toml, so the long prose lines in the new docs/changes/secret-read-reason/ files pass lint.

No other reviewer findings and no open review threads on this head.
• Branch change/secret-read-reason

@runeseer

runeseer Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Runeseer review — clean

Looks good. The head commit is unchanged since the last review, no new code landed, and no reviewer findings are open.

  • No other reviewer left a finding on this head.
  • No review thread awaits a decision.

No open findings · Reviewed 6b530e42 · review run · $0.24 · 0m22s · 12 turns

runeseer[bot]
runeseer Bot previously approved these changes Nov 24, 2026

@runeseer runeseer Bot 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.

Earned approval: review/correctness returned a clean verdict for 6b530e4 at ledger generation 1. Dismissed automatically on any new push or generation.

@github-actions
github-actions Bot dismissed runeseer[bot]’s stale review November 24, 2026 01:44

The pull request body changed after the verdict; the approval is stale.

@N4M3Z N4M3Z added the review:runeseer Summons the adjudicating correctness lane label Nov 24, 2026
@runeseer

runeseer Bot commented Nov 24, 2026

Copy link
Copy Markdown

review/correctness round 2 started on 6b530e42 at ledger generation 2.

@github-actions github-actions Bot removed the review:runeseer Summons the adjudicating correctness lane label Nov 24, 2026

@runeseer runeseer Bot 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.

Earned approval: review/correctness returned a clean verdict for 6b530e4 at ledger generation 2. Dismissed automatically on any new push or generation.

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

Labels

area:docs auto: documentation and markdown area:templates size:med auto: changed-lines bucket

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant