Skip to content

Add se-trace validate-runtime (RFC-0001 Layer 2 surfacing) - #3

Merged
emmanuel-a-otchere merged 1 commit into
mainfrom
vibe/rfc0001-validate-runtime-8eb746
Oct 30, 2026
Merged

emmanuel-a-otchere merged 1 commit into
mainfrom
vibe/rfc0001-validate-runtime-8eb746

Conversation

@emmanuel-a-otchere

Copy link
Copy Markdown
Contributor

Summary

  • Add the se-trace validate-runtime subcommand: surfaces the Layer 2 (Runtime Validation) record of every decision in a COTS (RFC-0001, COTS schema v1.1.0). Prints decision_on_validation, validated_at/validated_by, and each ValidationFlag with its type and message. Decisions without a record report "producer has not floored Layer 2"; exit code 2 when any decision is flagged (flags are warnings, not rejections), 0 otherwise, for scripting use
  • Add the optional validation field and Layer2Validation types to src/cots.ts
  • Two new tests: end-to-end CLI run against a flagged COTS (asserts exit code 2 and output), and absence-of-record behaviour
  • README updated with the new command

Verification

  • npx vitest run: 7/7 tests pass
  • npx tsc --noEmit: clean

…nFlags per RFC-0001

Co-authored-by: emmanuel-a-otchere <emmanuel-a-otchere@users.noreply.github.com>
@emmanuel-a-otchere
emmanuel-a-otchere marked this pull request as ready for review October 30, 2026 16:47
@emmanuel-a-otchere
emmanuel-a-otchere merged commit af7769e into main Oct 30, 2026
1 check passed
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.

2 participants