This repository was archived by the owner on Nov 11, 2026. It is now read-only.
Repository navigation
feat: prototype simple opt-in reports with native data - #40
Merged
Merged
Conversation
Related: #32 Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #33 Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #33 Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #32. Hosted CI failed because Playwright 1.59.1 rejects ubuntu26.04. Pin Ubuntu 24.04 and run CI on staged PR bases as well as main. Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #34 Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #32 Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #34. Record the demo proof owner and capture the actual selected state. Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #33 Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com> # Conflicts: # .github/workflows/ci.yml
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #24. Synthetic console preview only; no delivery, scheduler, R2 or live Gateway integration. Preserve the broader issue. Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #24. Browser proof failed on 2098f2f after crossing the ten-second freshness boundary. Keep demo consent in its page-session cache; production freshness is unchanged. Add the real browser regression to CI and replace the seeded test that masked the defect. Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #32. The query client owns demo freshness and retention. Production defaults are unchanged. Add an unseeded real-time navigation regression and recapture settled invite sheets. Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #34. Cross the real freshness boundary, leave Billing, return and remount settings before checking Both. Full reload restores Included. Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Both unseeded browser gates are retained. Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
Related: #24. Remove the per-report freshness override after the shared query client takes ownership. All four unseeded lifecycle regressions pass. No native integration or delivery is claimed. Co-authored-by: IAMSamuelRodda <7961255+IAMSamuelRodda@users.noreply.github.com>
This was referenced Nov 3, 2026
RoboForgeBot
marked this pull request as ready for review
November 3, 2026 13:29
Contributor
Author
|
Final main CI passed at 4c395f6: https://github.com/arcforgelabs/console/actions/runs/41645274979 . Its tree matches the local integration proof exactly. All four source PRs merged. No production release or apply was needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merged outcome
Merged into main at
4c395f6. All four PRs merged in order. Final main4c395f6exactly matches the tested integration tree85fcd8ddf792b237b3befecb659a66217b254576. Earlier draft and merge-hold statements below are historical, not current blockers.No production deployment is required for this synthetic demo scope. The production bundle and all live services remain unchanged. Broader Reports issue arcforgelabs/platform#1027 remains open.
Current merge decision
Samuel authorized merge and deployment if relevant on 3 November 2026 in the task session. This supersedes earlier merge holds below. The reviewed source remains unchanged.
No production deployment is needed for this bounded synthetic demo task. Real invites, support writes, model routing and report delivery remain disconnected. The platform owns the separate pinned production bundle; no release, bundle change or live apply forms part of this merge. Issue arcforgelabs/platform#1027 remains open.
Current repair head:23eb2270c15087275ec7f89c8747726bf7eec0c7. Draft; focused native Arc re-review complete. Merge/live HELD. Earlier head references below are historical evidence.
Related: arcforgelabs/platform#1027. Partial demo progress only; keep issue arcforgelabs/platform#1027 open. Stacked after model settings PR #39. Merges and all live changes HELD.
What Problem This Solves
The original report direction risks a second report/email system. Samuel requested a simpler opt-in experience where customers already use OpenClaw.
User Impact
A small synthetic /reports list and /reports/ preview show a short update. A default-off opt-in mock changes only browser query state and resets on reload. No reports are sent. Unknown periods show a useful not-found message. The detail page exposes candidate native structured report data, not executable HTML.
Why This Change Was Made
Compared stock chat/file delivery, native session:report and a portal/site before implementation. Recommend native session:report for compact opt-in reports: no app server, arbitrary HTML or extra email system. Expanded task presentation is supported; this is not a claim of full-bleed HTML authoring. A portal proxies a running server and adds ingress/authentication/lifecycle work, so it is not recommended here.
Decision, source documentation, tenant boundaries and limits. The typed hooks retain future read paths, but add no backend. The producer must later verify consent, report membership and the destination account before real delivery. No customer mapping, R2, email, scheduler, config, secrets, customer access, native widget creation or live integration.
Simplification: one short data fixture, existing Page/QueryView/More/Switch, and a bounded data-only console mock. No report editor, report service or delivery engine. Native stock rendering remains unverified; screenshots prove only the real local console prototype. arcforgelabs/platform#1027 retains subscription, email and protected report scope.
Evidence
Initial feature commit: 2098f2f. Current repaired head: cd0bddf.
Local Node 24.22.1, pnpm 10.28.0:
All viewports
Limitations: native customer-frame rendering and expanded presentation, persistent opt-in, live delivery, account isolation, revocation and sign-in release suite were not run. The initial Codex review failed authentication. Native Arc review is now complete below; draft status remains under the merge/live hold. Source-blind runtime validation is separate. Times use default concurrency, not one-worker measurements. No merge or deployment.
Work session: Console demo features and Reports. Listed on the Session board; GitHub remains the source sync point.
Independent source-blind validation found that consent reset after route navigation. The seeded UI cache masked the normal ten-second freshness boundary. Reproduced against 2098f2f with the new real-browser test: pnpm exec playwright test --config e2e/demo-reports.config.ts failed at the returned switch (expected checked, received unchecked). The spec was then renamed to demo-reports.browser.ts to keep it outside the release sign-in spec glob; its assertion is unchanged.
Repair cd0bddf gives only the demo consent query page-session freshness; production freshness is unchanged. The misleading seeded consent test was replaced, not retained as lifetime proof. pnpm test:demo-reports now passes: 1 browser test, one worker, 9.4s, including the real freshness boundary, navigation retention, reload reset and zero network writes. It is included in hosted CI. All six required local gates reran after the repair: lint and format pass, 22 Worker tests (1.66s), 70 UI tests (17.34s), both builds pass.
One repair recheck was blocked because the temporary dev server reached its old execution timeout (connection refused, not a product failure). The owned synthetic server was restarted before the successful browser run above. Native customer rendering remains unverified and live integration remains HELD.
Hosted exact-head CI passed at cd0bddf: https://github.com/arcforgelabs/console/actions/runs/41460234325 . Required lint, format, Worker/UI tests and both builds passed. The added real-browser consent regression and upstream theme JAR build also passed. This CI result does not clear the independent technical-review blocker or authorize merge/live activation.
Final source-blind recheck
At repaired head cd0bddf, the synthetic 390x844 console retained opt-in across period navigation twice after real 11,500ms waits. The second full reload reset it off. The first reload showed a blank document and timed out after 60 seconds; direct navigation recovered. Its cause is unestablished, so this is not an unconditional browser pass. No further source change was inferred from that single interruption. The automated local and hosted reload assertions passed.
Page fetch/XHR/sendBeacon instrumentation observed zero requests during the two enable/wait/navigate/return intervals (40,450ms and 39,557ms). It did not establish worker/WebSocket or reload-time behaviour. Native Gateway rendering remains unverified. Reports empty-state and support no-claw clauses lacked browser-visible fixtures; automated route tests cover those states, not source-blind runtime proof.
Blank reload investigation follow-up
Source remained unchanged at cd0bddf. A dedicated VITE_DEMO=1 dev server and node /tmp/reports-reload-diagnostic.mjs exercised six full consent/navigation/reload cycles each at 390x844 and 1280x900. Both first cycles included a real 11,500ms wait. All 12 reloads returned HTTP 200 and rendered the off switch; no page errors or failed requests were recorded. Actual synthetic returned-on/reloaded-off screenshots were captured at both sizes; phone images were visually inspected. This was local diagnostic evidence, not a committed test or native-render proof.
pnpm test:demo-reports --repeat-each=10 also passed on this same owned server. A preliminary attempt without the server failed with connection refused before reaching product behaviour; those failures are not regression results. The original isolated blank reload remains unexplained, not reproduced or claimed fixed. No speculative source repair was made. Existing red/green regression proves the separate consent freshness repair, not a blank-page fix.
Cato requested native Arc review of all four pinned heads. This session attempted agentId arc through the native subagent tool; policy refused it (allowed agent: roboforge). No credential or permission change was made. Cato subsequently dispatched native Arc review; see its completed result below. Codex authentication is not the only route considered; the initial attempts produced no completed technical review. All four drafts remained held at that earlier checkpoint. Merge/live actions remain HELD. Native session:report has installed-documentation support only; rendering and delivery remain unverified.
Shared demo owner and reviewed stack repair
Cato relayed native Arc review of the earlier pinned stack: no P0/P1, three P2 demo resets in invites, support and model settings. Reports had no additional own-source finding but inherited the blocked stack. The old authentication-only review status is superseded by that native review; focused review of the repairs is complete.
The page query client introduced by #36 owns demo freshness and retention until reload. This head removes Reports staleTime override rather than keeping a second policy. Production query defaults remain unchanged. All three lower-stage unseeded lifecycle cases were red on cd0bddf, after real11,500ms waits and in-app navigation; models also closes/reopens its panel.
At23eb2270c15087275ec7f89c8747726bf7eec0c7: pnpm test:demo-state passed3 tests in55.9s; pnpm test:demo-reports passed1 in10.1s. Lint,format,22 Worker tests,70 UI tests and both builds pass; Worker build is dry-run only. Both browser gates are retained in CI; no test was disabled. git diff --check and stack ancestry pass. Every new commit, including ancestry merges, has the required co-author trailer.
All four settled synthetic invite screenshots were recaptured at #36 head01bb3ef; other visual inputs are unchanged and earlier screenshots are reused. The isolated blank reload remains unreplicated and unexplained, not claimed fixed. Native session:report remains a documented recommendation, not a working rendering or delivery integration. Account isolation, persistent consent, revocation and native/customer delivery remain unverified. No live actions; arcforgelabs/platform#1027 remains open.
Hosted exact-head CI passed at23eb2270c15087275ec7f89c8747726bf7eec0c7: https://github.com/arcforgelabs/console/actions/runs/41465105233 . All six required gates and both browser suites passed. focused native Arc re-review complete; drafts/merge/live holds remain.
Final corrected invite images (own dependencies, loaded fonts, settled viewport bounds and zero failed requests) are pinned at evidence-only commit ba8c870. PR #36 links them. This supersedes the linked-dependency font limitation without moving any validated source head.
Final independent review: source scope complete
Native Arc review cleared all three reported P2 lifetime defects. It found no new P0–P2 defect in the repair scope. This is an independent narrative review, not helper-validated machine status or a formal GitHub approval. The observed reviewer model was openai/gpt-6.1-sol.
The reviewed head for this PR is
23eb2270c15087275ec7f89c8747726bf7eec0c7. Live GitHub readback confirms the same head and passing checks. Exact-head CI passed 22 Worker tests, 70 UI tests and 4 browser test(s). Source inputs are unchanged, so those gate results remain valid.Arc independently ran the integrated PR40 head: navigation regressions 3 passed in 53.7s; Reports regression 1 passed in 9.7s; session tests 2 passed. It verified query-cache ownership, unchanged production defaults, reload resets and rejection of network writes. It inspected the corrected invite images. Arc did not independently replay the author's red baseline.
Implementation, proof and the requested review are complete for the bounded demo source task. Draft status and merge/live holds remain. The earlier blank reload is unexplained, not claimed fixed. Native Gateway rendering and delivery remain unverified; the console mock does not prove integration. Issue arcforgelabs/platform#1027 remains open for its broader scope.
Current-main integration proof
Tested local integration commit
5e2628129e23f76e35406715be1dfb8afbe906a4, tree85fcd8ddf792b237b3befecb659a66217b254576: current mainb5dad59plus the reviewed PR40 stack. Git merged without conflict. Main's Playwright 1.64.1 and latest Ubuntu configuration remain intact.pnpm install --frozen-lockfile,pnpm lint,pnpm format:check,pnpm test:worker(22 passed, 1.91s),pnpm test:ui(70 passed, 26.75s),pnpm test:demo-state(3 passed, one worker, 1.0m),pnpm test:demo-reports(1 passed, one worker, 9.8s),pnpm build,pnpm build:workerandgit diff --checkall passed. Browser runs usedCI=1and loopback-onlyNO_PROXY=127.0.0.1,localhost, so the exact worktree started its own server. The first browser setup failed because the host proxy intercepted loopback; no product failure or source fix is claimed for that setup error.Release sign-in and production apply were not run. No release or production bundle update is needed for this demo-only merge.