IAM U1 + U3A capability-association + capability-explanation #219

Merged
weichen merged 3 commits from feature/iam-link-u1-capability-association into main 2026-10-19 13:47:25 +00:00
Owner

Plan

Per plan revision 3 (Project Collaboration and Linked Permissions):

  • U1 capability-association: backend stores project.create links atomically with the manager capabilities (project.settings, project.members.manage, project.permissions.manage, document.duties.assign); closed gracefully without deleting existing rows. (afb65c5)
  • U3A capability-explanation: extension DTO CapabilityExplain plus HTTP endpoint and Host providers; 4 categorized errors (409/403/404/503); no information leakage for unauthorized callers. (e942a35b)

Files

19 files, 2123 insertions, 13 deletions.

Verification

  • GOWORK=off go test ./internal/authz/... ./internal/store/... ./internal/server/... ./internal/app/... ./pkg/extension/... -count=1 → all ok
  • GOWORK=off go vet ./... exit=0

Why: host integration step 1 of 8 (Backend L1→main). Plan revision 3 U1 + U3A implementations (host authoritatively-verified, full unit/repo tests green, no regressions). U3B in Dev RDM side still blocked until this lands in Backend main so RDM can consume the new CapabilityExplain methods.

Refs: /tmp/iam-role-permission-plan-20261019-sqfu_4g4/plan.md revision 3; L1 PR #628 on Dev.

## Plan Per plan revision 3 (Project Collaboration and Linked Permissions): - **U1** capability-association: backend stores project.create links atomically with the manager capabilities (project.settings, project.members.manage, project.permissions.manage, document.duties.assign); closed gracefully without deleting existing rows. (`afb65c5`) - **U3A** capability-explanation: extension DTO `CapabilityExplain` plus HTTP endpoint and Host providers; 4 categorized errors (409/403/404/503); no information leakage for unauthorized callers. (`e942a35b`) ## Files 19 files, 2123 insertions, 13 deletions. ## Verification - GOWORK=off go test ./internal/authz/... ./internal/store/... ./internal/server/... ./internal/app/... ./pkg/extension/... -count=1 → all ok - GOWORK=off go vet ./... exit=0 ## Why: host integration step 1 of 8 (Backend L1→main). Plan revision 3 U1 + U3A implementations (host authoritatively-verified, full unit/repo tests green, no regressions). U3B in Dev RDM side still blocked until this lands in Backend main so RDM can consume the new CapabilityExplain methods. Refs: /tmp/iam-role-permission-plan-20261019-sqfu_4g4/plan.md revision 3; L1 PR #628 on Dev.
weichen added 2 commits 2026-10-19 13:46:59 +00:00
agent-exec transport 8315c523cef26780543b9b2130f4f4a4/5c8333ec4e92
governance / governance (pull_request) Successful in 14s
ci / vet-and-test (pull_request) Successful in 1m18s
e942a35b73
weichen added 1 commit 2026-10-19 13:47:21 +00:00
Merge Backend main into feature branch for host integration step 1/8
governance / governance (pull_request) Successful in 18s
ci / vet-and-test (pull_request) Successful in 1m27s
e1af281e1e
weichen merged commit 3f4b34a5e8 into main 2026-10-19 13:47:25 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#219