Land IAM U4 role policy authority across the composition #619

Merged
weichen merged 46 commits from feature/iam-u4-role-authority into main 2026-10-18 15:51:48 +00:00
46 Commits
Author SHA1 Message Date
agent-exec-transport 9385796432 agent-exec transport b53834f8b38bf7cbcb659341c229e220/2f0defee9cd8
ci / svc-realcombo (pull_request) Successful in 2m15s
ci / test (pull_request) Successful in 7m30s
ci / test-pg (pull_request) Successful in 8m57s
2026-10-18 15:41:28 +00:00
agent-exec-transport 16bea3ee43 agent-exec transport 12843954316e555b217818c56f192ed3/6ec995c14e4c
ci / svc-realcombo (pull_request) Successful in 2m22s
ci / test (pull_request) Failing after 5m21s
ci / test-pg (pull_request) Successful in 8m42s
2026-10-18 15:21:37 +00:00
agent-exec-transport bbb92380c7 agent-exec transport 07766a247a517f1f0231fe241083b456/c332221e1735
ci / svc-realcombo (pull_request) Successful in 2m35s
ci / test (pull_request) Failing after 5m21s
ci / test-pg (pull_request) Successful in 8m24s
2026-10-18 15:09:57 +00:00
agent-exec-transport e186983577 agent-exec transport 45fa6a1e5d496e8adf604119c65951e6/ba2407d4714c 2026-10-18 15:08:53 +00:00
agent-exec-transport 76c514b9c1 agent-exec transport 9e9255c1a5d63cb004c963f5c112b634/1574b796b404 2026-10-18 15:07:15 +00:00
agent-exec-transport cd85a0b41a agent-exec transport 2adb4df3ed79e0b4a349869b6ab1258c/68f45653edf6
ci / svc-realcombo (pull_request) Successful in 2m11s
ci / test-pg (pull_request) Failing after 3m10s
ci / test (pull_request) Failing after 5m19s
2026-10-18 14:53:55 +00:00
agent-exec-transport 21001916dd agent-exec transport 0f2ac58c6d2962a3305e89c5357e60a2/a2b1e61bfed3
ci / test-pg (pull_request) Failing after 1m54s
ci / svc-realcombo (pull_request) Successful in 2m17s
ci / test (pull_request) Failing after 5m26s
2026-10-18 14:42:40 +00:00
weichen 82face06c1 Fold-close the task card before merge
ci / test (pull_request) Failing after 3s
ci / svc-realcombo (pull_request) Failing after 3s
ci / test-pg (pull_request) Failing after 3s
Why: close the task card inside its own PR so landing it needs no post-merge backfill or separate close PR.
Evidence: .task/feature-iam-u4-role-authority.md -> .task/archive/feature-iam-u4-role-authority.md; status 已完成(合入前闭合); PR #619 https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/619.
Impact: task metadata only; the card is archived within PR #619 and lands with its merge commit.
Refs: task.sh close --self
2026-10-18 14:36:35 +00:00
weichenandCursor 4375515417 Record the IAM U4 RDM merge and Dev pins onto component mains
ci / svc-realcombo (pull_request) Failing after 3s
ci / test (pull_request) Failing after 3s
ci / test-pg (pull_request) Failing after 4s
Why: Backend v0.6.0/v0.7.0 were published, RDM #440 and #441 merged, and Dev now pins the merged component mains.
Evidence: GATE CI success on RDM 7795952 and 607af47; transports 607af47 and a71c68c (SELF receipts under /tmp/cleanup-20261018/render).
Impact: card only.
Refs: RDM PR #440, RDM PR #441
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 14:36:20 +00:00
agent-exec-transport a71c68cf27 agent-exec transport dda78e84907aa3148bb28e232e7c2d2d/2236170adb04 2026-10-18 14:36:06 +00:00
weichenandCursor a815671e2b Record the IAM U4 Backend, Frontend and Documents merges
Why: three U4 component PRs passed CI and merged under merge_then_accept.
Evidence: GATE CI success on PR heads b4a19e7, 4d7dffe, 0b16daf and on Backend main 6594e1d; merged main trees equal the PR heads.
Impact: card only; RDM and Dev remain pending the Backend v0.6.0 and v0.7.0 tags.
Refs: Backend PR #213, Frontend PR #111, Documents PR #114
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 14:22:25 +00:00
weichenandCursor 2b524f17fb Record the synced Documents and Dev heads in the IAM U4 manifest
Why: Documents merged main cleanly and Dev was re-based onto main with the synced component pins, so the stage 7 manifest must name the new heads.
Evidence: make task-sync evidence block (SELF) synced to main 11e40e7 at tested head 72ccd31.
Impact: card only.
Refs: Dev card feature-iam-u4-role-authority
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 14:15:48 +00:00
weichenandCursor 72ccd31c88 Merge IAM U4 task history onto Dev main with synced component pins
Why: Dev main moved 479 commits ahead and the U4 component branches were
re-synced onto their mains after the renderer line; the old gitlinks
conflicted with main's renderer pins. The user authorized syncing U4 after
the renderer line on 2026-10-18.
Evidence: content is the agent-exec transport ce403ff (cursor worker, unit
dev-iam-u4-onto-main-11e40e7-r1, receipt
/tmp/cleanup-20261018/render/u4-dev-onto-run.json, SELF), integrated with
agent-exec apply onto main 11e40e7; this merge (strategy ours) only records
U4 commit b081484 as an ancestor and changes no content. Non-gitlink paths
equal the mechanical merge tree d944fe8.
Impact: modules/backend -> b4a19e7, modules/frontend -> ac45aa7,
modules/documents -> 0b16daf; architecture baseline gains the backend/authz
edges; the U4 card carries the replayed stage 7 evidence.
Refs: Dev card feature-iam-u4-role-authority

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 14:14:47 +00:00
agent-exec-transport ce403ff793 agent-exec transport 69065c2f7772c7a39dca79f9b0c34e05/c6f9c6566b15 2026-10-18 14:14:38 +00:00
weichenandCursor b0814849e6 Replay IAM U4 stage 7 evidence on the main-synced candidates
Why: the renderer line merged into Backend, Frontend and RDM main, so the
2026-10-15 stage 7 candidates were superseded under DR21 and the evidence
had to be replayed before acceptance.
Evidence: card evidence blocks (SELF) for the live acceptance harness 18/18
on Backend b4a19e7, RDM bdf65fe, Frontend ac45aa7 and UI 5c2b103; RDM go vet
and go test on the U4 Backend overlay; Backend go vet and go test; Frontend
vitest and build. One RDM run with a stale overlay path failed and stays
recorded.
Impact: the candidate manifest and the DR mapping header now name the new
heads; Documents and Dev sync remain pending.
Refs: Backend PR #209, Frontend PR #106, RDM PR #440

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 14:03:35 +00:00
weichen a127177860 Submit the stage 7 requirement-to-evidence map
Why: U3 concludes by presenting DR1-DR15 against the frozen candidate for the user's stage 7 conclusion.

