Skip to content

feat(training): versioned attest:* tag contract + conformance test (closes #32) - #44

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/versioned-tag-schema
Jun 10, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/versioned-tag-schema

Conversation

@scttfrdmn

Copy link
Copy Markdown
Collaborator

Closes #32 — the silent qualify↔attest tag-drift gap, qualify (writer) side.

Problem

The attest:* tag namespace was defined independently in each repo; a rename on either side silently broke the other (Cedar then sees the attribute as missing, not an error).

Approach (no new dependency)

No provabl/* coupling added — the byte-identical schema + shared SchemaVersion are the contract:

  • internal/training/attest-tags-schema.json — canonical schema, byte-identical with attest's pkg/schema/attest-tags-schema.json.
  • SchemaVersion const + embed/parse.
  • internal/training/tags_schema_test.go — locks qualify's writer:qualify tag constants, moduleTagMap (← schema module), and ModuleExpiryTag (← schema expiry) to the schema, and asserts SchemaVersion matches. Verified it fails CI on a renamed key.
  • README documents the contract + bump rule.

Companion

attest side: PR on feat/versioned-tag-schema in provabl/attest (reader-side conformance). Both carry the byte-identical schema; merge together.

…loses #32)

The attest:* IAM tag namespace shared with attest was defined independently
in each repo, so a rename on either side would silently break the other.

Close that gap without coupling the products at build time (no new
provabl/* dependency — the byte-identical schema + shared SchemaVersion are
the contract):

- Add internal/training/attest-tags-schema.json — the canonical,
  machine-readable schema, byte-identical with attest's
  pkg/schema/attest-tags-schema.json.
- Add SchemaVersion const + embed/parse the schema.
- Add internal/training/tags_schema_test.go: locks qualify's writer=qualify
  tag constants, moduleTagMap, and ModuleExpiryTag to the schema's keys /
  module / expiry metadata, and asserts SchemaVersion matches. Drift fails CI.
- Document the contract + bump rule in the README.

Closes #32
@scttfrdmn
scttfrdmn merged commit 0564174 into main Jun 10, 2026
4 of 5 checks passed
@scttfrdmn
scttfrdmn deleted the feat/versioned-tag-schema branch June 10, 2026 00:45
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.

Version the attest:* IAM tag schema shared between qualify and attest

1 participant