Gate the rdm audit entry on command availability (frontend pin + plain-base e2e) #418

Merged
weichen merged 24 commits from feature/rdm-audit-capability-gate into main 2026-10-12 06:04:40 +00:00
Owner

任务卡(主记录,证据与阶段表在其中):.task/feature-rdm-audit-capability-gate.md

Why

The rdm-audit entry was an unconditional builtin, so on a plain base (no rdm.inspect.* commands) the workspace opened straight into a rejected receipt (400). 2026-10-12 diagnostic, increment 2; user authorized the 2+3-first scope.

What

  • Bump modules/frontend pin to the gating head (frontend PR #65): entry gated by rdmAuditReady over GET /api/commands (all seven rdm.inspect.* present and enabled), errors classified with the raw receipt collapsible.
  • scripts/e2e.sh phase 4: after the RDM-combo run, re-serve the same $DATA with the plain base CLI and run the new plain-base spec (E2E_PLAIN_BASE=1).

Evidence (SELF receipts in the task card; CI is the authoritative gate)

  • make test PASS on the synced HEAD (frontend 112 + knip, ui 108 + knip, backend/core/libs/governance/boundaries/pins).
  • bash scripts/e2e.sh PASS: RDM combo 4/4 + plain-base 1/1.

Refs

2026-10-12 diagnostic report increment 2; frontend PR #65 (Agent-System-Frontend).

任务卡(主记录,证据与阶段表在其中):`.task/feature-rdm-audit-capability-gate.md` ### Why The rdm-audit entry was an unconditional builtin, so on a plain base (no rdm.inspect.* commands) the workspace opened straight into a rejected receipt (400). 2026-10-12 diagnostic, increment 2; user authorized the 2+3-first scope. ### What - Bump `modules/frontend` pin to the gating head (frontend PR #65): entry gated by `rdmAuditReady` over `GET /api/commands` (all seven rdm.inspect.* present and enabled), errors classified with the raw receipt collapsible. - `scripts/e2e.sh` phase 4: after the RDM-combo run, re-serve the same `$DATA` with the plain base CLI and run the new plain-base spec (`E2E_PLAIN_BASE=1`). ### Evidence (SELF receipts in the task card; CI is the authoritative gate) - `make test` PASS on the synced HEAD (frontend 112 + knip, ui 108 + knip, backend/core/libs/governance/boundaries/pins). - `bash scripts/e2e.sh` PASS: RDM combo 4/4 + plain-base 1/1. ### Refs 2026-10-12 diagnostic report increment 2; frontend PR #65 (Agent-System-Frontend).
weichen added 13 commits 2026-10-12 03:19:12 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-rdm-audit-capability-gate.md; R0=475654363de3ec72df68d246ffab8217b1cfeab6.

Impact: task metadata only; the feature workspace starts at 475654363d.

Refs: .task/feature-rdm-audit-capability-gate.md
Why: the rdm-audit entry must hide on plain bases lacking rdm.inspect.*
commands (2026-10-12 diagnostic, increment 2), and the dev-repo e2e driver
needs a plain-base phase to prove it end to end.

Evidence: frontend e058adc carries the gating (vitest 23 files / 112 tests
incl. new contract matrix; tsc -b && vite build pass); full e2e rerun
follows this commit (RDM combo + plain base phases).

Impact: modules/frontend pin 360d640 -> e058adc; scripts/e2e.sh gains
phase 4 (same $DATA served by the base CLI, plain-base.playwright.ts);
task card records scope, authorization chain and stage table.

Refs: 2026-10-12 diagnostic report, increment 2.
Why: the plain-base scenario must not run in the phase-3 RDM-combo sweep.

Evidence: frontend 986ebdb self-skips unless E2E_PLAIN_BASE=1 (phase-3 rerun
showed 4 rdm-audit tests passing); full e2e rerun follows this commit.

Impact: modules/frontend pin e058adc -> 986ebdb; e2e.sh phase 4 injects
E2E_PLAIN_BASE=1.

Refs: 2026-10-12 diagnostic report, increment 2.
Why: keep the dev-repo pin in lockstep with the spec fix.

Evidence: frontend commit follows; full e2e rerun recorded in the task card.

Impact: modules/frontend pin 986ebdb -> spec-fix head.

Refs: 2026-10-12 diagnostic report, increment 2.
Why: keep the dev-repo pin in lockstep with the unexport fix so make test
passes on the task HEAD.

Evidence: frontend vitest + knip pass; full make test evidence row follows.

Impact: modules/frontend pin follows the unexport head.

Refs: 2026-10-12 diagnostic report, increment 2.
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=37e3229538d64867a6a074020a072da925244fcc.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=37e3229538d64867a6a074020a072da925244fcc; candidate=53dd0168a14b6f3c628eea94ac4f19f8cad30862.

Impact: task metadata only.

Refs: .task/feature-rdm-audit-capability-gate.md
Fill increment-2 outcomes and next-step plan in the task card
ci / test-pg (pull_request) Successful in 1m31s
ci / test (pull_request) Successful in 3m2s
74eef16d2b
weichen added 1 commit 2026-10-12 03:20:09 +00:00
Record the Dev and frontend PR links in the task card header
ci / test-pg (pull_request) Successful in 1m13s
ci / test (pull_request) Successful in 3m12s
6669ac5224
weichen added 3 commits 2026-10-12 03:31:09 +00:00
Why: task-sync ahead of review; main advanced via #414/#415 (admin-zone
hosting, U1 instance identity).

Evidence: frontend merge verified (vitest/knip/build); dev-level make test
and e2e rerun on this head follow as evidence receipts.

Impact: resolves the modules/frontend gitlink to the component merge head.

Refs: parent evidence in this task card.
Record the post-merge e2e receipt in the task card
ci / test-pg (pull_request) Successful in 1m26s
ci / test (pull_request) Successful in 3m49s
2fa04545f0
weichen added 4 commits 2026-10-12 03:39:50 +00:00
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=9a9665b458916179df6d94066dfb9aa657a13d60.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=9a9665b458916179df6d94066dfb9aa657a13d60; candidate=c44696d94f354109152abc95f4eeec9560454071.

Impact: task metadata only.

Refs: .task/feature-rdm-audit-capability-gate.md
Record the post-sync e2e receipt in the task card
ci / test-pg (pull_request) Successful in 1m28s
ci / test (pull_request) Successful in 3m17s
0e3c5b1006
weichen added 1 commit 2026-10-12 03:42:55 +00:00
Record the passing e2e receipt after the cross-instance interference reruns
ci / test-pg (pull_request) Failing after 1m18s
ci / test (pull_request) Successful in 3m33s
4faa1dc6da
weichen added 2 commits 2026-10-12 03:46:26 +00:00
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=b6307db015da4a3718baadb242c52cb66b024f74.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Record the sync checkpoint
ci / test (pull_request) Failing after 2m58s
ci / test-pg (pull_request) Successful in 1m23s
250285eebb
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=b6307db015da4a3718baadb242c52cb66b024f74; candidate=459d4e186e0d49c60568ffb3935d9f6eba05b033.

Impact: task metadata only.

Refs: .task/feature-rdm-audit-capability-gate.md
weichen merged commit b008bd94ad into main 2026-10-12 06:04:40 +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-Dev#418