Evidence: the map cites the receipts recorded in this card; all local SELF, GATE deferred to merge stages per the approved plan.

Impact: card only; stage 7 acceptance is now pending the user's review.

Refs: feature/iam-u4-role-authority
2026-10-15 09:10:35 +00:00
weichen 4c76518f5b Record the Dev combination test and build receipt
Why: U3 requires the fixed Dev combination (gitlinks at the candidate) to test and build locally before requesting review.

Evidence: receipt in card; make test and make build exit 0 at the task branch HEAD.

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 09:09:42 +00:00
weichen 76357d92dc Record the UI suite receipt
Why: U3 binds the fixed UI commit's tests for the stage 7 candidate.

Evidence: receipt in card; UI tests pass at ui e295cae (authoritative main).

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 09:04:53 +00:00
weichen 83c922947c Record the migration rehearsal receipt on PostgreSQL
Why: AE7 requires the same migration oracle to hold on the PG dialect.

Evidence: receipt in card; six migration/authority tests pass on isolated PostgreSQL.

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 09:04:49 +00:00
weichen 05e48ecc3f Record the migration rehearsal receipt on SQLite
Why: AE7 requires freeze/stage/compare/activate migration rehearsal evidence on the real store path.

Evidence: receipt in card; six migration/authority tests pass on SQLite.

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 09:04:37 +00:00
weichen 00e609f21b Record the backend store suite on isolated PostgreSQL
Why: U3 requires the PG-dialect store evidence (role, migration, delegation, lock-order) at the synchronized candidate.

Evidence: receipt in card; exit 0, zero skips, isolated postgres:16 container (removed after).

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 09:04:34 +00:00
weichen cb240e638a Record the RDM overlay full-suite receipt
Why: U3 replays the RDM development-contract suite against the fixed U4 backend overlay.

Evidence: receipt in card; all packages ok, exit 0 at rdm 0181982 x backend c8c49a6.

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 09:03:36 +00:00
weichen fa5bbb1837 Record the backend SQLite full-suite receipt
Why: U3 replays the stage-6 SQLite evidence on the synchronized candidate.

Evidence: receipt in card; 39 packages ok, exit 0 at backend c8c49a6.

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 09:02:30 +00:00
weichen 5e135b0ab2 Record the live isolation acceptance receipt
Why: U2's live layer must be recorded at its real evidence level (SELF, local harness run on frozen candidates).

