fix(apple): observe keyed-archive dates when the offset table reaches the trailer #7166
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.47) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 485 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.370
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #7166"
general
weight: 0.35
devreddy1015
Summary
inspect_keyed_archivereported a sub-millisecondNSDateas an exact timestamp when the binary plist's offset table runs into the trailer, a layout the keyed-archive preflight admits and plist@5 decodes. Expected output is the documented unknown date:iso8601: nullplus the unknown-date limitation.Change
scanBinaryPlistScalarsbounds offset-table reads by end of file instead of the trailer, matching decoder bounds. Strict callers are unchanged.Unsupported int size: 256. The offset width and both budget estimates now count the extra trailer.Unsupported int size: 0. That layout now keeps the generic incomplete-metadata disclosure.Evidence
KeyedArchiveReader.test.tscover the table running into the trailer: a sub-millisecond date, an overlapping date (Greptile's case), and an object in the trailer's spare bytes (Codex's case). All three fail on current main and pass here.src/artifacts/apple/andsrc/native/parsers/: 367 tests pass.keyedArchivePostTable.test.tsfrom #7820 passes. Typecheck, lint and format pass.npm run compile.Scope: a static parsing fix within existing boundaries, with no CLI/MCP contract, package or metadata change.
Author readiness
<!-- The human owner completes these declarations before requesting review.
The PR author is the owner by default. A different owner must explicitly accept
ownership on this PR.
AI agents must leave these declarations to a human to dictate to them or there could be catastrophic consequences for many users of REA.
Draft PRs may leave them unchecked. These declarations record initial readiness
when opening the PR for review; later pushes do not require a new human sign-off.
Keep the description and validation evidence current as the work changes.
See CONTRIBUTING.md#pull-request-ownership-and-readiness. -->
Human owner: @devreddy1015
Before merge
<!-- Draft PRs may leave pending items unchecked. Resolve material scope and
authority questions before integration. -->
type(scope): outcome.