Verify progressive material states in a real browser #79

Merged
weichen merged 26 commits from feature/fast-slow-u2-u3 into main 2026-10-19 09:20:39 +00:00
Owner

The task-owned HTTP/Playwright suite now observes two distinct sourced findings while material work is still running, waits for batched failure notices to settle before asserting no choice, checks a completed source-bound choice, and covers reload/source-version behavior and preservation of the current file and input focus. The production UI remains on the existing three-column surface.

Frontend mainline RDM export controls were merged into this branch at 139f2ce; its 269 unit tests and build passed. Six U3 task-owned browser cases passed at c9d5acf against Dev 4c5cd40 / Backend 583c074. The r0.4 real-model A01 is still NOT_RUN and separately gated; keep this PR draft.

Refs: U3 r0.4 Task 6; Backend PR #193; Dev PR #512.

The task-owned HTTP/Playwright suite now observes two distinct sourced findings while material work is still running, waits for batched failure notices to settle before asserting no choice, checks a completed source-bound choice, and covers reload/source-version behavior and preservation of the current file and input focus. The production UI remains on the existing three-column surface. Frontend mainline RDM export controls were merged into this branch at 139f2ce; its 269 unit tests and build passed. Six U3 task-owned browser cases passed at c9d5acf against Dev 4c5cd40 / Backend 583c074. The r0.4 real-model A01 is still NOT_RUN and separately gated; keep this PR draft. Refs: U3 r0.4 Task 6; Backend PR #193; Dev PR #512.
weichen added 11 commits 2026-10-13 06:40:20 +00:00
Why: keep the workbench wire types aligned with Core.

Evidence: TypeScript check passed on the synchronized contract.

Impact: generated types only.

Refs: U2/U3 Task1
Why: Replayed events, snapshot races, and source navigation must preserve authoritative work and user focus.

Evidence: SELF make evidence records 213 frontend tests, type checks, knip ratchet, and production build.

Impact: Uses the existing store for task revisions and gap replay; opens sources in the existing preview with version context.

Refs: fast-slow-u2-u3 Task 5; generated public contract types account for the measured knip baseline increase
Why: A folded auxiliary panel must not hide material limits or withdrawn conclusions.

Evidence: SELF 213 frontend tests, type checks, knip ratchet, and bundle build pass.

Impact: Prioritizes existing task cards without opening files or changing focus.

Refs: fast-slow-u2-u3 Task 5
Why: Source context must remain attached to the bytes being read.

Evidence: SELF frontend tests and production build pass.

Impact: Carries an optional expected hash and preserves one preview location.

Refs: fast-slow-u2-u3 Task 5 source-version acceptance
Why: DOM fixtures alone cannot verify persisted checkpoints and source version handling.

Evidence: SELF source navigation and changed-version checks pass; reading replay is being repeated after the deferred runtime port fix.

Impact: Adds an explicit task-owned instance browser suite without paid model calls.

Refs: fast-slow-u2-u3 Task 7
Why: Unrelated browser suites should skip this opt-in runtime acceptance instead of importing an absent manifest.

Evidence: Playwright discovers the two tests without an instance; explicit owned-instance replay passed previously.

Impact: Preserves strict manifest verification when invoked.

Refs: fast-slow-u2-u3 Task 7
Why: Late source requests must not replace a newer preview or survive conversation navigation.

Evidence: Frontend typecheck, 221 unit tests, knip ratchet and build passed; delayed-response regressions reproduced the old failure.

Impact: The existing store owns source requests and invalidates stale responses on preview and context changes.

Refs: Agent-System-Dev feature-fast-slow-u2-u3-plan; independent review finding 4
Why: Material records now display validated source quotations rather than unverified model paraphrases.

Evidence: Existing browser coverage retains refresh, changed-version, preview and focus checks; the updated assertions target actual source text.

Impact: Browser-only expectations change; product bundle remains the independently reviewed version.

Refs: Approved R05 and host material-record guard
Why: Preserve current main before publishing the U2/U3 candidate.

Evidence: Exact main object fetched; browser-only upstream changes.

Impact: Retain both sets of browser coverage.

Refs: Agent-System-Dev U2/U3 delivery
weichen added 1 commit 2026-10-13 11:00:49 +00:00
weichen changed title from [WIP] Show saved work without stealing the current reading context to [WIP] Preserve reading during background task updates 2026-10-13 11:03:11 +00:00
weichen added 4 commits 2026-10-13 18:08:44 +00:00
Why: Frontend generated types must follow the single Core checkpoint contract.

Evidence: Dev make contracts generated the mirror; npm test and npm run build passed.

