Repository navigation
test(authorization): cover role-grant combinators and leaf-only authorize - #31
Merged
Merged
Conversation
…rize authorization-chain-lab: authorize?queryRoles=true is now decided by the deepest active leaf alone (K9). ChainConjunctionTests becomes ChainLeafDecisionTests: a role the root refuses is allowed while the leaf admits it, and a new root-open/leaf-open pair pins that a leaf with no queryRoles allows whatever the root declares. role-matrix-lab: new role-matrix-lab-combinators flow and master schema with transition four-eyes (allow maker, deny allOf[maker, $PreviousUser]), queryRoles allOf[customer, $InstanceStarter] and x-roles anyOf/allOf observed through the data function. human-task-chain: corporate leaf state (two allOf allows plus an $InstanceStarter hop probe) asserted in core and across the partner boundary; flows bumped to 1.0.7 and the generator realigned with the SubProcessTask spawn. Written, not yet run against a runtime; npm run validate fails on the combinator flows until vnext-schema ships allOf/anyOf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… subflows role-matrix-lab: ALİ starts the combinator case acting for c-acme, so CreatedByBehalfOf matches what the x-roles expectations assume. human-task-chain: the runtime inherits the caller only for the first SubFlow child; from depth 2 on the child gets exactly the mapping's headers. Every next-subflow mapping now forwards sub and act_sub (flow author's job, decision K8), and a depth-1 corporate leaf case proves the grant logic independently of that forwarding. authorization-chain-lab: rename the state-function test that no longer asserts agreement with authorize. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note The title starts with
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 4, 2026
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
allOf/anyOfand the leaf-onlyauthorize?queryRoles=truerule ([enhancement] Add allOf/anyOf combinators to RoleGrant vnext#1057).authorization-chain-labexpectations flipped from the root-AND conjunction to the leaf-only rule.role-matrix-lab:CombinatorGrantTests(four eyes,queryRolesallOf,x-rolesanyOf / deny allOf through the data function, cache keyed on the subject).human-task-chain: corporate leaf with twoallOfgrants (OR), depth-1 and cross-domain variants; the chain's subflow mappings now forwardsub/act_sub(identity propagation below the first level is the flow author's job).Changes
tests/Core.IntegrationTests/Tests/{AuthorizationChainLab,RoleMatrixLab,HumanTaskChain}+ READMEs,TEST-SCENARIOS.mdrows.core/components:role-matrix-lab-combinatorsflow + master schema; human-task chain flowsht-a…ht-e1.0.7 (generator realigned with the committed SubProcessTask spawn), spawn task 1.0.1.Test Plan
run-docker.sh up coreon the runtime branch, thendotnet test tests/Core.IntegrationTests --settings tests/Core.IntegrationTests/test.runsettings --filter "FullyQualifiedName~AuthorizationChainLab|FullyQualifiedName~RoleMatrixLab|FullyQualifiedName~HumanTaskChain"labs/cross-domain/lab.sh)Integration test evidence
feature/role-grant-combinatorsbuilt locally,VNEXT_BASE_URL=http://localhost:4201, 2026-10-03TEST-SCENARIOS.mdrows updated: yesNotes
npm run validatefails on the new combinator components until feat(schema): add allOf/anyOf combinators to roleGrant vnext-schema#148 is released (the SDK publishes directly, tests are unaffected).🤖 Generated with Claude Code