Preserve live scope across evidence and registry flows

This commit is contained in:
master
2026-03-09 22:11:08 +02:00
parent dfd22281ed
commit 3ecafc49a3
7 changed files with 104 additions and 1 deletions

View File

@@ -0,0 +1,43 @@
# Sprint 20260309_015 - Live Scope Preservation Follow-ups
## Topic & Scope
- Repair user-visible scope loss uncovered by live Playwright after the runtime-fault rebuild.
- Keep tenant and region context stable when users move between evidence-thread and integration-admin actions.
- Working directory: `src/Web/StellaOps.Web/**`.
- Expected evidence: focused Angular specs, rebuilt web bundle, live Playwright changed-surfaces recheck.
## Dependencies & Concurrency
- Depends on `SPRINT_20260309_014_Platform_live_runtime_fault_repair.md` because the backend/runtime repair must be stable before UI scope regressions are meaningful.
- Safe parallelism: avoid unrelated search and shell work already in flight; stage only evidence-thread, registry-admin, Playwright harness, and sprint-doc files.
## Documentation Prerequisites
- `docs/modules/platform/architecture-overview.md`
- `docs/code-of-conduct/CODE_OF_CONDUCT.md`
- `docs/code-of-conduct/TESTING_PRACTICES.md`
## Delivery Tracker
### TASK-015-001 - Preserve scope on changed-surface action flows
Status: DONE
Dependency: none
Owners: QA, Developer
Task description:
- Fix changed-surface actions that drop tenant and region query scope during navigation, then tighten the live Playwright harness so the same regressions fail immediately.
Completion criteria:
- [x] Evidence thread "Back to Search" keeps active scope query params.
- [x] Registry admin tab navigation keeps active scope query params.
- [x] Focused Angular specs and live Playwright changed-surfaces verification pass.
## Execution Log
| Date (UTC) | Update | Owner |
| --- | --- | --- |
| 2026-03-09 | Sprint created after live changed-surfaces Playwright reported scoped actions navigating without tenant/region query preservation. | Codex |
| 2026-03-09 | Root causes confirmed in `EvidenceThreadViewComponent.onBack()` and registry-admin tab links. Added focused feature-spec coverage, rebuilt `dist/stellaops-web/browser`, synced the live `compose_console-dist` volume, and re-ran `live-frontdoor-changed-surfaces.mjs`; Playwright now records tenant/region-preserving URLs for `back-to-search` and `audit-tab`. | Codex |
## Decisions & Risks
- This sprint treats scope-preservation regressions as product defects even when the destination page still renders, because silent context loss breaks reproducibility and link sharing.
- Feature specs remain excluded from the default Angular test target to keep routine unit runs lightweight; targeted UI feature coverage for this slice is registered in `tsconfig.spec.features.json` and executed explicitly.
## Next Checkpoints
- Next defect cluster from the same live Playwright sweep: release-investigation `deploy-diff` still lands in a `Missing Parameters` state, and `change-trace` still renders with `No Change Trace Loaded`.