Repository navigation
Commit 36d467d
committed
fix(mcp): fail closed when indexed-checkout identity is absent
A live checkout SHA is not proof of the generation that produced graph
content, so the freshness verdict must come from the indexed-checkout
identity recorded with the DB. Legacy DBs record no such identity: verbose
index_status now exposes the graph generation separately (indexed_generation)
and fails closed with verdict=unknown, indexed_checkout_sha=null and
reason=indexed_checkout_unavailable.
The default status call stays lean and the freshness block is report-only —
it never triggers indexing. Add focused coverage for the fail-closed verdict
and for its omission from the default output.
Signed-off-by: Leonardo trindade miranda <tmonestudio@gmail.com>1 parent 7f23a66 commit 36d467d
2 files changed
Lines changed: 76 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4456 | 4456 | | |
4457 | 4457 | | |
4458 | 4458 | | |
| 4459 | + | |
| 4460 | + | |
| 4461 | + | |
| 4462 | + | |
| 4463 | + | |
| 4464 | + | |
| 4465 | + | |
| 4466 | + | |
| 4467 | + | |
| 4468 | + | |
| 4469 | + | |
| 4470 | + | |
| 4471 | + | |
| 4472 | + | |
| 4473 | + | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
4459 | 4479 | | |
4460 | 4480 | | |
4461 | 4481 | | |
4462 | 4482 | | |
4463 | | - | |
4464 | | - | |
4465 | | - | |
| 4483 | + | |
| 4484 | + | |
| 4485 | + | |
4466 | 4486 | | |
4467 | 4487 | | |
4468 | 4488 | | |
| |||
4482 | 4502 | | |
4483 | 4503 | | |
4484 | 4504 | | |
| 4505 | + | |
4485 | 4506 | | |
4486 | 4507 | | |
4487 | 4508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2642 | 2642 | | |
2643 | 2643 | | |
2644 | 2644 | | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
2645 | 2695 | | |
2646 | 2696 | | |
2647 | 2697 | | |
| |||
10541 | 10591 | | |
10542 | 10592 | | |
10543 | 10593 | | |
| 10594 | + | |
| 10595 | + | |
10544 | 10596 | | |
10545 | 10597 | | |
10546 | 10598 | | |
| |||
0 commit comments