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

pyln-testing: check plugin notifications against any extant notification schemas.

Public commit record

What the developer wrote

Authored by Rusty Russell

83/100 · Strong
pyln-testing: check plugin notifications against any extant notification schemas.

Note that we need a workaround for deprecated APIs where "channel_state_changed" output "null" which violated the schema.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit adds a new test-only check that makes Core Lightning's Python test harness validate plugin hook and notification JSON messages against published schemas. It is a testing/quality improvement, not a fix for an exploitable vulnerability in production code. The only runtime behavior change is writing plugin I/O to a directory during tests and then validating it during teardown.

Recommended action

No urgent action required. Treat as a test-framework hardening commit. Reviewers may want to confirm that the deprecated `channel_state_changed.null_scid` behavior is documented and scheduled for removal, and that `dev-save-plugin-io` is guarded so it cannot be enabled in production builds.

Security signals we found

01

Adds schema validation for plugin notifications/hooks in test harness

02

References a known non-schema-compliant deprecated notification: channel_state_changed.null_scid

03

Introduces dev-only option dev-save-plugin-io to persist plugin I/O for validation

04

No changes to cryptographic, network, or consensus code

Risk score

Why this scored 19/100

Our methodology →
Potential impact 2/30
Exploitability 0/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.