Enforce disclosure policy on retained source sidecars #1495
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 401 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.359
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1495"
general
weight: 0.35
qwts
Motivation
Original + Metadata: Source could copy private fields from retained sidecars when those fields were absent from the photo record. Closes #1142.
Description
Documentation
Appended the ADR-0032 retained-companion amendment before implementation. Updated disclosure acceptance step 4, automated coverage references and third-party notices.
Changeset
Acceptance coverage
Testing
Passed locally, sequentially:
npm run lintnpx eslint tests/backup/sidecar-backup.test.ts tests/import/sidecar-custody.test.tsINTEROP_IMAGE_TRAIL_ROOT=/workspace/image-trail npm test— 2,742 unit + 117 DOM + 1 database-page tests passed; 10 skipped.DOCS_GOV_TOOLING_ROOT=/workspace/docs-gov npm run docs:govnpm run format:checknpm run check:changesetsnpm run check:acceptance-coverageThe final assertion-only portability change also passed:
npx eslint tests/disclosure/source-consent.test.tsnpx prettier --check tests/disclosure/source-consent.test.tsnpm run test:compilenode scripts/run-electron-node-test.mjs .test-dist/tests/disclosure/source-consent.test.js— 14 passed.CI passed on final PR head
45598d178ff099ea441c9a77d095a61b1048c203: complete suite (coverage, build and Storybook interactions), E2E/E2E gate, Windows x64, docs governance, CodeQL and workflow policy checks. Heavy lanes ran in CI.Manual Testing
Not performed here. Follow acceptance step 4:
1. Import a JPEG without GPS alongside source XMP containing GPS; keep location Private. Original + Source must refuse without output.
2. Include location and affirm native consent. Export must copy the exact source once; stored custody remains unchanged.
3. Choose Edits/None: no retained source companion crosses.
4. Verify unknown-format uncertainty requires explicit main-owned widening, while malformed, unclassified or unverifiable XMP remains refused.
<!-- agent-bot-write: ghw_202a4c5893e83c5f session=f601b21bf418 bot=trueline-codex-agent[bot] -->