You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OCA currently has internal/advruntime/session_debt.go (388 LOC) that duplicates Advance's session-debt scan (plugin/src/utils/opencode-session-debt.ts, 237 LOC). Under the cleaner ownership boundary (Advance must work standalone; OCA enhances), Advance owns the scan logic and OCA reads the signal.
Why
Advance needs session-debt detection for its own diagnostics (adv_status, agent context)
OCA needs the signal for surfacing in oca doctor and oca adv-status, not its own scan
Threshold logic should live once
Acceptance Criteria
OCA deletes internal/advruntime/session_debt.go
OCA reads session-debt signal via Advance's stable read surface (depends on ADV adding adv status --format json per O2)
Threshold values live only in Advance
oca doctor and oca adv-status continue to surface session-debt info correctly
Dependencies
Blocked by Advance adding stable read surface (new ADV issue tracked in cross-repo boundary audit § O2).
Summary
OCA currently has
internal/advruntime/session_debt.go(388 LOC) that duplicates Advance's session-debt scan (plugin/src/utils/opencode-session-debt.ts, 237 LOC). Under the cleaner ownership boundary (Advance must work standalone; OCA enhances), Advance owns the scan logic and OCA reads the signal.Why
adv_status, agent context)oca doctorandoca adv-status, not its own scanAcceptance Criteria
internal/advruntime/session_debt.goadv status --format jsonper O2)oca doctorandoca adv-statuscontinue to surface session-debt info correctlyDependencies
Blocked by Advance adding stable read surface (new ADV issue tracked in cross-repo boundary audit § O2).
Proposal
docs/proposals/2026-05-08-cross-repo-boundary-audit.md§ O4WSJF Estimate
Value: 5 | TC: 3 | RROE: 5 | Effort: 2 | WSJF: 4.0