test(BA-7809): add scenario tests for the user resource policy - #14517
Closed
jopemachine wants to merge 3 commits into
Closed
test(BA-7809): add scenario tests for the user resource policy#14517jopemachine wants to merge 3 commits into
jopemachine wants to merge 3 commits into
Conversation
jopemachine
added a commit
that referenced
this pull request
Sep 11, 2026
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vFCmtPMD6GLPBJxJoFroD
jopemachine
force-pushed
the
test/BA-7809-user-policy-scenarios
branch
from
September 11, 2026 03:30
51d034f to
7b9797c
Compare
This was referenced Sep 11, 2026
3 tasks
jopemachine
force-pushed
the
test/BA-7809-keypair-policy-scenarios
branch
from
September 11, 2026 03:51
2591c2d to
26eab13
Compare
jopemachine
added a commit
that referenced
this pull request
Sep 11, 2026
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vFCmtPMD6GLPBJxJoFroD
jopemachine
force-pushed
the
test/BA-7809-user-policy-scenarios
branch
from
September 11, 2026 03:51
7b9797c to
976dd62
Compare
1 task
jopemachine
force-pushed
the
test/BA-7809-keypair-policy-scenarios
branch
from
September 11, 2026 03:52
26eab13 to
4572d36
Compare
jopemachine
added a commit
that referenced
this pull request
Sep 11, 2026
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vFCmtPMD6GLPBJxJoFroD
jopemachine
force-pushed
the
test/BA-7809-user-policy-scenarios
branch
from
September 11, 2026 03:52
976dd62 to
9cca900
Compare
Write the user policy chapter of api/adapters/resource_policy/KNOWLEDGE.md and transcribe it on top of the project and keypair rows: 27 rows, all six of its adapter calls reached, which completes the adapter. Every row is one a family already there has too, so registering the family runs them all. Reading one's own user policy goes straight off the user's row, so it has no not-found row. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vFCmtPMD6GLPBJxJoFroD
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vFCmtPMD6GLPBJxJoFroD
Generated from the CI run with scripts/scenario-report.py --split. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vFCmtPMD6GLPBJxJoFroD
jopemachine
force-pushed
the
test/BA-7809-keypair-policy-scenarios
branch
from
September 11, 2026 03:58
4572d36 to
3ac1216
Compare
jopemachine
force-pushed
the
test/BA-7809-user-policy-scenarios
branch
from
September 11, 2026 03:58
9cca900 to
a1fca16
Compare
Member
Author
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.
📚 Stacked PRs
Part of the resource policy scenario stack under BA-7809. Merge in order (bottom-up):
test(BA-7809): user policy seed carries a concurrent-login captest(BA-7809): project resource policy scenariostest(BA-7809): keypair resource policy scenariostest(BA-7809): user resource policy scenarios ← you are hereResolves BA-7809
Summary
api/adapters/resource_policy/KNOWLEDGE.mdand transcribe it on top of test(BA-7809): add scenario tests for the keypair resource policy #14516: 27 rows, all 6 of its adapter calls reached, which completes the adapter — 83 rows over 6 modules, every one of its 17 calls exercised.OwnFamilylike the keypair policy, so registeringUserPoliciesruns every shared row and every own-policy row against it. Reading one's own user policy goes straight off the user's row, so it has no not-found row.Test plan
python3 scripts/knowledge/check.pypassestest-scenarioon CI: 83 scenarios, 0 failingreport.mdregenerated from the run'sscenarios.jsonlwithscripts/scenario-report.py --split; only the inheritedbatch_load_fieldsis left unexercised🤖 Generated with Claude Code
https://claude.ai/code/session_019vFCmtPMD6GLPBJxJoFroD