Evidence: receipt in card; 18/18 (16 deterministic + 2 live) against backend@c8c49a6 rdm@0181982 frontend@05609ff ui@e295cae on a fresh SQLite root.

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 08:43:00 +00:00
weichen 93d6317595 Record the frontend unit, build and knip receipt
Why: U2 verification binds the frontend suites to the acceptance slice commit.

Evidence: receipt in card; 283 unit tests, build and knip baseline green at 05609ff.

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 08:42:13 +00:00
weichen 1e981fdf4e Record the deterministic IAM browser slice receipt
Why: U2 verification requires the repeatable browser gate recorded by the evidence tool.

Evidence: receipt in card; 16/16 scenarios on the isolated preview at frontend 05609ff.

Impact: card only.

Refs: feature/iam-u4-role-authority
2026-10-15 08:41:55 +00:00
weichen 6e734908cb Refresh the stage 7 candidate manifest after U2
Why: U2 landed the browser acceptance slice and the live harness; DR21 requires the manifest to track the tested component heads.

Evidence: frontend 05609ff (e2e slice + admin draft guards), RDM 0181982 (live isolation harness); harness run green at these heads.

Impact: manifest rows only.

Refs: feature/iam-u4-role-authority
2026-10-15 08:41:20 +00:00
weichen 0214f3ca0f Record stage 7-10 plan approval and freeze the candidate manifest
Why: U1 records the user's approved stage 7-10 delivery plan and fixes one synchronized candidate per DR1 before formal acceptance evidence.

Evidence: green task-sync receipt recorded via make evidence (sync_base ff3a562e, exit 0). Note: commit b2c2581's message called the prior receipt green; that receipt was a dirty-tree refusal — the honest record is its receipt content, superseded by this green run.

Impact: candidate manifest frozen at Backend c8c49a6, Frontend 20c20b7, UI e295cae, RDM 1537f3d, Documents c061181, Dev 1660515e; component branches all synced with their authoritative mains (RDM absorbed 83 commits, Frontend 2, Documents 1).

Refs: feature/iam-u4-role-authority
2026-10-15 06:11:56 +00:00
weichen 1660515ed6 Record the sync checkpoint
Why: bind the task validation checkpoint to the integration baseline.

Evidence: SELF recursive component checks; sync_base=ff3a562e50375ed592126c36ed2c76327517688a; before_record=e50fe5f84809911ade4a5764b10502e577c4ac26.

Impact: task metadata only.

Refs: .task/feature-iam-u4-role-authority.md
2026-10-15 06:09:35 +00:00
weichen e50fe5f848 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=ff3a562e50375ed592126c36ed2c76327517688a.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-15 06:09:14 +00:00
weichen b2c2581dbf Record the green task-sync receipt after conflict resolution
Why: U1 requires each task branch synchronized with origin/main before stage 7 evidence; the re-verification confirms the resolved sync.

Evidence: receipt in card, exit 0.

Impact: none.

Refs: feature/iam-u4-role-authority
2026-10-15 06:08:38 +00:00
weichen 5a8ed64f57 Record the blocked task-sync attempt receipt
Why: the first make task-sync hit the documents gitlink conflict; the evidence tool recorded the failure honestly before resolution.

Evidence: receipt in card, exit 1 on modules/documents conflict; resolution commit e913bc7.

Impact: none beyond the record.

Refs: feature/iam-u4-role-authority
2026-10-15 06:04:07 +00:00
weichen e913bc7527 Merge authoritative main into the task branch (documents pin carried at c061181)
Why: precheck reported SYNC_REQUIRED (17 commits behind); main advanced backend gitlink and card archives. The documents gitlink conflicted because neither side contains the other; resolved by syncing the Documents task branch with its main (d668a3e) first, giving c061181 which contains both the approved U4 plan (bcdb30c) and main's svc-compose proposal.

Evidence: resolved during make task-sync; green re-verification follows in the task card.

Impact: task branch is synchronized; documents pin is provisional until U6/U8 fix authoritative pins.

Refs: feature/iam-u4-role-authority
2026-10-15 06:03:55 +00:00
weichen a0c61ac44e Record the IAM U4 planning sync receipt
Why: The stage 7-10 plan must be reviewed against the current authoritative Dev baseline.

Evidence: make task-sync completed at Dev f4ae91a with sync base 63e70d8 and recursive component checks passing.

Impact: Records the SELF sync receipt after resolving the Backend gitlink conflict; no additional product behavior is introduced.

Refs: feature/iam-u4-role-authority
2026-10-15 03:57:22 +00:00
weichen f4ae91a2f0 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=63e70d8b91ccb1691ce9b78a373e4e8bc9da24a2.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync

