Skip to content

coop: validate blueprint node references#1739

Open
tomelm wants to merge 1 commit into
stripe:coopfrom
tomelm:coop-product-ui-hardening
Open

coop: validate blueprint node references#1739
tomelm wants to merge 1 commit into
stripe:coopfrom
tomelm:coop-product-ui-hardening

Conversation

@tomelm

@tomelm tomelm commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Validate ${node.<step>.<node>...} references when a blueprint is loaded (LoadBlueprint), so malformed or unknown node references fail fast instead of surfacing as confusing errors mid-session.
  • Collect valid step.node (and step.node.request) keys, then check every ${node...} reference in the marshaled blueprint against them.
  • Allow integer-indexed reference segments (e.g. an indexed test-request) as valid.

Tests

  • TestValidateBlueprintReferences — covers valid references, malformed references, and unknown referenced nodes.
  • go test ./pkg/coop/... ./pkg/cmd/coop/... — all green.

Base

Based directly on coop. First of the co-op product-quality follow-ups; agent-quality and blueprint-schema build on top and will be opened as coop advances.

@tomelm tomelm requested a review from a team as a code owner July 3, 2026 19:09
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-12-root-docs branch 17 times, most recently from 6d2624e to c4f8cfb Compare July 10, 2026 00:28
@tomelm tomelm force-pushed the coop-product-ui-hardening branch from a53d18a to 0b3e587 Compare July 10, 2026 00:32
@tomelm tomelm force-pushed the coop-product-ui-hardening branch from 0b3e587 to 164e376 Compare July 10, 2026 00:59
@tomelm tomelm changed the base branch from tomer/coop-stack-12-root-docs to coop July 10, 2026 00:59
@tomer-stripe tomer-stripe requested a review from kwu-stripe July 10, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant