Repository navigation
claudex: access-matrix acceptance test (#56 W2) - #60
Merged
Merged
Conversation
Reads the Payload collections at test time and checks every collection x operation x caller x channel (REST, GraphQL), judged from database state. Expected outcomes in expected.json (draft, pending owner approval); a missing entry fails. Adds the acceptance check and prints matrix totals in CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
…g only A broken app (V6 without a migration) stopped the matrix's setup, so the 'has an entry' tests never ran. They now need no database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
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.
Issue #56, W2: the access-matrix acceptance test. Stacked on #59 (W1): merge #59 first, then this PR retargets to
master.What changes
todo-cal/tests/acceptance/access-matrix/(a protected path):where) × 5 callers (owner, other user, signed out, expired token, locked account) × 2 channels (REST, GraphQL);expected.jsonholds the expected outcomes. A collection or operation with no entry fails. Outcome"error"(a server error) passes only when written there explicitly.acceptancecheck inproject/claudex.json, and CI prints the matrix totals.Needs the owner: approve
expected.jsonIt is a draft that records today's behaviour on master. Its
decisionslist needs your yes/no. The two that matter most:allow.DELETE /api/payload-preferences/<id>returns HTTP 500 for signed-in callers. Recorded aserror.Local run: 490 combinations, 490 passed, ownership 4/4 (
harden-pipeline/evidence/w2-local-enforce.json). CI on this PR is the V5 proof.Generated by Claude Code