U4 browser acceptance: Playwright harness, seed pipeline, and audit-workspace fixes (frontend pin bump) #393

Merged
weichen merged 13 commits from feature/rdm-e2e-acceptance into main 2026-10-11 18:17:40 +00:00
Owner

U4 real-browser acceptance for the RDM trace/audit workspace.

  • scripts/e2e.sh: offline build (RDM archive + pinned-checkout snapshot), two-phase seeding (domain admin, base account, projects, requirement ledger, doc-tree structure via -project, ingest), serve with auth on, vite preview proxy, Playwright run, teardown.
  • frontend: @playwright/test harness + e2e/rdm-audit.playwright.ts (login incl. first-login gate, overview counts, three-click forensics, grouped timeline + history mode, project-switch isolation).
  • Product fixes found by the run: (1) buildWorkspaceEntries never ranked the rdm-audit builtin so the workspace was unreachable; (2) the docs tree is two-level (parent= yields sections) but the workspace only fetched level one — tree showed bare docs, doc clicks hit an unsupported inspect kind, trace tab always empty.
  • Seeding CLI is built from the RDM-pinned backend so the store schema matches the binary under test.

Why/Evidence/Impact per commits; make test green (107 frontend tests, knip baseline, full combo) and scripts/e2e.sh green (4 passed) recorded in the task card via make evidence. RDM-side support merged as #222.

U4 real-browser acceptance for the RDM trace/audit workspace. - scripts/e2e.sh: offline build (RDM archive + pinned-checkout snapshot), two-phase seeding (domain admin, base account, projects, requirement ledger, doc-tree structure via -project, ingest), serve with auth on, vite preview proxy, Playwright run, teardown. - frontend: @playwright/test harness + e2e/rdm-audit.playwright.ts (login incl. first-login gate, overview counts, three-click forensics, grouped timeline + history mode, project-switch isolation). - Product fixes found by the run: (1) buildWorkspaceEntries never ranked the rdm-audit builtin so the workspace was unreachable; (2) the docs tree is two-level (parent=<docId> yields sections) but the workspace only fetched level one — tree showed bare docs, doc clicks hit an unsupported inspect kind, trace tab always empty. - Seeding CLI is built from the RDM-pinned backend so the store schema matches the binary under test. Why/Evidence/Impact per commits; make test green (107 frontend tests, knip baseline, full combo) and scripts/e2e.sh green (4 passed) recorded in the task card via make evidence. RDM-side support merged as #222.
weichen added 10 commits 2026-10-11 18:06:19 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-rdm-e2e-acceptance.md; R0=a884b5b4553ba070a4a08cbe4227718cbce856cf.

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

Refs: .task/feature-rdm-e2e-acceptance.md
Why: U4 acceptance needs a reproducible real-browser run: build the
RDM binary from its origin/main, seed projects/ingest via the command
API, serve with auth on, and drive Playwright against vite preview.

Evidence: scripts/e2e.sh --seed-only smoke (in progress this task);
frontend pin points at the Playwright harness commit.

Impact: dev tooling only (.tmp artifacts ignored; no runtime changes).

Refs: task feature/rdm-e2e-acceptance; frontend feature branch of
the same name.
Why: git submodule clone over the flaky Gitea SSH endpoint hangs the whole run; local archive + pinned-checkout snapshot removes the network dependency and cuts the build stage to seconds.

Evidence: this exact tree ran scripts/e2e.sh to green (4 passed) twice, recorded in the task card.

Impact: scripts/e2e.sh only; behavior unchanged when the network is healthy.
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=aa1f87602471cc567afd5756326e994315984fc8.

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=aa1f87602471cc567afd5756326e994315984fc8; candidate=fe2cd1920c559240ff083cdb8e1509ee087839ea.

Impact: task metadata only.

Refs: .task/feature-rdm-e2e-acceptance.md
Why: task-sync advanced the Dev backend gitlink past the RDM pin; a newer-schema user-create CLI migrates the fresh store beyond what the RDM binary (schema ceiling of its pin) can open.

Evidence: reproduce on 20261011-180439 run (v25 store vs v24 binary); rerun green recorded after this change.

Impact: scripts/e2e.sh only; seeding and serving now share one base version.
weichen added 1 commit 2026-10-11 18:06:20 +00:00
Why: task-sync advanced the Dev backend gitlink past the RDM pin; a newer-schema user-create CLI migrates the fresh store beyond what the RDM binary (schema ceiling of its pin) can open.

Evidence: reproduce on 20261011-180439 run (v25 store vs v24 binary); rerun green recorded after this change.

Impact: scripts/e2e.sh only; seeding and serving now share one base version.
weichen added 1 commit 2026-10-11 18:09:34 +00:00
Record the final E2E evidence in the task card
ci / test (pull_request) Successful in 2m34s
ci / test-pg (pull_request) Successful in 1m11s
43f06a0215
weichen force-pushed feature/rdm-e2e-acceptance from 918541bb54 to 43f06a0215 2026-10-11 18:09:34 +00:00 Compare
weichen added 2 commits 2026-10-11 18:14:11 +00:00
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=660f581d81bb54c9868920df07e0b8fdbec8e036.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Record the sync checkpoint
ci / test-pg (pull_request) Successful in 1m13s
ci / test (pull_request) Successful in 2m29s
0316efe91d
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=660f581d81bb54c9868920df07e0b8fdbec8e036; candidate=d50b52fd62e625e2f8c524c5362eaae0d150f479.

Impact: task metadata only.

Refs: .task/feature-rdm-e2e-acceptance.md
weichen merged commit 43722052eb into main 2026-10-11 18:17: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#393