@agentguard-run/burn 0.3.28 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +13 -0
- package/dist/src/adapters/codex.d.ts +4 -2
- package/dist/src/adapters/codex.js +55 -9
- package/dist/src/cli.js +35 -5
- package/dist/src/history/claude-transcript.d.ts +0 -13
- package/dist/src/history/claude-transcript.js +11 -10
- package/dist/src/hook/pre-tool-use.d.ts +0 -16
- package/dist/src/hook/pre-tool-use.js +15 -10
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.js +18 -1
- package/dist/src/insights/launch-evidence.d.ts +25 -0
- package/dist/src/insights/launch-evidence.js +54 -0
- package/dist/src/insights/price-shadow.js +2 -1
- package/dist/src/insights/tally.d.ts +45 -0
- package/dist/src/insights/tally.js +266 -0
- package/dist/src/insights/transcript.js +9 -1
- package/dist/src/insights/tree.d.ts +36 -0
- package/dist/src/insights/tree.js +285 -0
- package/dist/src/insights/types.d.ts +2 -0
- package/dist/src/receipt.d.ts +10 -0
- package/dist/src/receipt.js +53 -2
- package/dist/src/tool-names.d.ts +6 -0
- package/dist/src/tool-names.js +10 -0
- package/dist/src/upgrade-moments.js +2 -1
- package/docs/OCT5_VERIFICATION.md +118 -0
- package/docs/TREE_AND_TALLY.md +70 -0
- package/docs/launch-tree-local-oct5.txt +7 -0
- package/docs/oct5-followup/REPORT.md +105 -0
- package/docs/oct5-followup/checks.json +20 -0
- package/docs/oct5-followup/free-plugin-fixture-output.txt +12 -0
- package/docs/oct5-followup/tally-after.json +5 -0
- package/docs/oct5-followup/tally-after.txt +1 -0
- package/docs/oct5-followup/tree-after.json +40 -0
- package/docs/oct5-followup/tree-after.txt +7 -0
- package/docs/oct5-followup/tree-before.txt +7 -0
- package/docs/oct5-followup/verify-free-receipts.cjs +81 -0
- package/docs/session-tally-local-oct5.txt +1 -0
- package/package.json +7 -3
package/dist/src/receipt.d.ts
CHANGED
|
@@ -22,6 +22,11 @@ export interface ReceiptPayload {
|
|
|
22
22
|
/** sha256 of the session id: correlatable, not reversible. */
|
|
23
23
|
sessionDigest: string;
|
|
24
24
|
action: 'spawn' | 'model_call';
|
|
25
|
+
/** Exact host call identity, needed when another local plugin records outcomes. */
|
|
26
|
+
toolUseId?: string;
|
|
27
|
+
agent_id?: string | null;
|
|
28
|
+
agent_type?: string | null;
|
|
29
|
+
depth?: number | null;
|
|
25
30
|
policy: {
|
|
26
31
|
mode: 'shadow' | 'enforce';
|
|
27
32
|
digest: string;
|
|
@@ -59,3 +64,8 @@ export declare class ReceiptSigner {
|
|
|
59
64
|
}
|
|
60
65
|
export declare function verifyReceipt(receipt: SignedReceipt): boolean;
|
|
61
66
|
export declare function receiptDigest(receipt: SignedReceipt): string;
|
|
67
|
+
/** A standalone Claude hook owns admission; the plugin owns the host outcome.
|
|
68
|
+
* Verify its complete session chain and persisted head before correlating a
|
|
69
|
+
* call. Missing or old schemas yield no verdict, never an inferred allow.
|
|
70
|
+
*/
|
|
71
|
+
export declare function readSpawnAdmission(home: string, sessionId: string, toolUseId: string): SignedReceipt | null;
|
package/dist/src/receipt.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.canonical = canonical;
|
|
|
19
19
|
exports.sha256 = sha256;
|
|
20
20
|
exports.verifyReceipt = verifyReceipt;
|
|
21
21
|
exports.receiptDigest = receiptDigest;
|
|
22
|
+
exports.readSpawnAdmission = readSpawnAdmission;
|
|
22
23
|
const node_crypto_1 = require("node:crypto");
|
|
23
24
|
const node_fs_1 = require("node:fs");
|
|
24
25
|
const node_path_1 = require("node:path");
|
|
@@ -49,8 +50,31 @@ class ReceiptSigner {
|
|
|
49
50
|
}
|
|
50
51
|
static loadOrCreate(home) {
|
|
51
52
|
const file = (0, node_path_1.join)(home, 'receipt-signing-key.pem');
|
|
53
|
+
const publish = () => {
|
|
54
|
+
const signer = new ReceiptSigner((0, node_fs_1.readFileSync)(file, 'utf8'));
|
|
55
|
+
// Readers pin this local public key instead of trusting a key supplied
|
|
56
|
+
// by a receipt. No private key is needed to ingest a standalone verdict.
|
|
57
|
+
const publicFile = (0, node_path_1.join)(home, 'receipt-public-key.base64');
|
|
58
|
+
if (!(0, node_fs_1.existsSync)(publicFile)) {
|
|
59
|
+
const temporary = `${publicFile}.${process.pid}.tmp`;
|
|
60
|
+
(0, node_fs_1.writeFileSync)(temporary, signer.publicKey + '\n', { mode: 0o600 });
|
|
61
|
+
try {
|
|
62
|
+
(0, node_fs_1.linkSync)(temporary, publicFile);
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
if (error.code !== 'EEXIST')
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
finally {
|
|
69
|
+
(0, node_fs_1.rmSync)(temporary, { force: true });
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if ((0, node_fs_1.readFileSync)(publicFile, 'utf8').trim() !== signer.publicKey)
|
|
73
|
+
throw new Error('Burn receipt public key does not match its signer.');
|
|
74
|
+
return signer;
|
|
75
|
+
};
|
|
52
76
|
if ((0, node_fs_1.existsSync)(file))
|
|
53
|
-
return
|
|
77
|
+
return publish();
|
|
54
78
|
(0, node_fs_1.mkdirSync)(home, { recursive: true, mode: 0o700 });
|
|
55
79
|
// Sixty hook processes on a fresh home all arrive here at once. Exactly
|
|
56
80
|
// one key must win: write to a private temp name, then link it into
|
|
@@ -70,7 +94,7 @@ class ReceiptSigner {
|
|
|
70
94
|
finally {
|
|
71
95
|
(0, node_fs_1.rmSync)(tmp, { force: true });
|
|
72
96
|
}
|
|
73
|
-
return
|
|
97
|
+
return publish();
|
|
74
98
|
}
|
|
75
99
|
sign(payload) {
|
|
76
100
|
const bytes = Buffer.from(canonical(payload));
|
|
@@ -96,3 +120,30 @@ function verifyReceipt(receipt) {
|
|
|
96
120
|
function receiptDigest(receipt) {
|
|
97
121
|
return sha256(canonical(receipt));
|
|
98
122
|
}
|
|
123
|
+
/** A standalone Claude hook owns admission; the plugin owns the host outcome.
|
|
124
|
+
* Verify its complete session chain and persisted head before correlating a
|
|
125
|
+
* call. Missing or old schemas yield no verdict, never an inferred allow.
|
|
126
|
+
*/
|
|
127
|
+
function readSpawnAdmission(home, sessionId, toolUseId) {
|
|
128
|
+
if (!(0, node_fs_1.existsSync)((0, node_path_1.join)(home, 'receipts.ndjson')) || !(0, node_fs_1.existsSync)((0, node_path_1.join)(home, 'receipt-public-key.base64')))
|
|
129
|
+
return null;
|
|
130
|
+
const key = (0, node_fs_1.readFileSync)((0, node_path_1.join)(home, 'receipt-public-key.base64'), 'utf8').trim();
|
|
131
|
+
const rows = (0, node_fs_1.readFileSync)((0, node_path_1.join)(home, 'receipts.ndjson'), 'utf8').split('\n').filter(Boolean).map(line => JSON.parse(line));
|
|
132
|
+
const digest = sha256(sessionId);
|
|
133
|
+
let previous = null, match = null;
|
|
134
|
+
for (const row of rows) {
|
|
135
|
+
if (row.payload?.sessionDigest !== digest)
|
|
136
|
+
continue;
|
|
137
|
+
if (row.payload.previous !== previous || row.publicKey !== key || !verifyReceipt(row))
|
|
138
|
+
throw new Error('External Burn signature or chain verification failed.');
|
|
139
|
+
previous = receiptDigest(row);
|
|
140
|
+
if (row.payload.host === 'claude-code' && row.payload.action === 'spawn' && row.payload.toolUseId === toolUseId)
|
|
141
|
+
match = row;
|
|
142
|
+
}
|
|
143
|
+
if (!previous)
|
|
144
|
+
return null;
|
|
145
|
+
const state = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(home, 'sessions', sessionId.replace(/[^a-zA-Z0-9_-]/g, '_') + '.json'), 'utf8'));
|
|
146
|
+
if (state.lastReceipt !== previous)
|
|
147
|
+
throw new Error('External Burn receipt head is incomplete.');
|
|
148
|
+
return match;
|
|
149
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Host tool names observed in hooks and transcripts. No substring matching. */
|
|
2
|
+
export declare function isLaunchTool(value: unknown): boolean;
|
|
3
|
+
/** Shared Set-shaped interface for existing admission and reporting callers. */
|
|
4
|
+
export declare const LAUNCH_TOOLS: Readonly<{
|
|
5
|
+
has: typeof isLaunchTool;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LAUNCH_TOOLS = void 0;
|
|
4
|
+
exports.isLaunchTool = isLaunchTool;
|
|
5
|
+
/** Host tool names observed in hooks and transcripts. No substring matching. */
|
|
6
|
+
function isLaunchTool(value) {
|
|
7
|
+
return typeof value === 'string' && /^(?:functions\.)?(?:Agent|Task|spawn_agent|collaborationspawn_agent|collaboration\.spawn_agent)$/.test(value);
|
|
8
|
+
}
|
|
9
|
+
/** Shared Set-shaped interface for existing admission and reporting callers. */
|
|
10
|
+
exports.LAUNCH_TOOLS = Object.freeze({ has: isLaunchTool });
|
|
@@ -5,6 +5,7 @@ exports.setQuiet = setQuiet;
|
|
|
5
5
|
exports.pluginDirectories = pluginDirectories;
|
|
6
6
|
exports.monthlySummary = monthlySummary;
|
|
7
7
|
exports.renderMonthlySummary = renderMonthlySummary;
|
|
8
|
+
const tool_names_1 = require("./tool-names");
|
|
8
9
|
/** Local month-to-date counts and a dismissible Team invitation. No network. */
|
|
9
10
|
const node_fs_1 = require("node:fs");
|
|
10
11
|
const node_path_1 = require("node:path");
|
|
@@ -119,7 +120,7 @@ function monthlySummary(home, now = Date.now(), env = process.env) {
|
|
|
119
120
|
const at = typeof decision.timestamp === 'string' ? Date.parse(decision.timestamp) : NaN;
|
|
120
121
|
if (!(at >= since && at <= now) || meta.event !== 'decision' || decision.action !== 'block' || decision.enforcementMode !== 'enforce' || meta.approvalNeeded === true || typeof decision.decisionId !== 'string')
|
|
121
122
|
continue;
|
|
122
|
-
if (meta.gate === 'burn' &&
|
|
123
|
+
if (meta.gate === 'burn' && (0, tool_names_1.isLaunchTool)(meta.toolName))
|
|
123
124
|
spawns.add(typeof meta.burnReceiptId === 'string' ? 'burn:' + meta.burnReceiptId : 'plugin:' + decision.decisionId);
|
|
124
125
|
if (meta.gate === 'spend' && /(?:^|[._])(?:bash|powershell|shell|exec_command|run_command|execute_command|run_shell_command|shell_command)$/i.test(String(meta.toolName)))
|
|
125
126
|
commands.add(decision.decisionId);
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# October 5 feature verification
|
|
2
|
+
|
|
3
|
+
Branches: `burn/launch-tree-tally-oct5` in the monorepo and `site/team-view-oct5` in the site repository. Fresh worktrees started from fetched `origin/main`. The site was rebased onto `540211a` before its final checks. All commits are signed as MerchantGuardOps. Nothing was pushed, published, deployed or sent to a person. Production keys and environment variables were not changed.
|
|
4
|
+
|
|
5
|
+
## Feature 1: real local launch tree
|
|
6
|
+
|
|
7
|
+
Actual command: `node dist/src/cli.js tree /Users/soccer/.claude/projects/-Users-soccer/321cfac5-66b0-4e36-ada5-01dcf3f0ba17.jsonl`.
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
Launch tree
|
|
11
|
+
Own / subtree tokens | share of session tokens | recorded duration
|
|
12
|
+
main session [321cfac5-66b] claude-fable-5-1, claude-opus-5-5
|
|
13
|
+
661.8M / 668.1M | 99.0% | 1292819s
|
|
14
|
+
general-purpose [a20b05bb4d19] claude-opus-5-5
|
|
15
|
+
6.4M / 6.4M | 1.0% | 631s
|
|
16
|
+
Session tokens: 668.1M. Shares use each node's own tokens.
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The exact JSON total is 668,141,484 tokens. The same short tree appeared in `why`. JSON output was also exercised. Duration includes elapsed gaps in the real transcript. A larger real session exercised the collapsed fan-out and the `parent not recorded` group. Tests cover depth three, missing and conflicting parents, cyclic records, provider deduplication, anonymous sidechains, missing child usage, Codex child discovery and wide or short displays.
|
|
20
|
+
|
|
21
|
+
## Feature 2: actual tally output
|
|
22
|
+
|
|
23
|
+
The same real session's `tally` output was:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Signed session receipts are missing.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
UNVERIFIED: a numeric tally for that real session. Its signed plugin receipts were not available. No transcript-derived replacement was invented.
|
|
30
|
+
|
|
31
|
+
A freshly signed synthetic ledger passed through the actual Burn CLI, unscoped wrapper, plugin tip and Team sync module. Both CLI names printed:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
4 launches · 1 allowed · 2 asked · 1 you approved · 1 refused · 1 approval outcome not recorded
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The cached tip was:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
AgentGuard tip from your last session: 4 launches · 1 allowed · 2 asked · 1 you approved · 1 refused · 1 approval outcome not recorded
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Changing a signed decision after signing caused exit status 1 and prevented upload:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
Receipt signature or hash chain verification failed.
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Signature tests also reject removed middle rows, reordered or duplicated rows, a missing final summary, and a removed tail that disagrees with the worker's durable checkpoint. Approvals are a subset of asks. Refused means policy refusal; missing human answers remain unrecorded.
|
|
50
|
+
|
|
51
|
+
Installed Claude Code 2.1.289 displayed this SessionStart probe in its terminal:
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
SessionStart:startup says: AgentGuard tally display probe: 4 launches · 3 allowed · 1 refused
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Installed native Codex 0.160.0 displayed the SessionStart probe after the first prompt, before a separate UserPromptSubmit hook stopped the turn:
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
↳ Hook · AgentGuard tally display probe: 4 launches · 3 allowed · 1 refused
|
|
61
|
+
• Hook stopped
|
|
62
|
+
└ Local probe stopped before model execution.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Codex `exec` text and JSON modes did not display the message. The JSON probe recorded zero model tokens. The default PATH Codex launcher had a missing optional x64 package; verification used the installed native arm64 binary. Local terminal captures are under `/private/tmp/agentguard-host-probe/` in `claude-tui.txt`, `codex-sessionstart-tui.txt`, `codex-output.txt` and `codex-text.txt`.
|
|
66
|
+
|
|
67
|
+
## Feature 5: actual Team fixture output
|
|
68
|
+
|
|
69
|
+
The local page used the real dashboard authentication, license validation, signature verification, existing Redis store and API routes with synthetic licenses and data. Rendered totals were:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
3 seats shared counts
|
|
73
|
+
Launches 84
|
|
74
|
+
Asks 11
|
|
75
|
+
Approvals 8
|
|
76
|
+
Refusals 6
|
|
77
|
+
Tokens 18,600,000
|
|
78
|
+
3 approval outcomes were not recorded.
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The full receipt-to-dashboard fixture uploaded one additional machine with 4 launches and 1,234 tokens. Sharing off made no upload; sharing on with valid Team access uploaded one signed aggregate; a tampered receipt prevented the next upload. Unknown payload fields, invalid signatures or arithmetic, foreign accounts, unregistered or revoked seats, expired or Solo licenses, concurrent duplicates and key replacement were tested.
|
|
82
|
+
|
|
83
|
+
| Viewport | scrollWidth | Console errors | Main action |
|
|
84
|
+
| --- | --- | --- | --- |
|
|
85
|
+
| 390 x 844 | 390 | 0 | Refresh counts passed |
|
|
86
|
+
| 1280 x 800 | 1280 | 0 | Refresh counts passed |
|
|
87
|
+
|
|
88
|
+
Screenshots are in the site worktree at `docs/team-view-oct5/team-390x844.png` and `docs/team-view-oct5/team-1280x800.png`. `verification.json` records the rendered text, viewport results and actual auth and dashboard requests. `receipts-verification.json` records the cross-repository signed-receipt fixture. Both screenshots were visually inspected.
|
|
89
|
+
|
|
90
|
+
## Checks
|
|
91
|
+
|
|
92
|
+
Final runs used native Node 22.17.1. Burn's inherited session-selector variables were cleared for its tests. Its dependencies were installed for arm64 so the existing canvas tests could load their native binding. No existing test or deadline was edited.
|
|
93
|
+
|
|
94
|
+
| Check | Passed | Skipped | Failed |
|
|
95
|
+
| --- | --- | --- | --- |
|
|
96
|
+
| Burn npm test | 576 | 1 | 0 |
|
|
97
|
+
| Plugin npm test | 541 | 4 | 0 |
|
|
98
|
+
| Site npm test after rebase | 2,218 | 1 | 0 |
|
|
99
|
+
| Tree and tally focused tests | 17 | 0 | 0 |
|
|
100
|
+
|
|
101
|
+
The plugin compatibility build generated 84 files and its check passed. Every new plugin file is listed in `scripts/sync-public.sh`, with compat paths generated from that list. Existing copy checks passed. Site `generate:geo` ran after the page commit; `check:geo` passed after the sitemap commit. The unscoped wrapper is unchanged and has no npm test script; its real argument forwarding was verified against the new local Burn CLI.
|
|
102
|
+
|
|
103
|
+
Repeat the site verification with `node scripts/verify-team-receipts.cjs /path/to/monorepo-worktree` and `DASHBOARD_PREVIEW_BROWSER_CHANNEL=chrome node scripts/verify-team-counts.cjs`. The latter needs local Redis and Chrome. These scripts use local fixtures and block external fixture requests.
|
|
104
|
+
|
|
105
|
+
## Integration needed from the plugin owner
|
|
106
|
+
|
|
107
|
+
1. Call `syncDailyCounts` from the detached worker's daily scheduling path after license and receipt completion. The module is implemented and manually callable; it is not scheduled by this branch. Keep the local opt-in and feature flag checks in force and keep uploads outside PreToolUse.
|
|
108
|
+
2. Coordinate one daily aggregation owner and receipt key per machine when Claude Code and Codex use separate plugin data directories. The new module reads its supplied data directory. Separate installations must not race to upload partial daily totals or different keys for the same seat. Server records are immutable and signer conflicts are rejected.
|
|
109
|
+
3. Update the plugin dependency and lockfile to the Burn release containing `sessionTally`, `readLedgerTallies` and `renderSessionTally`. The fixture uses the actual local build; the currently published dependency lacks these APIs.
|
|
110
|
+
4. Preserve the signed governing launch verdict, host, tool-call ID, ask metadata, linked outcome and final session receipt in the new admission path. If actual human refusals become available, record them explicitly; absent outcomes must stay unknown.
|
|
111
|
+
5. Emit a fresh final receipt after a resumed session and retain signed token totals for complete sessions. Current receipt lifecycle limitations produce an unavailable tally rather than a partial number. A signed per-day segment would be needed for exact calendar-day token allocation; this feature explicitly groups by session completion day.
|
|
112
|
+
6. For unattended Codex `exec`, expose a verified tally through a supported result surface or direct the operator to `agentguard-burn tally`. Its SessionStart message is not visible in that mode.
|
|
113
|
+
|
|
114
|
+
UNVERIFIED: the other agent's admission changes, automatic worker scheduling, multiple-installation aggregation and production upload or deployment. They were outside this branch's permitted plugin edits or explicitly parked by the user. The modules, local transport, authentication and rendered page were verified as described above.
|
|
115
|
+
|
|
116
|
+
Proposed coordinated release: Burn 0.4.0, unscoped wrapper 0.4.0 with a matching Burn dependency, and plugin 0.4.0 with the other agent's changes. The private site needs no npm version change. Versions were not bumped and packages were not published.
|
|
117
|
+
|
|
118
|
+
Parked for JP: production flags, production keys, deployment and npm publication. No main push or person-to-person message was attempted.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Launch tree and approval tally
|
|
2
|
+
|
|
3
|
+
Both commands run locally. They do not upload transcripts, receipt rows or counts. Optional Team count sharing is a separate plugin setting, off by default.
|
|
4
|
+
|
|
5
|
+
## Recorded launch tree
|
|
6
|
+
|
|
7
|
+
Run `agentguard-burn tree [session]`, optionally with `--json`. The selector accepts a local transcript path or a session ID and follows the same current-session selection as `why`. Claude Code child files and inline sidechain markers, matched Agent or Task call results, and Codex rollout metadata or matched spawn results supply the evidence. A directory alone never supplies an edge. Missing or conflicting parent links appear under `parent not recorded`. Anonymous inline sidechain records form a separate group without an invented agent identity.
|
|
8
|
+
|
|
9
|
+
Each node reports:
|
|
10
|
+
|
|
11
|
+
| Field | Meaning |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| Name and models | Host agent type or name and recorded model identifiers. Requested model aliases can appear beside the concrete model. Prompts and descriptions are not retained. |
|
|
14
|
+
| Own tokens | Input, output, cache read and cache write tokens attributed to this node. Copied provider response IDs count once. |
|
|
15
|
+
| Subtree tokens | Own tokens plus descendants connected by recorded edges. Orphans remain outside the main subtree. |
|
|
16
|
+
| Share | Own tokens divided by all observed session and descendant tokens, including orphan nodes. This is a share of tokens, not waste or savings. |
|
|
17
|
+
| Active time | Sum of gaps between this node's recorded timestamps, with each gap capped at Burn's existing five-minute idle threshold. A multi-day pause contributes at most five minutes. This is an activity estimate, not measured compute time. JSON calls this `durationMs`. |
|
|
18
|
+
| Span | First to last recorded timestamp, including idle gaps. JSON calls this `spanMs`; text shows it only when it differs from active time. |
|
|
19
|
+
| Ended without finishing | Burn's existing positive unfinished signal. False means that signal was not recorded; it does not prove successful completion. |
|
|
20
|
+
|
|
21
|
+
Missing child transcripts, malformed records and unknown fork-history ownership produce unknown token totals (`null` in JSON and `?` in text). Token shares remain unknown when the session total is incomplete. Unrecorded active time, span and model fields stay unknown. Unrelated Codex rollouts do not become children. Codex discovery inspects at most the first megabyte for each rollout's session metadata; an unreadable or oversized header cannot establish a new child relationship.
|
|
22
|
+
|
|
23
|
+
Text durations use human units, for example `active 24h 55m · span 14d 23h`. Short activity is `<1m`, never raw seconds. JSON keeps numeric milliseconds. Verified plugin receipts also supply explicit caller identity, type, depth and parent links, or a child link from a successful launch outcome.
|
|
24
|
+
|
|
25
|
+
The text view fits 80 columns and shows at most six siblings per parent, followed by `+ N more like this`. The short `why` section shows at most five nodes. JSON keeps all nodes and parent evidence. The tree prints no currency amounts.
|
|
26
|
+
|
|
27
|
+
## Verified tally
|
|
28
|
+
|
|
29
|
+
Run `agentguard-burn tally [session]`, optionally with `--json`. An explicit session ID still works after its transcript is removed. A transcript path supplies only the session identity; its content never supplies tally counts.
|
|
30
|
+
|
|
31
|
+
The tally reads the plugin's physical `ledger/decisions.ndjson` and local `public-key.hex`. It uses Spend's Ed25519 verification, signature fingerprints, genesis hash, sequence numbers and hash links before selecting a session. If present, the worker's durable-head checkpoint must agree. No malformed row is skipped. Pending unsigned decisions, pending session summaries, recorded lost receipt data and durability errors prevent a complete tally. A valid signed session summary must end the session's records. A resumed session without a fresh final receipt stays unavailable.
|
|
32
|
+
|
|
33
|
+
The default directories are `PLUGIN_DATA`, `CLAUDE_PLUGIN_DATA`, or `AGENTGUARD_HOME/codex-plugin`, plus the plugin ledger registry under `AGENTGUARD_HOME/plugin-ledgers`. Without `AGENTGUARD_HOME`, the home is `~/.agentguard`. A session spread across multiple ledgers is unavailable rather than partially counted. Standalone Burn admission receipts do not record the full plugin approval lifecycle and cannot supply this tally.
|
|
34
|
+
|
|
35
|
+
Discovery skips and removes registry entries whose target folder no longer exists. It keeps entries for existing empty folders and leaves unreadable or malformed entries alone while continuing to other entries. It never removes a receipt folder or changes a ledger.
|
|
36
|
+
|
|
37
|
+
The Free plugin writes these signed rows without a license key, in enforce and shadow modes. A completed session needs its signed `session_receipt` before a tally is available. Installing only the standalone Burn hook writes a different receipt format in `receipts.ndjson`; installing the plugin later cannot reconstruct past approval outcomes. The October 5 [receipt investigation](oct5-followup/REPORT.md) records the writer paths, the real local installation, and the original resumed-session limitation, fixed by plugin 0.4.0 with fresh linked summaries. When a standalone Burn 0.4.0 hook owns admission, the plugin verifies its signed call ID, public key, session chain and persisted head before recording the governing verdict. Older standalone schemas stay unavailable; unsigned decision logs never supply approvals.
|
|
38
|
+
|
|
39
|
+
| Display word | Signed evidence |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| launches | Distinct Agent, Task or spawn_agent tool-call IDs with a governing Burn decision. Includes attempts that were stopped. Retries of the same call use the last governing decision. |
|
|
42
|
+
| allowed | Decision action `allow` or `downgrade`, without an ask. |
|
|
43
|
+
| asked | Claude Code decision metadata `asked: true` or `approvalRuleId`. Codex does not ask. |
|
|
44
|
+
| you approved | Receipt name `saidYes`: an ask followed by a signed outcome whose `originalDecisionId` links to that decision. It proves that the held tool ran, not that the task succeeded. |
|
|
45
|
+
| refused | Receipt name `stopped`: `block` or `fail_closed` without an ask. This is a policy refusal. |
|
|
46
|
+
| shadow | Action `shadow`, shown separately from allowed. |
|
|
47
|
+
| fail open | Signed event `fail_open`, stored as `unrecorded`. The admission verdict was unavailable. |
|
|
48
|
+
| approval outcome not recorded | `unresolvedAsked`: asked minus saidYes. No human refusal is inferred from a missing outcome. |
|
|
49
|
+
|
|
50
|
+
The arithmetic is `launches = allowed + asked + stopped + shadow + unrecorded` and `asked = saidYes + unresolvedAsked`. Do not add approvals to launches again. The existing receipt's `saidNo` cannot identify which launch a person refused, so this reader never guesses that number.
|
|
51
|
+
|
|
52
|
+
Example from a signed synthetic ledger:
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
4 launches · 1 allowed · 2 asked · 1 you approved · 1 refused · 1 approval outcome not recorded
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Missing evidence prints `Signed session receipts are missing.` or another specific reason, without counts. A failed signature, sequence, hash chain or checkpoint prints `Receipt signature or hash chain verification failed.` and exits with status 1. JSON uses `verified`, `missing` or `verification_failed`; only `verified` includes `counts`.
|
|
59
|
+
|
|
60
|
+
Signatures attest integrity under the local key, not an external identity or a trusted execution environment. Replacing both a ledger and all its local key and checkpoint material is outside this check's trust boundary. Older ledgers without a durable checkpoint cannot prove that a complete signed suffix was never removed.
|
|
61
|
+
|
|
62
|
+
## Last-session tip and Team counts
|
|
63
|
+
|
|
64
|
+
The plugin's detached tip task verifies the last session's tally, waits up to five seconds for SessionEnd's signed summary, and caches one bounded display line. The next new session shows it once alongside the existing coaching tip. Quiet mode hides it. A missing transcript does not prevent a tally when a local ledger exists. No transcript or ledger is read on the SessionStart path.
|
|
65
|
+
|
|
66
|
+
Installed-host checks on October 5, 2026: Claude Code 2.1.289 displayed a SessionStart `systemMessage` in its terminal. Codex 0.160.0's interactive terminal displayed it as `↳ Hook · ...` after the first prompt was submitted, before model execution. Codex `exec`, in both text and JSON modes, did not display the same message even though SessionStart completed. The CLI tally works independently of startup display. The probes stopped before any model turn.
|
|
67
|
+
|
|
68
|
+
The optional counts-sync module signs only a daily aggregate with the existing receipt key. A valid Team license, registered seat, local feature flag and explicit local opt-in are required. Daily tokens belong to the UTC date the signed session summary completed, including sessions crossing midnight. The site documentation at `/docs/team-counts/` lists every outgoing field. The plugin worker schedules it after durable receipt completion, outside the hook reply. Separate locally opted-in host directories for the same license share a machine lock and existing pinned receipt signer. Resumed days contribute only increments over earlier completed days; conflicting or already-sent revised counts require review.
|
|
69
|
+
|
|
70
|
+
Codex 0.160.0 under Node 22 also suppressed the numeric `systemMessage` emitted by a real SessionEnd canary in `exec`. Use `agentguard-burn tally SESSION_ID` after unattended execution. The signed Codex usage is marked estimated and can omit child threads that tree discovers separately.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Launch tree
|
|
2
|
+
Own / subtree tokens | share of session tokens | recorded duration
|
|
3
|
+
main session [321cfac5-66b] claude-fable-5-1, claude-opus-5-5
|
|
4
|
+
661.8M / 668.1M | 99.0% | 1292819s
|
|
5
|
+
general-purpose [a20b05bb4d19] claude-opus-5-5
|
|
6
|
+
6.4M / 6.4M | 1.0% | 631s
|
|
7
|
+
Session tokens: 668.1M. Shares use each node's own tokens.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# October 5 duration fix and receipt investigation
|
|
2
|
+
|
|
3
|
+
Work remains on `burn/launch-tree-tally-oct5`. The site branch `site/team-view-oct5` remains at `a3a168752f98d2fbe4292b65f649828fb9a7f73f` without new changes. No merge, push, publish, deployment, production configuration change or external message was performed. Future worktrees belong under `~/dev`. Existing committed worktrees were retained.
|
|
4
|
+
|
|
5
|
+
## Active time
|
|
6
|
+
|
|
7
|
+
The tree now sums gaps between each node's recorded timestamps, capping each gap at `ACTIVE_GAP_CAP_MS`, the same five-minute cap used by Burn's session state. Timestamps for the same node are merged, deduplicated and sorted first. JSON `durationMs` now means active time; `spanMs` preserves the first-to-last elapsed span. Text labels both and omits the span when it equals active time.
|
|
8
|
+
|
|
9
|
+
Implementation: `src/insights/tree.ts:78`, `src/insights/launch-evidence.ts:24`. Existing threshold and calculation: `src/defaults.ts:74`, `src/state/session.ts:34`. Regression tests in `tests/launch-tree.test.ts:23` cover a three-day pause contributing five minutes, separate child activity and duplicate records read in either order.
|
|
10
|
+
|
|
11
|
+
The real Claude Code session is `321cfac5-66b0-4e36-ada5-01dcf3f0ba17`. Before, rerun before editing:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
Launch tree
|
|
15
|
+
Own / subtree tokens | share of session tokens | recorded duration
|
|
16
|
+
main session [321cfac5-66b] claude-fable-5-1, claude-opus-5-5
|
|
17
|
+
661.8M / 668.1M | 99.0% | 1292819s
|
|
18
|
+
general-purpose [a20b05bb4d19] claude-opus-5-5
|
|
19
|
+
6.4M / 6.4M | 1.0% | 631s
|
|
20
|
+
Session tokens: 668.1M. Shares use each node's own tokens.
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
After, with the same transcript and child transcript:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Launch tree
|
|
27
|
+
Own / subtree tokens | share of session tokens | active time
|
|
28
|
+
main session [321cfac5-66b] claude-fable-5-1, claude-opus-5-5
|
|
29
|
+
661.8M / 668.1M | 99.0% | active 89728s | span 1292819s
|
|
30
|
+
general-purpose [a20b05bb4d19] claude-opus-5-5
|
|
31
|
+
6.4M / 6.4M | 1.0% | active 631s
|
|
32
|
+
Session tokens: 668.1M. Shares use each node's own tokens.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Exact JSON: main active 89,727,652 ms, span 1,292,818,503 ms; child active and span both 630,740 ms. Token totals and ancestry are unchanged. The text fits 80 columns. This is an estimate from activity records, not measured compute time.
|
|
36
|
+
|
|
37
|
+
Evidence files: [before](tree-before.txt), [after](tree-after.txt), [JSON](tree-after.json). Transcript SHA-256: `78805417d0d24b8474a708fc04ae14f9223710816301129cc1010b273529a2d3`; child transcript SHA-256: `6a37229d1747145dfbb52315489c37af43c49f01f83057c8a322cdb1ac960dc6`. No transcript content is copied into these files.
|
|
38
|
+
|
|
39
|
+
## Where current main writes receipts
|
|
40
|
+
|
|
41
|
+
Source checked read-only first: fetched monorepo `origin/main`, `efa4bcf`, and public plugin main `62b84034b06831c7cdc52dee4a76d0889a9bd6b0`, version 0.3.18. A read-only remote ref lookup confirmed that public main still named this commit. The writer, license, common, registry and SessionEnd files are byte-identical between these mains and this worktree. The original monorepo checkout's local main is older and is not the authority here.
|
|
42
|
+
|
|
43
|
+
All following plugin paths start at `packages/agentguard-codex-plugin/`:
|
|
44
|
+
|
|
45
|
+
| Host | Receipt data directory |
|
|
46
|
+
| --- | --- |
|
|
47
|
+
| Claude Code | `CLAUDE_PLUGIN_DATA`, unless an explicit `PLUGIN_DATA` takes precedence. |
|
|
48
|
+
| Codex | `PLUGIN_DATA`. The legacy MCP adapter derives `~/.codex/plugins/data/agentguard-agentguard` for the standard marketplace cache layout when the host variable is absent. |
|
|
49
|
+
| Either host without a data variable | `~/.agentguard/codex-plugin`. This fallback uses the OS home, not `AGENTGUARD_HOME`. |
|
|
50
|
+
|
|
51
|
+
Path resolution: `runtime/common.cjs:7` and `:18`; legacy MCP derivation: `runtime/mcp-legacy.cjs:6` and `:22`. Hook data directories are provided by their host environment; the reader need not guess a Claude cache layout.
|
|
52
|
+
|
|
53
|
+
The worker writes **`<data>/ledger/decisions.ndjson`**. Its Ed25519 seed is `<data>/signing-key.hex`, and the verification key is `<data>/public-key.hex`. Creation and ledger recovery are at `runtime/engine.cjs:87`; signing every appended row is at `:228`. The signed end-of-session row has `plugin.event = session_receipt`, `plugin.receipt.version = 1`, written at `:246`. This is a row in the same chain, not a separate receipt file.
|
|
54
|
+
|
|
55
|
+
The Claude and Codex manifests both register SessionEnd at `hooks/hooks.json:46` and `hooks/codex-hooks.json:43`. The hook at `hooks/session-end.cjs:19` calls `runtime/work-receipt.cjs:199`. It waits for the running worker to sign the summary. If the worker is unavailable, an unsigned request is queued in `<data>/session-receipts-pending.ndjson` at `runtime/work-receipt.cjs:214`; `runtime/engine.cjs:261` signs it when the worker drains the queue. Pending requests are not verified receipts.
|
|
56
|
+
|
|
57
|
+
**Free is eligible.** No key resolves to local Free, enforcing by default, at `runtime/license.cjs:81` and `:107`. Signing and session summary writing have no paid-tier gate. Both enforce and shadow sessions get signed rows. They are not limited to sessions that attempted a launch: a valid SessionEnd can create a zero-launch summary, immediately with a running worker or later from the queue. A disabled hook, invalid session ID, process death or unwritable storage can prevent it. An active session without a signed ending does not yet have a complete tally.
|
|
58
|
+
|
|
59
|
+
## Where tally reads, and why this real session has no number
|
|
60
|
+
|
|
61
|
+
`packages/agentguard-burn/src/insights/tally.ts:71` searches the active host data variable, or its default `AGENTGUARD_HOME/codex-plugin`, plus entries in `AGENTGUARD_HOME/plugin-ledgers`. Without an override, that home is `~/.agentguard`. The plugin registers its actual data directory at `runtime/engine.cjs:89` through `runtime/upgrade-moments.cjs:94`; this also covers a writer fallback outside a custom Burn home. `tally.ts:83` opens each physical ledger and public key, verifies signatures and chain, and checks the durable head before counting. `:24` requires a final signed session summary and links approvals to signed outcomes.
|
|
62
|
+
|
|
63
|
+
The lookup matches the current plugin writer. The isolated checks also run the CLI with both plugin data variables removed; discovery still succeeds through the writer's registry. No lookup change was needed for the investigated installation.
|
|
64
|
+
|
|
65
|
+
This machine's Claude installation is different from the default Free plugin install linked by pricing. `~/.claude/settings.json:101` configures only the standalone Burn PreToolUse hook for Agent and Task, with its command at `:107`. AgentGuard is absent from `~/.claude/plugins/installed_plugins.json` and the enabled-plugin map. The Codex user hook also calls standalone Burn. No real AgentGuard plugin installation was changed during this investigation.
|
|
66
|
+
|
|
67
|
+
The local fallback plugin ledger contains six old spend rows for synthetic session `s1`, and no session summaries or rows for the real session. No registered alternate directory contains an extant ledger. The real session has one unsigned admission-log row in `~/.agentguard/decisions.ndjson` and one independently signed Burn admission receipt in `~/.agentguard/receipts.ndjson`, selected by its hashed session ID. That receipt's signature and per-session chain verify. It says `OK`, `blocked: false`. Its schema is `agentguard.burn.decision.v1`.
|
|
68
|
+
|
|
69
|
+
Standalone writing is at `packages/agentguard-burn/src/hook/pre-tool-use.ts:241`; its signed schema is at `src/receipt.ts:22`. This schema has no signed tool-call ID, linked approval outcome or session-end summary. The matching tool-call ID in `decisions.ndjson` is unsigned. Reading that other file cannot establish the signed approval lifecycle or completeness required by this tally. No past decisions were manufactured or resigned.
|
|
70
|
+
|
|
71
|
+
Real CLI output remains:
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
Signed session receipts are missing.
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Evidence: [text](tally-after.txt), [JSON](tally-after.json).
|
|
78
|
+
|
|
79
|
+
**Yes:** a default Free plugin install on current main writes compatible receipts that this branch's tally can count after SessionEnd, without a license key. **No:** this real session from the standalone-only install cannot supply a complete numeric tally. The tally command itself is still an unreleased branch feature; published Burn 0.3.28 does not expose it.
|
|
80
|
+
|
|
81
|
+
The [reproducible synthetic probe](verify-free-receipts.cjs) uses the unchanged plugin Engine, default license resolution, signing, SessionEnd receipt helper and branch CLI. It creates isolated data below `~/dev`, makes no model calls or network requests, and removes its generated keys afterward. It covers both hosts, both modes, no-launch sessions, registry discovery and resumed sessions. [Actual probe output](free-plugin-fixture-output.txt) includes:
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
SYNTHETIC Free claude-code enforce: 1 launches · 1 allowed · 0 asked · 0 you approved · 0 refused
|
|
85
|
+
SYNTHETIC Free codex enforce: 1 launches · 1 allowed · 0 refused
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
UNVERIFIED: a numeric tally from an actual Free plugin host session with a real sub-agent launch. The synthetic probe is not presented as such a session.
|
|
89
|
+
|
|
90
|
+
## Handoff to the plugin owner
|
|
91
|
+
|
|
92
|
+
1. Resumed sessions need a fresh signed closing summary after new decisions. `runtime/work-receipt.cjs:80` permanently marks a session receipted and `:82` ignores later rows. `runtime/engine.cjs:249` returns `duplicate` forever for that ID. Preserve cumulative launch decisions and outcomes across resumes, and append a new final summary after activity added since the previous summary. Repeated SessionEnd without new activity should stay idempotent. The probe reproduces the current missing-tally result on both hosts in both modes; the reader correctly refuses the stale summary.
|
|
93
|
+
2. An existing standalone Claude hook needs an explicit integration path if those users should get the complete tally. `runtime/common.cjs:130` detects that hook; `runtime/engine.cjs:378` then writes only a `burn_external_hook` mirror and delegates admission. That mirror is not the governing verdict. Arrange one admission owner and signed, call-correlated verdicts and outcomes before the final summary. Any receipt ingestion must verify the external signature and chain; the current standalone schema lacks a signed tool-call ID and outcomes, so this requires coordinated writer changes or a deliberate migration to plugin-owned admission. Do not count the mirror as an allowed launch or backfill approvals from unsigned logs.
|
|
94
|
+
|
|
95
|
+
Neither plugin path was edited. A fresh plugin-only Free install needs no new admission change to write compatible receipts.
|
|
96
|
+
|
|
97
|
+
## Checks
|
|
98
|
+
|
|
99
|
+
- Burn `npm test`: 579 tests, 578 passed, 1 skipped, 0 failed.
|
|
100
|
+
- Focused tree and tally tests: 19 passed, including the new multi-day resume test and existing tampered-receipt failure test.
|
|
101
|
+
- Unchanged plugin receipt and licensing suites: 32 passed, 0 failed.
|
|
102
|
+
- Synthetic probe: all four host/mode combinations passed, including registry discovery, zero-launch sessions and the reproduced resume limitation.
|
|
103
|
+
- Real tree and tally commands: text and JSON completed successfully; tree text stays within 80 columns.
|
|
104
|
+
|
|
105
|
+
Only the Burn package changed in this follow-up. The site and plugin were not edited. Proposed release versions from the prior report are unchanged; no version was published.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"burn": {
|
|
3
|
+
"tests": 579,
|
|
4
|
+
"pass": 578,
|
|
5
|
+
"fail": 0,
|
|
6
|
+
"skipped": 1
|
|
7
|
+
},
|
|
8
|
+
"plugin_receipts": {
|
|
9
|
+
"tests": 32,
|
|
10
|
+
"pass": 32,
|
|
11
|
+
"fail": 0,
|
|
12
|
+
"skipped": 0
|
|
13
|
+
},
|
|
14
|
+
"tree_max_columns": 61,
|
|
15
|
+
"real_tally": {
|
|
16
|
+
"status": "missing",
|
|
17
|
+
"session": "321cfac5-66b0-4e36-ada5-01dcf3f0ba17",
|
|
18
|
+
"reason": "Signed session receipts are missing."
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
SYNTHETIC Free claude-code enforce: 1 launches · 1 allowed · 0 asked · 0 you approved · 0 refused
|
|
2
|
+
SYNTHETIC no-tools claude-code enforce: 0 launches · 0 allowed · 0 asked · 0 you approved · 0 refused
|
|
3
|
+
SYNTHETIC resumed claude-code enforce: Signed receipts for the resumed session are incomplete.
|
|
4
|
+
SYNTHETIC Free claude-code shadow: 1 launches · 0 allowed · 0 asked · 0 you approved · 0 refused · 1 shadow
|
|
5
|
+
SYNTHETIC no-tools claude-code shadow: 0 launches · 0 allowed · 0 asked · 0 you approved · 0 refused
|
|
6
|
+
SYNTHETIC resumed claude-code shadow: Signed receipts for the resumed session are incomplete.
|
|
7
|
+
SYNTHETIC Free codex enforce: 1 launches · 1 allowed · 0 refused
|
|
8
|
+
SYNTHETIC no-tools codex enforce: 0 launches · 0 allowed · 0 refused
|
|
9
|
+
SYNTHETIC resumed codex enforce: Signed receipts for the resumed session are incomplete.
|
|
10
|
+
SYNTHETIC Free codex shadow: 1 launches · 0 allowed · 0 refused · 1 shadow
|
|
11
|
+
SYNTHETIC no-tools codex shadow: 0 launches · 0 allowed · 0 refused
|
|
12
|
+
SYNTHETIC resumed codex shadow: Signed receipts for the resumed session are incomplete.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Signed session receipts are missing.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"session": "321cfac5-66b0-4e36-ada5-01dcf3f0ba17",
|
|
3
|
+
"totalTokens": 668141484,
|
|
4
|
+
"root": {
|
|
5
|
+
"id": "321cfac5-66b0-4e36-ada5-01dcf3f0ba17",
|
|
6
|
+
"parent": null,
|
|
7
|
+
"parentEvidence": null,
|
|
8
|
+
"name": "main session",
|
|
9
|
+
"models": [
|
|
10
|
+
"claude-fable-5-1",
|
|
11
|
+
"claude-opus-5-5"
|
|
12
|
+
],
|
|
13
|
+
"ownTokens": 661764670,
|
|
14
|
+
"subtreeTokens": 668141484,
|
|
15
|
+
"tokenShare": 0.9904558927222666,
|
|
16
|
+
"durationMs": 89727652,
|
|
17
|
+
"spanMs": 1292818503,
|
|
18
|
+
"endedWithoutFinishing": false,
|
|
19
|
+
"children": [
|
|
20
|
+
{
|
|
21
|
+
"id": "a20b05bb4d1940a8d",
|
|
22
|
+
"parent": "321cfac5-66b0-4e36-ada5-01dcf3f0ba17",
|
|
23
|
+
"parentEvidence": "launch tool result",
|
|
24
|
+
"name": "general-purpose",
|
|
25
|
+
"models": [
|
|
26
|
+
"claude-opus-5-5"
|
|
27
|
+
],
|
|
28
|
+
"ownTokens": 6376814,
|
|
29
|
+
"subtreeTokens": 6376814,
|
|
30
|
+
"tokenShare": 0.009544107277733409,
|
|
31
|
+
"durationMs": 630740,
|
|
32
|
+
"spanMs": 630740,
|
|
33
|
+
"endedWithoutFinishing": false,
|
|
34
|
+
"children": []
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"unlinked": [],
|
|
39
|
+
"notes": []
|
|
40
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Launch tree
|
|
2
|
+
Own / subtree tokens | share of session tokens | active time
|
|
3
|
+
main session [321cfac5-66b] claude-fable-5-1, claude-opus-5-5
|
|
4
|
+
661.8M / 668.1M | 99.0% | active 89728s | span 1292819s
|
|
5
|
+
general-purpose [a20b05bb4d19] claude-opus-5-5
|
|
6
|
+
6.4M / 6.4M | 1.0% | active 631s
|
|
7
|
+
Session tokens: 668.1M. Shares use each node's own tokens.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Launch tree
|
|
2
|
+
Own / subtree tokens | share of session tokens | recorded duration
|
|
3
|
+
main session [321cfac5-66b] claude-fable-5-1, claude-opus-5-5
|
|
4
|
+
661.8M / 668.1M | 99.0% | 1292819s
|
|
5
|
+
general-purpose [a20b05bb4d19] claude-opus-5-5
|
|
6
|
+
6.4M / 6.4M | 1.0% | 631s
|
|
7
|
+
Session tokens: 668.1M. Shares use each node's own tokens.
|