Impact: Type-only mirror update; persisted task cards and reading behavior stay unchanged.

Refs: Core c722c16; Dev task feature/fast-slow-u2-u3-plan
Why: The Core mirror must satisfy the Frontend unused-export guard without changing the candidate shape.

Evidence: Dev make contracts regenerated the file; Frontend knip 51 <= 52 and build passed.

Impact: Type-only export visibility change.

Refs: Core b474394; Dev task feature/fast-slow-u2-u3-plan
Why: The U3 browser gate must show a host-generated pending question for underdetermined source counts.

Evidence: The new assertion failed against the old mechanism fixture while existing source-navigation and focus-flow tests remained observable; Backend fixture now emits structured premises.

Impact: Browser test inputs and assertion only; no production UI change.

Refs: Backend 756679d; Dev task feature/fast-slow-u2-u3-plan
weichen changed title from [WIP] Preserve reading during background task updates to [WIP] Preserve reading and show pending stage findings 2026-10-13 18:20:36 +00:00
weichen added 1 commit 2026-10-14 03:34:24 +00:00
Why: The r0.4 acceptance must show running findings, zero and partial failure, and a source-bound choice in the real UI.

Evidence: Six task-owned HTTP/Playwright cases passed; npm test (265 tests) and npm run build passed.

Impact: Browser test coverage only; no production UI change.

Refs: U3 r0.4 Task 6
weichen added 1 commit 2026-10-14 03:57:39 +00:00
Why: A failed task card can appear before its notification turn, and the second finding must be observed while work is still running.

Evidence: The strengthened browser checks first exposed missing fixture notice text and a zero-width second-stage window; after fixture correction all six task-owned HTTP/Playwright scenarios passed. Frontend 265 unit tests and build passed.

Impact: Test coverage only; no production UI change.

Refs: U3 r0.4 independent review Important 5
weichen changed title from [WIP] Preserve reading and show pending stage findings to [WIP] Verify progressive material states in a real browser 2026-10-14 04:00:56 +00:00
weichen added 1 commit 2026-10-14 04:04:26 +00:00
Why: Keep the approved RDM export controls and the U3 material browser coverage in one component candidate.

Evidence: Changes in store.ts touch separate state fields and behavior; full Frontend tests/build and task-owned browser cases will be rerun after this merge.

Impact: Includes upstream RDM export UI without changing U3 source or notice contracts.

Refs: Dev U3 r0.4 Task 6 final review synchronization
weichen added 1 commit 2026-10-14 04:06:25 +00:00
Why: One system reminder can contain multiple failed child notices, so the browser test must wait for the whole batch rather than one message per child.

Evidence: The first post-merge HTTP/Playwright run failed only at this false one-to-one assumption; all six task-owned browser cases passed after counting notice entries in the persisted reminder.

Impact: Test-only correction; no production UI behavior change.

Refs: U3 r0.4 Task 6 review closure
weichen added 1 commit 2026-10-14 08:40:23 +00:00
Why: The first reply and task reuse need end-to-end checks across long and small material inputs.

Evidence: Dev evidence receipts for ten Playwright scenarios, Frontend tests, and build.

Impact: Adds browser-only coverage; production UI and API behavior are unchanged.

Refs: U3 r0.5 implementation plan Task 4
weichen added 1 commit 2026-10-14 09:13:26 +00:00
Why: Users must see truthful first replies when work queues or cannot start.

Evidence: RED and GREEN HTTP browser receipts plus Frontend 269 tests and production build.

Impact: Adds two task-owned Playwright scenarios; production UI is unchanged.

Refs: U3 r0.5 independent review finding
weichen added 2 commits 2026-10-19 03:38:55 +00:00
Merge feature/fast-slow-u2-u3 history after syncing with main
governance / governance (pull_request) Successful in 20s
ci / test-and-build (pull_request) Successful in 35s
b4fec2fdf4
weichen added 1 commit 2026-10-19 05:10:55 +00:00
agent-exec transport 3646d6259c27d42bf24f52c61364d67e/bea155d33d2e
governance / governance (pull_request) Successful in 14s
ci / test-and-build (pull_request) Successful in 30s
aa49e0dbf3
weichen added 1 commit 2026-10-19 05:25:09 +00:00
agent-exec transport 9f91fe4ba0c0b0412d4616549f170f87/cff15f49e8bf
governance / governance (pull_request) Successful in 17s
ci / test-and-build (pull_request) Successful in 37s
6f8e7ec604
weichen marked the pull request as ready for review 2026-10-19 09:20:36 +00:00
weichen merged commit f560201f8b into main 2026-10-19 09:20:39 +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-Frontend#79