Repository navigation
[friction-curation] Dashboard map: new panels must reset module caches on workspace change - #8917
Merged
Merged
Conversation
…e … [ORB-23710] [friction-curation] Dashboard map: new panels must reset module caches on workspace change
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Task
ORB-23710 — [friction-curation] Dashboard map: new panels must reset module caches on workspace change
Description
Outcome
Friction F2026-11-205: the dashboard implementer map's new-view pattern (
docs/agents/dashboard-map.mdsection "Pattern a new panel or series copies", line ~32) tells an implementer to copy routing, API, JS module, tab and stylesheet wiring. It never says thatcommon.js::requestPanelonly resets panel DOM and fences request callbacks, and does not retire a module's own cached payloads. ORB-23686 (the concrete memory.js repair, still open) shows the consequence:memory.jskeeps spaces, proposals and detail at module level (memory.js:21-25 at 3c8c7e8) with noonWorkspaceChangereset, so workspace A's detail painted in workspace B at 375px (ORB-23685 manual QA). Earlier scope-isolation misses (ORB-12672, ORB-14064, ORB-15660, ORB-19396, ORB-21549) show the class recurs.Scope
Add guidance to the new-panel pattern: a panel that keeps module-level payloads registers an
onWorkspaceChangereset of that state and of any local repaint paths (media-query or breakpoint repaints, inline mobile accordions). Its manual QA checks delayed reads and local repaints across an A→B→A workspace switch, including the 375px inline path. Name an existing module that does this correctly, verified at the candidate revision, as the example. Per the workspace guide, do not add UI tests.This task leaves the memory.js code fix to ORB-23686.
Acceptance Criteria
docs/agents/dashboard-map.md's new-panel pattern states that requestPanel fencing does not invalidate module caches. It requires an onWorkspaceChange reset for module-level payloads and local repaint paths, and it names a verified example module with itspath::symbol.make docs-indexandscripts/generate-doc-indexes.sh --checkpass.Execution Summary
Click to expand
Implemented ORB-23710: extended docs/agents/dashboard-map.md Pattern section with module-cache scope guidance. Criterion 1 PASS: new bullets state common.js::requestPanel only resets panel DOM and fences stale callbacks by workspace revision and does not invalidate module caches; require a common.js::onWorkspaceChange reset of every cached payload and local repaint path (media-query/breakpoint repaints, inline mobile accordions); names verified example crates/orbit-web/assets/dashboard/js/memory.js::retireMemoryCache (spaces/proposals/listRevision/detail cleared plus DOM, registered at memory.js:55, breakpoint repaint at memory.js:113; verified at base f75007f including fix 25bd069). Criterion 2 PASS: guidance requires manual A→B→A workspace-switch QA with delayed reads and local repaints including the 375px inline-accordion path, and explicitly says manual QA only, do not add UI tests. Criterion 3 PASS: edit touches no generated docs/INDEX.md row (dashboard-map has no INDEX row); scripts/generate-doc-indexes.sh --check passes. Validation: make ci-guards passed; cargo fmt --all -- --check passed; scripts/generate-doc-indexes.sh --check passed; git diff --check passed. Not run: Rust clippy/doc/tests (no Rust changed, docs-only); screenshots/manual browser QA (docs-only mechanical change, no UI changed). Reconciliation: baseline HEAD f75007f clean; final git status shows only M docs/agents/dashboard-map.md (2 insertions), within declared selector file:docs/agents/dashboard-map.md, no paths outside selectors, no untracked deliverables, .orbit/tmp holds only ignored scratch. Left uncommitted for pipeline. Note: task text describes ORB-23686 as still open at 3c8c7e8; at this base its fix has landed (25bd069), so the docs cite the now-correct memory.js as the example.
Validation
Branch Freshness
origin/agent-mainorbit/ORB-23710-37340b03