Commit 2815d2e
committed
fix(cli): warn when the warehouse report is stale in --portfolio-truth mode (F2)
Per the F2 decision (keep both truth artifacts live), surface the dual-artifact
liveness gap at generation time. `audit report --portfolio-truth` dispatches to
_run_portfolio_truth_mode, which scans the workspace and publishes
portfolio-truth-latest.json but never regenerates the legacy
audit-report-<username>-*.json warehouse file — and it can't cheaply, since the truth
pipeline doesn't run the GitHub audit that produces warehouse data. Notion OS's
external-signal-sync reads that warehouse file, so it silently goes stale (live:
06-03 vs truth 06-07).
Add _warn_if_warehouse_report_stale: after publishing truth, warn (with the exact
remediation command) when the newest warehouse report is missing or older than
WAREHOUSE_REPORT_STALE_DAYS (7). Self-announcing every truth run, so the gap can't
rot unnoticed; complements the cross-system-smoke C2 check that catches it at smoke
time. Tests cover missing / stale / fresh. 46 portfolio-truth tests pass, ruff clean,
no new mypy errors.1 parent 70f30d3 commit 2815d2e
2 files changed
Lines changed: 80 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5310 | 5310 | | |
5311 | 5311 | | |
5312 | 5312 | | |
| 5313 | + | |
| 5314 | + | |
| 5315 | + | |
| 5316 | + | |
| 5317 | + | |
| 5318 | + | |
| 5319 | + | |
| 5320 | + | |
| 5321 | + | |
| 5322 | + | |
| 5323 | + | |
| 5324 | + | |
| 5325 | + | |
| 5326 | + | |
| 5327 | + | |
| 5328 | + | |
| 5329 | + | |
| 5330 | + | |
| 5331 | + | |
| 5332 | + | |
| 5333 | + | |
| 5334 | + | |
| 5335 | + | |
| 5336 | + | |
| 5337 | + | |
| 5338 | + | |
| 5339 | + | |
| 5340 | + | |
| 5341 | + | |
| 5342 | + | |
| 5343 | + | |
| 5344 | + | |
| 5345 | + | |
| 5346 | + | |
| 5347 | + | |
| 5348 | + | |
| 5349 | + | |
| 5350 | + | |
| 5351 | + | |
| 5352 | + | |
5313 | 5353 | | |
5314 | 5354 | | |
5315 | 5355 | | |
| |||
5361 | 5401 | | |
5362 | 5402 | | |
5363 | 5403 | | |
| 5404 | + | |
5364 | 5405 | | |
5365 | 5406 | | |
5366 | 5407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1387 | 1387 | | |
1388 | 1388 | | |
1389 | 1389 | | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
0 commit comments