VerificationTest behavior
Test member restrictions
Verify that member access is limited by grants.
Sign in as the member:
$env:AGENTIC_OS_TEAM_CONFIG_DIR="$env:TEMP\aios-member-client"
$env:TEAM_MEMBER_PASSWORD="<MEMBER_PASSWORD>"
npm run team -- login --api-url http://127.0.0.1:8787 --email member@example.test --password $env:TEAM_MEMBER_PASSWORD
npm run team -- whoami
npm run team -- clients
npm run team -- skill list
npm run memory:recall -- "aubergine-927" --embedding-mode serverTry two actions that the Member's grants do not allow:
$memberProof="$env:TEMP\member-shared-import.txt"
Set-Content $memberProof "This shared import should be denied."
npm run team -- memory import --file $memberProof --visibility team --title "Denied Member Import"
$deniedSync="$env:TEMP\member-read-only-sync"
New-Item -ItemType Directory -Force "$deniedSync\clients\acme\context" | Out-Null
Set-Content "$deniedSync\clients\acme\context\denied.md" "This write should be denied."
npm run team -- sync push --client acme --src $deniedSyncExpected result:
whoamishowsmember@example.test;clientsshowsacmewithread;- the skill list contains only skills granted to this Member, including
mkt-copywritingwithskill.usein this test store; - memory recall returns
aubergine-927from Team memory; - the shared import is denied because the Member lacks Full access;
- the client push is denied because the Member has only
readaccess; - no other client or skill appears through implicit access.
Next: Test revoke behavior
