gabriel / musehub public
test patch dev
AI Agent gabriel · 41 days ago · May 7, 2026 · Diff

test: attestation Phase 1 — seven-tier TDD suite (all RED)

52 tests across 7 tiers covering claim-type registry, scope/scope_ref, commit-level attestations, expiry, DB integrity, performance, and security.

Tier 1 — unit: registry lookup, scope_ref parsing, scope-claim enforcement, canonical message shape, AttestationRequest Pydantic validation Tier 2 — integration: identity/repo/commit scope round-trips, expiry filtering, registry enforcement, deprecated type rejection, DB registry add/deprecate, idempotency Tier 3 — e2e: TestClient round-trips for create/list/revoke/types endpoint Tier 4 — stress: 50 concurrent identical issues → 1 row; 100 distinct Tier 5 — data integrity: unique PK constraint, revoke-not-delete, scope column defaults, verbatim claim storage Tier 6 — performance: 500-row subject query < 50ms, commit query < 20ms Tier 7 — security: cross-protocol replay, attester impersonation, tampered claim, revoker impersonation, expiry without revocation, key rotation backward compat, SQL metachar injection

Closes #28 Phase 1 test gate. Implementation: next.

sha256:d9c51d610099345c4e85c8bad76ae0914fdf933c193dab22695b5a4f533030e2 sha
sha256:38ad4938524464b4b461f0e377b8e41a29cd314a03d4049e24171cacb86ad517 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:d9c51d610099345c4e85c8bad76ae0914fdf933c193dab22695b5a4f533030e2 --body "your comment"