AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 21 Bitcoin

bkpr-report: enhance tag syntax from {tag:replacement} to {tag?if-set:if-not-set}

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
bkpr-report: enhance tag syntax from {tag:replacement} to {tag?if-set:if-not-set}

This is more powerful, but we need to do this before release. It lets
us do things like: {credit?+{credit}:0} to only put a `+` in front of
no-zero credit, and {txid?TXID {txid}:Outpoint {outpoint}} to print
either `TXID xxx` or `Outpoint xxx`.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit is a routine feature enhancement for the bookkeeper plugin's report formatting syntax. It expands template tag syntax so users can specify both 'if present' and 'if absent' text around a tag. There is no indication of a security bug being fixed; it is a pre-release user-facing improvement with added tests and documentation updates.

Recommended action

No security action required. Review as normal feature code; ensure parser recursion depth and error paths are adequately tested.

Security signals we found

01

No security-relevant keywords in commit title or message

02

No mention of vulnerability, CVE, bug, crash, leak, or exploit

03

Change is a syntax enhancement with expanded test coverage

04

Parsing logic includes error handling for unterminated/unknown tags

Risk score

Why this scored 21/100

Our methodology →
Potential impact 2/30
Exploitability 2/25
Stealth signal 2/15
Affected reach 3/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.