← Back to Pull requests

feat(disclosure): add album and photo scope controls #1520

Closed
unknown closed this pull request without merging on Dec 02, 2026 21:14 UTC
View on GitHub
unknown unknown commented on Dec 02, 2026 20:04 UTC
Author

Motivation


Album and photo disclosure overrides govern exports but have no editing surface. Closes #1139.

Description


Add an ordinary-album Disclosure sheet and lazy Inspector Photo disclosure section with all eleven Inherit/Private/Shared/Public controls. Main computes library, inherited and resolved classes through the export planner. Widening, including clearing a narrower override, requires confirmation. Errors, stale selections and relevant policy/membership changes fail closed; unrelated favorite/background events preserve pending choices. Activity contains field names/classes, and reauthorization advances consent revision.

Documentation


Updated disclosure acceptance for album narrowing, photo GPS widening, sibling isolation, failures and stale events. Accepted ADR-0032 §6 and operation capability authority are preserved.

Testing


All cheap local gates passed sequentially. Full hosted CI passed on current head b4399e9940c5331a6fa480f4c898e5196da6f99a: https://github.com/true-line/overlook/actions/runs/46969449816 — Complete suite (coverage/build/Storybook), E2E without retries, Windows, docs governance and security checks. Main integration exercises actual EXIF GPS original output/refusal and album title withholding. DOM covers confirmation, cancellation, stale reads, errors, unavailable projections and relevant/unrelated events. The review finding is fixed and visibly resolved.

Manual test


1. Set album Title Private while the library stays Shared; member exports omit titles.
2. For GPS-bearing siblings, cancel then confirm one photo's location Shared override. Its original may export GPS; its private sibling refuses. Activity never contains coordinates.
3. Clear a narrower override with Inherit, change selections during reads/saves, and toggle a favorite while widening is pending. Confirmations and saved/error states remain honest.

<!-- agent-bot-write: ghw_dba90526075f459a session=f601b21bf418 bot=trueline-codex-agent[bot] conversation_id=ordered-1139-1131-1112 conversation_id_source=self-reported -->

Diff: 257 lines (+192 / -65) across 3 files Reviewer: qwts Review duration: 70m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 257 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.332
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1520"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.1% (MEDIUM) · Higher = larger blast radius
39.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.5% · Safe to merge
15.5%