Fail root resource collection when listing returns NotFound #1235
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 489 lines diff across 6 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.371
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1235"
general
weight: 0.35
ggreer
Summary
Fail a root resource collection when
ListResourcesreturnsNotFound. A missing collection endpoint is not evidence that the collection is empty.Use the same action-scoped warning decision in the ledger transition and parallel worker. Preserve deleted-parent warnings when both parent type and ID are present, object-scoped warning behavior, and successful empty collections. No exported API or checkpoint/artifact format changes. This is nevertheless an intentional default-path behavior break: a root collection whose connector returns NotFound now fails the sync rather than completing it with a warning.
Compatibility and rollout
Connectors that treat a disabled, unlicensed, or missing root list endpoint as NotFound will now fail sync instead of silently accepting an empty collection. Before upgrading connectors to an SDK release containing this fix, connector owners should audit root-list NotFound responses and test optional/unlicensed modules. Return a successful empty page only when the connector has positive evidence that the collection is empty; do not translate an unknown failure into success. Stage affected SDK upgrades, monitor root-list failure rates, fix connector behavior where needed, and retry or re-sync previously incomplete collections. No deployed connector inventory or release sequencing has been verified by this PR; rollout requires an owner decision.
Proof
isActionWarninghas 100% statement coverage in the scoped run; this is not a whole-package coverage claim.The frozen plan and implementation obligations are in [plan.md](docs/verification/root-list-not-found/plan.md). Criterion-level evidence and exclusions are in [evidence.md](docs/verification/root-list-not-found/evidence.md).
Checks
make test: passed, 69 packages with tests.make build, including embedded frontend: passed.--helpsmoke: passed.make race-check: run, not green. The changedpkg/syncpassed under race instrumentation. The Pebble errorfs test panicked while rotating its WAL; the same panic reproduced on pristine main. The SCC test that timed out on an earlier run passed on the latest run. Neither failure is hidden or disabled.Closeinuhttp/error_messages_test.go:892. The pinned-version diagnostic reproduced on pristine main.b13e10f8; the new proof followup must receive its own CI run. This is not approval or proof that the reported local race/lint failures disappeared.=== RUN/PASS output (see evidence.md). Deleted-parent warning cold-resume, default grant/expansion path, and deployed connector compatibility remain unproved. The PR remains draft pending rollout-owner review.No live provider behavior was tested. No merge approval is claimed.