Repository navigation
Expand file tree
/
Copy pathcomponents.json
More file actions
536 lines (536 loc) · 18.1 KB
/
Copy pathcomponents.json
File metadata and controls
536 lines (536 loc) · 18.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
{
"$comment": [
"What this repository contributes to a running stack, and what a check may",
"believe about it. `checked` is proved against this repository by",
"crates/gateway/tests/it/manifest.rs in this repository's own CI; `declared` is a",
"statement nobody can verify and carries its own `why`.",
"",
"THIS IS THE ONE THE WHOLE MECHANISM WAS BUILT FOR. estate.json says this",
"repository runs three things and the workspaces build three BINARIES, and",
"they are not the same three. `focus-export` is a subcommand of the gateway",
"binary and not a binary at all; `tokenfuse-cluster` is a binary in the",
"SEPARATE crates/cluster workspace that estate.json has never heard of and",
"that no launcher installs.",
"",
"tokenfuse-cluster is not a stub. It is a raft-replicated budget ledger, added",
"2026-07-02, with three integration suites (redb durability, http cluster,",
"kill durability) and its own CI job, `cluster (raft HA)`. The README's",
"architecture diagram calls it `the optional tokenfuse-cluster HA raft`.",
"Optional and installable-by-nothing are different things, and until this file",
"existed only this repository could tell them apart: a central registry cannot",
"see a second workspace it was never told about.",
"",
"TWO WORKSPACES IS ALSO WHY THE CHECK IS WHAT IT IS. `cargo metadata` at the",
"root reports two binaries and stops; crates/cluster needs its own",
"--manifest-path. That is the same seam the two-lockfile trap sits in, which",
"CLAUDE.md already records for `cargo audit`, and it bites the same way here.",
"",
"THE ENVIRONMENT SPLIT IS DECLARED, THE UNION IS CHECKED. There are a hundred",
"TOKENFUSE_ names and assigning each to the component that reads it would be",
"guesswork, since the gateway, the MCP surface and the cloud share a prefix",
"space. So the split below is organisational and by prefix, and what the test",
"asserts is that the UNION of the three matches every name in non-test source,",
"both ways. A name that moves between components does not fail; a name that",
"appears or disappears does."
],
"schema": "taipanbox.dev/components/v1",
"repo": "TAIPANBOX/tokenfuse",
"components": [
{
"name": "tokenfuse-gateway",
"class": "service",
"checked": {
"binary": "tokenfuse",
"crate": "tokenfuse-gateway",
"workspace": ".",
"listen_default": "127.0.0.1:4100",
"env": {
"TOKENFUSE_ADDR": {
"required": false,
"default": "127.0.0.1:4100"
},
"TOKENFUSE_ADMIN_KEYS": {
"required": false
},
"TOKENFUSE_AGENT_ID_MODE": {
"required": false
},
"TOKENFUSE_AGENT_TOKENS": {
"required": false,
"default": "off"
},
"TOKENFUSE_AGENT_TOKENS_STATIC_KEYS": {
"required": false
},
"TOKENFUSE_ALLOW_OPEN_OBS": {
"required": false
},
"TOKENFUSE_ALLOW_STUB": {
"required": false
},
"TOKENFUSE_APNS_ENV": {
"required": false
},
"TOKENFUSE_APNS_KEY_ID": {
"required": false
},
"TOKENFUSE_APNS_KEY_PATH": {
"required": false
},
"TOKENFUSE_APNS_TEAM_ID": {
"required": false
},
"TOKENFUSE_APNS_TOPIC": {
"required": false
},
"TOKENFUSE_CACHE": {
"required": false,
"default": "off"
},
"TOKENFUSE_CACHE_EMBEDDER": {
"required": false
},
"TOKENFUSE_CHECKPOINTS_DIR": {
"required": false
},
"TOKENFUSE_CHECKPOINT_KEYRYX_CONSUMER": {
"required": false
},
"TOKENFUSE_CHECKPOINT_KEYRYX_CREDENTIAL_FILE": {
"required": false
},
"TOKENFUSE_CHECKPOINT_KEYRYX_URL": {
"required": false
},
"TOKENFUSE_CHECKPOINT_KEY_LIFETIME_SECS": {
"required": false
},
"TOKENFUSE_CHECKPOINT_KEY_NAME": {
"required": false
},
"TOKENFUSE_CLIENT_KEYS": {
"required": false
},
"TOKENFUSE_CLOSURE_SECRET": {
"required": false
},
"TOKENFUSE_CLOUD_HEARTBEAT_SECONDS": {
"required": false,
"default": "30"
},
"TOKENFUSE_DATA_DIR": {
"required": false
},
"TOKENFUSE_DECLASSIFY_KEY": {
"required": false
},
"TOKENFUSE_DELEGATION_AUDIENCE": {
"required": false
},
"TOKENFUSE_DELEGATION_ISSUER": {
"required": false
},
"TOKENFUSE_DELEGATION_JWKS": {
"required": false
},
"TOKENFUSE_DELEGATION_JWKS_INTERVAL_MS": {
"required": false
},
"TOKENFUSE_DELEGATION_JWKS_URL": {
"required": false
},
"TOKENFUSE_DELEGATION_ORIGINS": {
"required": false
},
"TOKENFUSE_DELEGATION_REVOCATIONS": {
"required": false
},
"TOKENFUSE_DELEGATION_REVOCATIONS_FAILMODE": {
"required": false
},
"TOKENFUSE_DELEGATION_REVOCATIONS_INTERVAL_MS": {
"required": false
},
"TOKENFUSE_DELEGATION_REVOCATIONS_MAX_AGE_SECS": {
"required": false
},
"TOKENFUSE_DELEGATION_URL": {
"required": false
},
"TOKENFUSE_DLP": {
"required": false
},
"TOKENFUSE_DLP_PII": {
"required": false
},
"TOKENFUSE_EVENTS": {
"required": false
},
"TOKENFUSE_EVENTS_PATH": {
"required": false
},
"TOKENFUSE_FIREWALL": {
"required": false
},
"TOKENFUSE_FIREWALL_CONFIG": {
"required": false
},
"TOKENFUSE_GIT_SHA": {
"required": false,
"default": "dev"
},
"TOKENFUSE_IDENTITY_MAP": {
"required": false
},
"TOKENFUSE_IDENTITY_STRICT": {
"required": false
},
"TOKENFUSE_KEYS": {
"required": false
},
"TOKENFUSE_MAX_BODY_BYTES": {
"required": false
},
"TOKENFUSE_MAX_RUN_BUDGET_USD": {
"required": false
},
"TOKENFUSE_MCP_ACCEPT_XAA": {
"required": false,
"default": "off"
},
"TOKENFUSE_MCP_ADDR": {
"required": false,
"default": "127.0.0.1:4200"
},
"TOKENFUSE_MCP_ALLOW_OPEN_BIND": {
"required": false
},
"TOKENFUSE_MCP_AGENT_TOKENS_STATIC_KEYS": {
"required": false
},
"TOKENFUSE_MCP_CLIENT_IDS": {
"required": false
},
"TOKENFUSE_MCP_DLP": {
"required": false
},
"TOKENFUSE_MCP_DLP_PII": {
"required": false
},
"TOKENFUSE_MCP_KEYS": {
"required": false
},
"TOKENFUSE_MCP_LOCK": {
"required": false
},
"TOKENFUSE_MCP_PROOF_ORIGINS": {
"required": false
},
"TOKENFUSE_MCP_PROOF_URL": {
"required": false
},
"TOKENFUSE_MCP_REQUIRE_PROOF": {
"required": false
},
"TOKENFUSE_MCP_REQUIRE_SECRET_SCOPES": {
"required": false
},
"TOKENFUSE_MCP_RESOURCE": {
"required": false
},
"TOKENFUSE_MCP_SCAN": {
"required": false
},
"TOKENFUSE_MCP_SCAN_CONNECT_TIMEOUT_SECS": {
"required": false
},
"TOKENFUSE_MCP_SCAN_MAX_BODY_BYTES": {
"required": false
},
"TOKENFUSE_MCP_SCAN_TIMEOUT_SECS": {
"required": false
},
"TOKENFUSE_MCP_SECRETS": {
"required": false
},
"TOKENFUSE_MCP_SECRET_SCOPES": {
"required": false
},
"TOKENFUSE_MCP_STDIO": {
"required": false
},
"TOKENFUSE_MCP_TAINT_FAILMODE": {
"required": false
},
"TOKENFUSE_MCP_TAINT_GATEWAY": {
"required": false
},
"TOKENFUSE_MCP_TAINT_GATEWAY_KEY_FILE": {
"required": false
},
"TOKENFUSE_MCP_UPSTREAM": {
"required": false
},
"TOKENFUSE_MCP_UPSTREAM_LABELS": {
"required": false
},
"TOKENFUSE_MCP_UPSTREAMS": {
"required": false
},
"TOKENFUSE_MCP_WARDRYX_TIMEOUT_MS": {
"required": false,
"default": "<TOKENFUSE_WARDRYX_TIMEOUT_MS if set, else 1000>"
},
"TOKENFUSE_MODE": {
"required": false
},
"TOKENFUSE_OTLP_ENDPOINT": {
"required": false
},
"TOKENFUSE_PROFILE": {
"required": false,
"default": "governed"
},
"TOKENFUSE_PRICE_BOOK": {
"required": false
},
"TOKENFUSE_REQUIRE_RUN_ID": {
"required": false
},
"TOKENFUSE_ROUTER": {
"required": false
},
"TOKENFUSE_ROUTER_RULES": {
"required": false
},
"TOKENFUSE_TOOLS_PRUNE": {
"required": false,
"default": "off"
},
"TOKENFUSE_UPSTREAM": {
"required": false
},
"TOKENFUSE_UPSTREAM_AUTH": {
"required": false
},
"TOKENFUSE_UPSTREAM_CONNECT_TIMEOUT_SECS": {
"required": false
},
"TOKENFUSE_UPSTREAM_KEY_FILE": {
"required": false
},
"TOKENFUSE_URL": {
"required": false
},
"TOKENFUSE_VERSION": {
"required": false,
"default": "<CARGO_PKG_VERSION>-dev"
},
"TOKENFUSE_WARDRYX_CACHE_TTL_MS": {
"required": false
},
"TOKENFUSE_WARDRYX_FAILMODE": {
"required": false
},
"TOKENFUSE_WARDRYX_KEY": {
"required": false
},
"TOKENFUSE_WARDRYX_MODE": {
"required": false
},
"TOKENFUSE_WARDRYX_TIMEOUT_MS": {
"required": false
},
"TOKENFUSE_WARDRYX_URL": {
"required": false
},
"TOKENFUSE_WASM_POLICY": {
"required": false
},
"TOKENFUSE_WIRE": {
"required": false
}
}
},
"declared": {
"the_component_name_is_not_the_binary_name": {
"value": "tokenfuse",
"why": "The binary is `tokenfuse`; every launcher installs it as `tokenfuse-gateway`, which is the name estate.json and the port map use. Recorded rather than renamed: the rename would break every deployment for a tidiness nobody asked for."
},
"the_mcp_surface_is_a_second_listener": {
"value": "127.0.0.1:4200",
"why": "The same binary serves an MCP surface on its own address from TOKENFUSE_MCP_ADDR. One component, two listeners, which this schema has no field for and which is not worth inventing one for until a second component needs it."
}
}
},
{
"name": "focus-export",
"class": "tool",
"checked": {
"binary": "tokenfuse",
"crate": "tokenfuse-gateway",
"workspace": ".",
"subcommand": "focus-export"
},
"declared": {
"it_is_a_routine_not_a_binary": {
"value": "tokenfuse focus-export --traces <dir> --out <file.csv>",
"why": "estate.json lists it beside two binaries and it is a subcommand of one of them. stack-up runs it at 06:00 against its own trace directory."
}
}
},
{
"name": "tokenfuse-cloud",
"class": "service",
"checked": {
"binary": "tokenfuse-cloud",
"crate": "tokenfuse-cloud",
"workspace": ".",
"env": {
"TOKENFUSE_CLOUD_ALERT_PCT": {
"required": false
},
"TOKENFUSE_CLOUD_ALLOW_DEVKEY": {
"required": false
},
"TOKENFUSE_CLOUD_AUDIT_KEYRYX_CREDENTIAL_FILE": {
"required": false
},
"TOKENFUSE_CLOUD_AUDIT_KEYRYX_KEY": {
"required": false
},
"TOKENFUSE_CLOUD_AUDIT_KEYRYX_URL": {
"required": false
},
"TOKENFUSE_CLOUD_AUDIT_SIGNER": {
"required": false
},
"TOKENFUSE_CLOUD_AUDIT_SIGNING_KEY": {
"required": false
},
"TOKENFUSE_CLOUD_CORS_ORIGINS": {
"required": false
},
"TOKENFUSE_CLOUD_DATA": {
"required": false
},
"TOKENFUSE_CLOUD_HOST": {
"required": false
},
"TOKENFUSE_CLOUD_INCIDENT_BUDGET_BLOCKS": {
"required": false
},
"TOKENFUSE_CLOUD_INCIDENT_FANOUT_MULTIPLE": {
"required": false
},
"TOKENFUSE_CLOUD_INCIDENT_FANOUT_RUNS": {
"required": false
},
"TOKENFUSE_CLOUD_INCIDENT_LOOP_REPEATS": {
"required": false
},
"TOKENFUSE_CLOUD_INCIDENT_PROVIDER_FAILURES": {
"required": false
},
"TOKENFUSE_CLOUD_INCIDENT_SPEND_PER_MIN_USD": {
"required": false
},
"TOKENFUSE_CLOUD_INCIDENT_SPIKE_MULTIPLE": {
"required": false
},
"TOKENFUSE_CLOUD_KEY": {
"required": false
},
"TOKENFUSE_CLOUD_KEYS": {
"required": false
},
"TOKENFUSE_CLOUD_OIDC_ADMIN_ROLE": {
"required": false
},
"TOKENFUSE_CLOUD_OIDC_AUDIENCE": {
"required": false
},
"TOKENFUSE_CLOUD_OIDC_ISSUER": {
"required": false
},
"TOKENFUSE_CLOUD_OIDC_JWKS": {
"required": false
},
"TOKENFUSE_CLOUD_OIDC_ORG_CLAIM": {
"required": false
},
"TOKENFUSE_CLOUD_OIDC_ROLES_CLAIM": {
"required": false
},
"TOKENFUSE_CLOUD_REPLAY_EVENTS": {
"required": false
},
"TOKENFUSE_CLOUD_STALL_MINUTES": {
"required": false
},
"TOKENFUSE_CLOUD_URL": {
"required": false
}
}
},
"declared": {}
},
{
"name": "tokenfuse-cluster",
"class": "dev-tool",
"checked": {
"binary": "tokenfuse-cluster",
"crate": "tokenfuse-cluster",
"workspace": "crates/cluster",
"env": {
"TOKENFUSE_CLUSTER_ADDR": {
"required": false
},
"TOKENFUSE_CLUSTER_BOOTSTRAP": {
"required": false
},
"TOKENFUSE_CLUSTER_CA": {
"required": false
},
"TOKENFUSE_CLUSTER_CLIENT_CERT": {
"required": false
},
"TOKENFUSE_CLUSTER_CLIENT_KEY": {
"required": false
},
"TOKENFUSE_CLUSTER_DATA_DIR": {
"required": false
},
"TOKENFUSE_CLUSTER_ID": {
"required": false
},
"TOKENFUSE_CLUSTER_MTLS_CA": {
"required": false
},
"TOKENFUSE_CLUSTER_PEERS": {
"required": false
},
"TOKENFUSE_CLUSTER_TLS_CERT": {
"required": false
},
"TOKENFUSE_CLUSTER_TLS_KEY": {
"required": false
},
"TOKENFUSE_CLUSTER_TOKEN": {
"required": false
}
}
},
"declared": {
"what_it_actually_is": {
"value": "a harness over a library, not a plane",
"why": "CORRECTED 2026-08-28, hours after the first version of this entry called it a service nothing installs. That was true and it was the shallow half of the truth.\\n\\n`crates/cluster` is a LIBRARY with a binary beside it. The gateway depends on the library behind an optional feature (`cluster = [\"dep:tokenfuse-cluster\"]`) and runs raft IN PROCESS, in `crates/gateway/src/raft_ledger.rs`. So HA is a MODE OF THE GATEWAY, configured by TOKENFUSE_CLUSTER_ID / _PEERS / _DATA_DIR / _BOOTSTRAP, and the standalone binary is the harness for driving that ledger by hand: an in-process three-node demo, a `demo-http` over real sockets, and a `serve` for running one node manually.\\n\\nSo it is a dev-tool, in the sense trailryx's seven are: nothing should install it, and its absence from every deployment is the answer rather than a question."
},
"the_ha_capability_is_compiled_out_of_every_shipped_binary": {
"value": "cargo build --release -p tokenfuse-gateway",
"why": "THIS is the finding, and it is bigger than a binary nobody installs. Every image in the estate builds the gateway WITHOUT `--features cluster`: stack-k8s's images/tokenfuse.Dockerfile, stack-single through the same file, stack-up and taipan from source. So the raft ledger is not merely unconfigured, it is absent from the binary, and the four TOKENFUSE_CLUSTER_ variables name a code path that ships nowhere.\\n\\nMeasured 2026-08-28 rather than argued: built with the feature, started with TOKENFUSE_CLUSTER_ID=1, BOOTSTRAP=1 and a data dir. It logged `raft storage: durable (redb)`, openraft initialised, `node-1.redb` appeared on disk and /healthz answered 200. The capability is real and one flag away.\\n\\nWhether HA should ship by default is a product decision and is not made here: the feature pulls the whole openraft stack into an image every deployment runs. stack-k8s carries the recipe for turning it on deliberately."
}
}
}
]
}