GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(lab): CL-09 passive production evidence by Wibias · Pull Request #1489 · lidge-jun/opencodex Conversation
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughCL-09 adds passive production evidence for Compatibility Lab. Production attempts receive exact opaque route-subject linkage, bounded usage history is queried, and summaries are exposed through the management API, CLI, and Compatibility Matrix without changing Lab verdicts or routing. ChangesCompatibility Lab progression
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant ProductionRequest
participant RouteSubjectResolver
participant UsageLog
participant PassiveQuery
participant CompatibilityMatrix
ProductionRequest->>RouteSubjectResolver: resolveProductionRouteSubject(final route, inbound wire)
RouteSubjectResolver-->>ProductionRequest: opaque subject ID
ProductionRequest->>UsageLog: persist labRouteSubjectId
CompatibilityMatrix->>PassiveQuery: queryPassiveProductionSignals(subject ID, limit)
PassiveQuery->>UsageLog: read bounded recent usage entries
UsageLog-->>PassiveQuery: usage history
PassiveQuery-->>CompatibilityMatrix: passive production summary
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
✅ Deterministic PR hygiene checks passed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@devlog/_plan/260807_compatibility_lab/001_pr_stack_status.md`:
- Line 260: Add exactly one trailing newline to the end of the Markdown file
after the “CL-05: not started” entry so it satisfies the MD047 check.
In
`@devlog/_plan/260807_compatibility_lab/009_cl09_passive_production_evidence.md`:
- Around line 98-116: Clarify the CL-09 V1 invariants so “0 production request
mutation” prohibits outbound request and user-payload changes, while explicitly
permitting the metadata-only addition of labRouteSubjectId to the existing
attempt record. Apply the same clarification wherever the passive evidence
capture rules are defined, including the section around the existing
attempt-record update.
- Line 1: Rename the document title from “Passive Production Evidence / Shadow
Correlation” to “Passive Production Evidence / Exact-Route Correlation,” leaving
the rest of the document unchanged.
- Around line 174-188: Constrain the diagnostic fields in PassiveRouteSignalV1
by replacing unrestricted terminalStatus, closeReason, and errorCode values with
finite allowlisted or bounded normalized tokens. Update the usage normalizer to
validate and map unrecognized values to unknown or omit them, and apply the same
validation before every Lab projection and API, CLI, or UI serialization.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: c50b6160-58ab-4db2-a4db-f270a8399169
devlog/_plan/260807_compatibility_lab/000_master_plan.mddevlog/_plan/260807_compatibility_lab/001_pr_stack_status.mddevlog/_plan/260807_compatibility_lab/009_cl09_passive_production_evidence.md
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
263cc12 to
597b684
Compare
There was an error while loading. Please reload this page.
✅ READY
UI screenshot waived by the Hygiene✅ Deterministic PR hygiene checks passed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 9
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@devlog/_plan/260807_compatibility_lab/001_pr_stack_status.md`:
- Around line 30-31: Choose one authoritative CL-09 lifecycle state, using
001_pr_stack_status.md as the source of truth, and update its lines 30-31 and
170-171 to match the actual PR scope and phase table. Reconcile
devlog/_plan/260807_compatibility_lab/009_cl09_passive_production_evidence.md
lines 13 and 449-460 with that authorization, removing or updating claims that
runtime implementation proceeds or is absent. Update
docs/superpowers/plans/2026-08-12-cl09-passive-production-evidence.md lines
66-70 so its implementation claim is retained only if authorized; otherwise make
it contract-only.
In
`@devlog/_plan/260807_compatibility_lab/009_cl09_passive_production_evidence.md`:
- Around line 288-290: Redact the internal requestRef and decisionRef fields
before exposing passive production signals through the management API and CLI
JSON output. Add or reuse a public DTO/serializer around
queryPassiveProductionSignals, while retaining both references for internal
correlation, and add tests covering both output paths.
In `@docs/superpowers/plans/2026-08-12-cl09-passive-production-evidence.md`:
- Line 7: Update the “Current base” entry in the plan document to retain SHA
e8db4e0365b12a314d1c08ec2cf81599efe5b2d3 and explicitly identify it as a later
dev descendant of the CL-08 merge 3b8f9487676fe258d76295e49e7db75aca26a4cb.
In `@gui/src/pages/CompatibilityMatrix.tsx`:
- Around line 194-203: Add locale entries for the production section title,
status text, and each metric label shown in the production block, then update
the JSX in the CompatibilityMatrix production section to render all of them
through t(). Preserve the existing detail values and conditional rendering.
In `@src/cli/lab.ts`:
- Around line 241-247: Update the production-signals flow in the CLI case to
pass the resolved deps.configDir into queryPassiveProductionSignals(), then
propagate that directory through queryPassiveProductionSignals() to
readRecentUsageEntries() so usage.jsonl is read from the selected configuration
directory. Add a regression test covering a non-default config directory.
In `@src/lab/query/passive-production.ts`:
- Around line 132-134: Update queryPassiveProductionSignals and its
readRecentUsageEntries call to fetch one row beyond
PASSIVE_PRODUCTION_MAX_SCAN_ROWS, then ensure derivation caps processing while
detecting that extra row and reports scan truncation accurately. Replace the
exact-length signals.length === maxResults heuristic with an overflow-aware
result, preserving the separate max-results truncation behavior only when an
additional matching signal is found.
- Around line 106-115: Add a short comment immediately before the scanRows
selection in readRecentUsageEntries documenting that the selected append-only
log entries are ordered oldest-first. Explicitly note that tail selection,
reverse iteration, and the signals[0].observedAt calculation rely on this
ordering contract.
In `@src/server/responses/core.ts`:
- Around line 1788-1794: Memoize installation-salt reads in the flow used by
readExistingInstallationSalt/readSaltFile with a module-wide cache keyed by the
resolved salt path, avoiding repeated synchronous file reads. Update or
invalidate the corresponding cache entry whenever readInstallationSalt creates
or reads a salt, while preserving existing salt values and lookup behavior.
In `@tests/lab-passive-production-evidence.test.ts`:
- Around line 108-117: Add focused tests near the existing passive-production
tests to cover all remaining classifyOutcome branches: a final attempt with
closeReason "client_cancel" should produce "client_cancel", an error code from
ENVIRONMENTAL_ERROR_CODES should produce "environmental", and an error code from
ROUTE_ERROR_CODES should produce "route_error" while incrementing
recentRouteErrorSignals. Reuse the existing usageEntryWithAttempt setup and
subject identifier patterns.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: c874aa9a-29ed-42be-afda-ea991dce817d
devlog/_plan/260807_compatibility_lab/001_pr_stack_status.mddevlog/_plan/260807_compatibility_lab/009_cl09_passive_production_evidence.mddocs/superpowers/plans/2026-08-12-cl09-passive-production-evidence.mdgui/src/pages/CompatibilityMatrix.tsxgui/src/pages/compatibility-matrix-api.tssrc/cli/lab.tssrc/lab/query/index.tssrc/lab/query/passive-production.tssrc/routing/compatibility/subject.tssrc/server/management/lab-routes.tssrc/server/responses/core.tssrc/usage/log.tstests/lab-passive-production-evidence.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Review triage on head Fixed and validated: CL-09 lifecycle-state consistency, non-default Skipped as not applicable: the Stale: the three findings against |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
* docs(lab): define CL-09 passive production evidence contract * docs(lab): advance programme through CL-09 contract * docs(lab): record CL-08 closure and CL-09 start * docs(lab): add CL-09 implementation plan * test(lab): define CL-09 attempt linkage contract * feat(lab): persist exact passive route subject linkage * test(lab): define production wire subject identity * feat(lab): resolve exact production wire route subjects * chore(lab): stage one-shot CL-09 core patch * feat(lab): link exact production attempts to Lab subjects * feat(lab): add bounded passive production query layer * feat(lab): export passive production queries * test(lab): cover passive production isolation and bounds * chore(lab): stage one-shot CL-09 surfaces patch * feat(lab): expose passive production signals * test(lab): harden CL-09 passive isolation boundaries * chore(lab): stage CL-09 review doc fixes * docs(lab): reconcile CL-09 contract review findings * fix(lab): constrain passive production diagnostics * test(lab): prove fallback attribution and diagnostic redaction * chore(lab): stage CL-09 implementation status update * docs(lab): reflect CL-09 implementation phase * docs(lab): record CL-09 implementation status * chore(ci): apply CL-09 GUI lint fix * fix(gui): localize CL-09 production signals * chore(ci): remove CL-09 lint helper * fix(gui): use shared Lab query builder * chore(ci): apply CL-09 translation dedupe * test(gui): keep production copy out of lab overlay * fix(gui): deduplicate passive evidence translations * chore(ci): run CL-09 review remediation * fix(lab): address CL-09 review findings --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.