Repository navigation
Implement TC-L2-01..06 Layer 2 validators per RFC-0001 - #3
Merged
Merged
Conversation
…and fixtures per RFC-0001 Co-authored-by: emmanuel-a-otchere <emmanuel-a-otchere@users.noreply.github.com>
emmanuel-a-otchere
force-pushed
the
vibe/rfc0001-layer2-floor-8eb746
branch
from
October 30, 2026 10:41
ff7f7e4 to
84df9b9
Compare
emmanuel-a-otchere
marked this pull request as ready for review
October 30, 2026 12:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/contracts/layer2-integrity.ts: validators for TC-L2-01..06, covering Validation record well-formedness, flag_type and decision_on_validation enum enforcement, flags/decision consistency,validated_attimestamp validity, and the v1.0.0 optionality of the fieldLayer2Validationtypes tosrc/types.ts(COTS schema v1.1.0, RFC-0001; optional field)validateLayer2Recordsinto the runnertests/layer2.test.ts(8 tests, including two end-to-end runner tests).gitignore(node_modules, dist) - the repo had noneVerification
npx vitest run: 23/23 tests pass (15 existing + 8 new)npx tsc --noEmit: cleanRelationship to the floor
Reference implementation PR: Source-Engineering/source-engineering-reference-implementation#3. Specification changes: Source-Engineering/source-engineering-specifications (RFC-0001 branch).