# Conflicts:
#	modules/backend
2026-10-15 03:56:33 +00:00
weichen 3634c00d44 Record IAM U4 stage 7 delivery plan
Why: Stage 6 is approved and the focused role-permission task needs a precise acceptance and protected-delivery contract.

Evidence: Documents bcdb30c passes git show --check and its SELF receipt is recorded in the task card.

Impact: Pins the reviewed stage 7-10 plan and records the approval state; no runtime code, production data, or deployment changes.

Refs: feature/iam-u4-role-authority
2026-10-15 03:54:15 +00:00
weichen 6afeb0db49 Record synchronized role authority candidate
Why: Stage 6 review must reference the post-sync Dev HEAD and its fresh exact-combination evidence.

Evidence: task-sync receipt 475cbbb4109b4486; make test receipt ead7146e2e2ffb5d; RDM overlay receipt 5c02b23e2348c4d.

Impact: Updates only the U4 task record after merging current origin/main; component SHAs remain unchanged.

Refs: feature/iam-u4-role-authority
2026-10-15 02:51:23 +00:00
weichen 35f2b0c28f Record the sync checkpoint
Why: bind the task validation checkpoint to the integration baseline.

Evidence: SELF recursive component checks; sync_base=59cbf1109634b66c88f5b1702f330cd738aa75ef; before_record=12bda954222449d68e422cb5afc733ff6cdef845.

Impact: task metadata only.

Refs: .task/feature-iam-u4-role-authority.md
2026-10-15 02:46:15 +00:00
weichen 12bda95422 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=59cbf1109634b66c88f5b1702f330cd738aa75ef.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-15 02:45:35 +00:00
weichen 1cc3ab41fe Record reviewed role authority implementation
Why: Stage 6 needs the exact component set, requirement map, successful combination evidence, and honest browser limitation.

Evidence: Dev make test exit 0 receipt 7246370453f7ed6; RDM overlay exit 0 receipt 5c02b23e2348c4d; independent review no findings.

Impact: Updates only the U4 task record; production migration, deployment, release, and stage 7 remain unperformed.

Refs: feature/iam-u4-role-authority
2026-10-15 02:45:22 +00:00
weichen f6887430cd Pin reviewed role authority fixes
Why: Final U4 combination must include the independently reviewed authorization and administration fixes.

Evidence: Backend SQLite and isolated PostgreSQL suites, RDM overlay full suite, Frontend tests/build, and independent final review passed.

Impact: Advances only Backend and Frontend gitlinks and records SELF evidence; RDM remains separately overlaid pending a trusted Backend release.

Refs: feature/iam-u4-role-authority
2026-10-15 02:28:22 +00:00
weichen 8d6d59c4d8 Record passing role authority combination tests
Why: The final U4 component combination needs an exact-head verification receipt.

Evidence: make evidence recorded make test exit 0 at 60133981c5.

Impact: Adds SELF evidence only; no source or component pin changes.

Refs: feature/iam-u4-role-authority
2026-10-15 01:26:30 +00:00
weichen 60133981c5 Pin final role permission frontend
Why: The exact Dev combination must use the cleaned Backend-authoritative role and account administration surface.

Evidence: Frontend 280 tests, UI 163 tests, production build, and knip 43/43 passed.

Impact: Advances only the U4 Frontend gitlink and records prior combination evidence.

Refs: feature/iam-u4-role-authority
2026-10-15 01:19:40 +00:00
weichen c4c4216ad8 Register the Backend role authority boundary
Why: The focused authorization module introduces four intentional dependencies that the architecture ratchet must review explicitly.

Evidence: make test-boundaries passed with 89 recorded edges after the initial full make test stopped at the unregistered-edge gate.

Impact: Records only app/authz, authz/store, server/authz, and store/authz; no unrelated dependency edge is admitted.

Refs: Focused role and permission system task 8
2026-10-14 17:44:32 +00:00
weichen 0d0ae6122b Assemble the focused role permission candidate
Why: Combination verification requires fixed Backend, Documents, Frontend, and UI component identities.

Evidence: Component suites passed; the first Dev make test was correctly rejected before gitlinks were fixed.

Impact: Pins the local U4 candidate for subsequent Dev tests; RDM remains separately verified through its Backend overlay.

Refs: Focused role and permission system task 8
2026-10-14 17:40:00 +00:00
weichen 5c19eb47fa Record the task card for feature-iam-u4-role-authority
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-iam-u4-role-authority.md; R0=99119a733830bc120cd6747b8b61736ea6da6078.

Impact: task metadata only; the feature workspace starts at 99119a7338.

Refs: .task/feature-iam-u4-role-authority.md
2026-10-14 16:31:23 +00:00