fix(act): dedup defer baselines against MCP rows, report pending honestly

deferRow now sums only the servers no applied mcp-remove / mcp-project-scope
record already measures, so a defer row and an MCP row can never claim the
same server's schema tokens over the same post-apply sessions and
totalRealizedTokens stays a disjoint sum. Conservative by design: the defer
row drops a claimed server for its whole window, and when every server is
claimed it reports not measurable instead of guessing.

deferredSessions === 0 now reports the new 'pending' status instead of
asserting 'reverted': the note already said the cause was ambiguous, and
--json consumers could not tell a not-yet-restarted client from a genuine
revert. The table renders it as 'not yet in effect'.
This commit is contained in:
ozymandiashh 2026-08-04 02:22:47 +03:00
parent 77b41ce63b
commit db018f755f
3 changed files with 79 additions and 9 deletions

1
node_modules Symbolic link
View file

@ -0,0 +1 @@
/Users/husamsoboh/codeburn/node_modules