Repository navigation
Expand file tree
/
Copy pathcomponents.json
More file actions
174 lines (174 loc) · 24.4 KB
/
Copy pathcomponents.json
File metadata and controls
174 lines (174 loc) · 24.4 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
{
"$comment": [
"What this LAUNCHER installs, and what a check may believe about it.",
"`checked` is proved against this repository by scripts/manifest-is-true.sh;",
"`declared` is a statement nobody can verify and carries its own `why`.",
"",
"THE THIRD GRAMMAR, AND THE LAST OF THE THREE LAUNCHERS. estate-gates' C5",
"reads all three from one central file: `register <name>` out of a shell",
"script in stack-up, compose service keys in stack-single, Kubernetes kinds",
"here. One parser, three syntaxes, none of it living where the fact lives.",
"Now each launcher states its own, and the two readings can catch each other.",
"",
"IT IS THE ONLY ONE WHERE THE ROUTINES ARE NAMED SOMETHING ELSE. A CronJob",
"here is called `crypto-trend` and the estate calls that routine",
"`qryx-trend`; `identity-sweep` is `idryx-detect`, `quality-drift` is",
"`verdryx-drift`, `drills` is `mockryx-drill`. C5 carries that map and its",
"comment says an unmapped routine is a FAIL rather than a skip, because one",
"it does not know is one it silently would not compare. The map is here too",
"now, as a pair per CronJob, so a rename on either side is visible from both.",
"",
"SEVEN PERSISTENT CLAIMS, AND THEY ARE THE ONE THING IN THIS ESTATE THAT COSTS",
"MONEY BY EXISTING. A PersistentVolumeClaim provisions a real disk on every",
"provider and is billed from creation, whether or not anything writes to it,",
"and some providers round up to their own minimum so the requested size is",
"not always the billed size. 00-base.yaml says this beside the claims. They",
"are listed here so that adding one is a visible change to a file somebody",
"reviews, rather than a line in a manifest nobody diffs.",
"",
"THE LOADBALANCER IS DELIBERATELY NOT IN THE DEFAULT INSTALL, for the same",
"reason: a cloud load balancer is metered. It lives outside the default",
"kustomization and stack-single reaches the same place with caddy, which",
"estate-gates already records as a recorded divergence rather than a gap."
],
"schema": "taipanbox.dev/components/v1",
"repo": "TAIPANBOX/stack-k8s",
"distribution": "ghcr.io/taipanbox/genaryx-console, built for amd64 and arm64 by .github/workflows/console-image.yml and merged into one tag (plus ghcr.io/taipanbox/stack-caddy and ghcr.io/taipanbox/stack-wg from tunnel-images.yml, same shape); manifests by tag, applied with kubectl or the install script",
"kind": "launcher",
"components": [
{
"name": "stack-k8s",
"class": "launcher",
"checked": {
"installs_services": [
"costcrew",
"genaryx-console",
"heraldyx",
"hub-ingress",
"idryx",
"policy-db",
"scopyx",
"tokenfuse-cloud",
"tokenfuse-gateway",
"tokenfuse-mcp-broker",
"typryx",
"typryx-wardryx-proxy",
"vouchryx",
"wardryx"
],
"schedules_routines": {
"agent-conform": "agent-conform",
"costcrew-crew": "costcrew-run",
"crypto-trend": "qryx-trend",
"drills": "mockryx-drill",
"identity-sweep": "idryx-detect",
"quality-drift": "verdryx-drift",
"record-seal": "trailryx-seal"
},
"manual_jobs": {
"drills-broker": "mockryx's drills for the MCP broker (scenarios/mcp), with the drills' own broker key; shipped suspended beside the broker in manifests/52-tokenfuse-mcp-broker.yaml, so it exists only where the typed-answer door does, and run by a person with kubectl create job --from=cronjob/drills-broker. Not a second routine: the estate's mockryx-drill is the drills CronJob, and one routine maps to one CronJob (CLAUDE.md invariant 85).",
"drills-heraldyx": "the whole reaction chain behind one denied tool call, to heraldyx's journal of the mail it sent (mockryx v0.5.1's reaction-chain-reaches-heraldyx as this cluster's copy); shipped suspended beside heraldyx in manifests/45-heraldyx.yaml, on heraldyx's node, reading heraldyx-state read only, so it exists only where heraldyx does, and run by a person with kubectl create job --from=cronjob/drills-heraldyx. Each run sends one real mail. Not a second routine: the estate's mockryx-drill is the drills CronJob (CLAUDE.md invariant 90, estate-gates GAPS G3.20)."
},
"persistent_claims": [
"cloud-state",
"console-state",
"costcrew-state",
"heraldyx-state",
"scopyx-events",
"stack-events",
"trailryx-records",
"typryx-state",
"vouchryx-state"
],
"namespace": "agent-stack",
"runs_as_sidecar": {
"focus-export": "tokenfuse-gateway",
"verdryx-slo": "tokenfuse-gateway"
}
},
"declared": {
"the_claims_are_metered": {
"value": "8 PersistentVolumeClaims",
"why": "Each provisions a real disk and is billed from creation, whether or not anything writes to it; some providers round up to their own minimum, so the requested size is not always the billed size. Listed so adding one is a visible change to a reviewed file."
},
"keyryx_witness_findings_reach_readers": {
"value": "the witness writes alerts/keyryx.ndjson on its own claim keyryx-witness-state; genaryx-console and heraldyx mount only alerts/ of it (subPath), read only on the mount and the claim, pod-affined to the witness, through keyryx/console-findings-patch.yaml and keyryx/heraldyx-findings-patch.yaml",
"why": "@decided 2026-10-20 (paraphrased): readers are given read-only access to the witness's own findings file, and the witness is never given write access to the bus it witnesses; on a cluster the findings travel on the witness's own claim, mounted read only through a subPath with each reader on the witness's node, and no new volume is added. The patches are applied by lib/keyryx-install.sh and reversed with --without-keyryx, so the default manifests are unchanged. Held by scripts/keyryx-alerts-reach-readers.sh (CLAUDE.md invariant 75)."
},
"the_loadbalancer_is_excluded_on_purpose": {
"value": "genaryx-console-lb",
"why": "A cloud load balancer is metered, so it sits outside the default kustomization and a default install never creates it. stack-single reaches the same place with caddy. estate-gates records this as a decision rather than a gap."
},
"hub_entry_is_opt_in_and_metered": {
"value": "manifests/53-hub-entry.yaml (hub-ingress Deployment + type:LoadBalancer Service), applied by hub/up.sh",
"why": "@decided 2026-09-26: a customer with several sites reaches one hub over outbound HTTPS to a single public entry, authenticated by the planes' own keys, with no VPN. Like genaryx-console-lb, this is a second type:LoadBalancer Service outside the default kustomization for the same reason: it is metered from the moment it exists (a GCP forwarding rule, about USD 0.025/hour) and Kubernetes provisions it, not Terraform, so it is deleted before a Terraform teardown (hub/down.sh does this first). Unlike every other opt-in manifest here, it also publishes a real product surface on purpose: exactly seven routes to tokenfuse-cloud and wardryx, held narrow by scripts/hub-entry-is-narrow.sh (invariant 23) rather than by being unreachable."
},
"focus_export_runs_as_a_sidecar": {
"value": "focus-export in the tokenfuse-gateway pod",
"why": "It has no CronJob and cannot have one: it reads the gateway's local Parquet trace directory off disk, and that directory is an emptyDir, mountable only by containers inside its own pod by Kubernetes' own design. The other way out was to give it a PersistentVolumeClaim, which provisions a real disk billed from creation and is a spending decision rather than a fix.\\n\\nSo it is a sidecar in the pod that already holds the volume. It prints rather than storing, which is what quality-drift does one file over: in this deployment a routine's artifact is its log. Recorded as a GAP from 2026-08-06 until 2026-08-28."
},
"costcrew_crew_moved_from_manual_to_routine": {
"value": "costcrew-crew, mapped to costcrew-run, v0.2.0",
"why": "@decided 2026-09-03: un-suspend the crew CronJob, with the console's own cadence switch as the inner guard. costcrew v0.2.0's runner understands `-due`, so this CronJob no longer needs Kubernetes suspend to stay safe: it fires daily and `-due` refuses anything but cadence-due work with exit 2 (not a failure) unless a person has turned cadence on at the console's /cadence page, and never spends past the smaller of `-ceiling` and the console's own `cadence.ceiling_cents`. It is therefore no longer a Job TEMPLATE in Kubernetes' sense, and the manual_jobs bucket, which manifest-is-true.sh requires to carry `suspend: true`, would be false about it. Moved to schedules_routines instead.\\n\\nRecorded rather than resolved: estate-gates' C5 maps CronJobs to governance routines through its own ROUTINE_KIND, a table that lives in that repository, and `costcrew-run` is not in it yet. C5 will report `c5.routine-unmapped` for this pair until a person updates ROUTINE_KIND there, in a change to that repository, which this change does not make and this repository's own CLAUDE.md forbids making from here. Same shape as GOTCHAS 93: two correct rules, one repository apart, disagreeing until somebody closes the gap on purpose."
},
"closing_a_retained_reservation_is_opt_in": {
"value": "closure/up.sh: the closure-keys Secret plus two kubectl patches (manifests/57-closure-*-patch.yaml); closure/down.sh reverses them",
"why": "@claude 2026-10-12: tokenfuse D8 closes a retained reservation with evidence once the console mints a short-lived token after a passkey assertion, both keyed by one shared secret. Off by default: neither default manifest names TOKENFUSE_CLOSURE_SECRET or GENARYX_CLOSURE_SECRET_FILE, and no 57-closure file is in the kustomization. The secret is minted once with no trailing newline, because the console trims whitespace from its file and the gateway does not. It takes effect only with images that include D8: tokenfuse v1.9.0 and console v1.1.34, pinned here since 1.1.35, are the first. Checked by scripts/closure-off-by-default.sh, a statement about this repository's text, not about a cluster."
},
"client_keys_and_identity_map_are_opt_in": {
"value": "identity/up.sh: the gateway-client-keys Secret and the gateway-identity-map ConfigMap, both optional in manifests/10-planes.yaml",
"why": "@decided 2026-10-13: the cluster launcher takes the gateway's client keys and identity map as files, as stack-single does: the keys a Secret, the map a ConfigMap mounted read only, the gateway rolled when what it reads changed, and the files checked first by their grammar and then by the pinned gateway image with no network. Off by default: the gateway reads both objects as optional and no manifest declares either, so a cluster that names no file runs as before and kubectl apply -k leaves an operator's files alone. No new workload and no claim. Held by scripts/identity-files-are-checked.sh (CLAUDE.md invariant 39), a statement about this repository's text and a stub cluster; evidence/identity-verified.md is the run on a real API server."
},
"delegation_plane_runs_agents_only": {
"value": "vouchryx (Deployment + Service + 4 NetworkPolicies + the vouchryx-state PVC), in the default apply set (manifests/kustomization.yaml), agents-only: no identity provider; its keys and its first enrolled agent are minted by lib/vouchryx-mint.sh at deploy time; an upstream issuer is added only by delegation/up.sh",
"why": "@decided 2026-10-19 (paraphrased, decision D8): the agent token is the door credential of the default install, so the service that issues it is part of that install (CLAUDE.md invariant 24, as amended). Trusting an upstream identity provider stays opt-in, named in advance: delegation/up.sh refuses to apply anything until the operator supplies a trusted issuer, audience and JWKS file. The console revoke wiring stays a kubectl patch (manifests/54-delegation-console-patch.yaml), opt-in. scripts/vouchryx-runs-agents-only.sh holds it."
},
"typryx_journal_is_on_the_shared_bus_and_the_broker_fronts_it_by_configuration": {
"value": "TYPRYX_EVENTS on stack-events (typryx.ndjson); tokenfuse-mcp-broker deployed with TOKENFUSE_MCP_UPSTREAMS=typryx=http://typryx:4320/mcp,scopyx=http://scopyx:4300",
"why": "@decided 2026-09-26: typryx's four event types (typed_answer, typed_unanswered, typed_refused, calibration_drift) are registered in agent-passport SPEC 6.2 (agent-passport#67, landed 2026-09-25), and typryx#6 lets a caller present its key inside a tools/call's own _meta object (TYPRYX_ACCEPT_KEY_IN_META=1), which is the shape the broker's TOKENFUSE_MCP_SECRETS vault already fills a {{secret:NAME}} handle into. So the journal moves onto the shared claim every other plane's history lives on, and tokenfuse's MCP broker (manifests/52-tokenfuse-mcp-broker.yaml, applied by the same --with-typed path) fronts typryx by configuration alone, nothing in tokenfuse's own code changes. Superseded: typryx_events_stay_off_the_shared_bus and typryx_is_not_wired_to_the_mcp_broker, both dated 2026-09-25; their text is not reworded in place, it stays in git history.",
"note": "@claude 2026-09-26: moving the journal onto the bus does not make trailryx's own mapper seal it. The lines stop at the schema first (typryx writes agent-event/v1.0, trailryx 1.0 reads v0.1 to v0.3, so record-seal counts them unknown_schema; measured on stack-up 2026-09-26), and past the schema trailryx-agentevent refuses all four typryx types by name on purpose (trailryx#81) regardless of TRAILRYX_TRUST_DOMAIN (three carry a run id only when their caller passed one, and the fourth is a finding about a template rather than a run); record-seal counts a refused line and moves on. Whether trailryx maps them is that repository's own decision. The broker path needs typryx v0.2.0 or later (typryx#6); v0.1.0 refused every brokered call 401 (GOTCHAS 106). @measured on kind v0.33 2026-09-26 with typryx v0.2.0 pinned: an ask through the broker, its key only a {{secret:typryx_key}} handle, was answered and journalled on stack-events."
},
"typryx_data_mode_is_chosen_at_deploy_and_defaults_off": {
"value": "typed/mode.sh (one copy for deploy.sh, deploy-gcp.sh, deploy-aws.sh): --typed-mode jev|own-model|off, default off; --with-typed alone renders manifests/51 and 52 unchanged (backend stub)",
"why": "@decided 2026-09-30: a customer chooses where the data of a typed answer goes from three modes (Jev, where the named fields of a question leave the cluster for TypeSafe's hosted API, a paid service; their own model on their own hardware, where nothing leaves unless the URL is a hosted service; or off), and the launchers ask. Jev and own-model are opt-in because each is a bill or a data-egress decision, so the default stays the free stub. The Jev key is a file the operator names, stored as the typryx-jev-key Secret and mounted as a file (TYPRYX_JEV_KEY_FILE), never an environment value, a ConfigMap or an argument. Each of the two real modes also renders one NetworkPolicy, typryx-egress-model, since 30-network-policy.yaml is default-deny. No new workload: typryx and tokenfuse-mcp-broker were already declared, so installs_services and persistent_claims are unchanged. Held by scripts/typed-mode-is-honest.sh (CLAUDE.md invariant 26).",
"note": "@decided 2026-09-30: --typed-training (off by default, any mode but off) sets TYPRYX_TRAINING_DIR, typryx v0.3.0's opt-in local training log, so a customer can fine-tune and calibrate a model of their own on their own data. Off, every render is unchanged. On, a mode gains that one environment variable and nothing else: the directory is /var/lib/typryx/training on the typryx-state claim typryx already had for its ledger, so persistent_claims is unchanged and no disk is provisioned (a claim is billed from creation, so a new one would be a spending decision for the operator). It lives as long as that claim and is not on stack-events. typryx is pinned at v0.3.0. @claude 2026-09-30: No cluster was used: the rendered manifests are schema-valid (kubeconform --strict) but a pod mounting the key Secret and an egress rule reaching a real model have not been run. @claude 2026-10-04: typryx is pinned at v0.4.0 since then, the release that adds the wardryx-proxy subcommand; v0.3.0 stays the first to read TYPRYX_TRAINING_DIR."
},
"typed_door_secrets_are_minted_when_absent": {
"value": "typed/mode.sh door-secrets (one copy for deploy.sh, deploy-gcp.sh, deploy-aws.sh), called in the typed branch before the render: typryx-keys (TYPRYX_KEYS) and tokenfuse-mcp-broker-keys (TOKENFUSE_MCP_KEYS, TOKENFUSE_MCP_SECRETS carrying typryx's bearer) are created with kubectl create -f - when absent and kept when present; only typryx-keys present mints the broker's from its bearer; only the broker's present stops the deploy",
"why": "@decided 2026-10-14: the deploy scripts mint the typed-answer door's two Secrets when absent and never overwrite one, as stack-single's installer already does. Measured on GCP 2026-10-14 before this: a --with-typed deploy left typryx and the MCP broker in CreateContainerConfigError until both were made by hand. Held by scripts/typed-door-is-minted.sh (CLAUDE.md invariant 42)."
},
"run_budget_ceiling_is_set_on_the_gateway": {
"value": "TOKENFUSE_MAX_RUN_BUDGET_USD=5.00 on the tokenfuse-gateway container (10-planes.yaml); --run-budget-ceiling USD on deploy.sh, deploy-gcp.sh and deploy-aws.sh changes it after the apply",
"why": "@claude 2026-10-04: default 5.00 equals tokenfuse's own DEFAULT_RUN_BUDGET, so an ordinary run is unchanged and only a caller-declared larger budget is clamped (tokenfuse v1.5.0, invariant 73). It is not set on tokenfuse-cloud: tokenfuse does not clamp a budget the Cloud sets, and it bounds each run, not an agent's total spend. Held by scripts/run-budget-ceiling-is-set.sh and deploy-flags-agree.sh (CLAUDE.md invariant 28)."
},
"agent_firewall_is_enforce_on_the_gateway": {
"value": "TOKENFUSE_FIREWALL=enforce on the tokenfuse-gateway container (10-planes.yaml); --firewall enforce|shadow|off on deploy.sh, deploy-gcp.sh and deploy-aws.sh changes it after the apply, and firewall/mode.sh validates the word",
"why": "@decided 2026-10-13: the launcher runs TokenFuse's agent firewall in enforce by default and an operator keeps one switch to run it in shadow or off. An unset TOKENFUSE_FIREWALL reads as shadow in TokenFuse, and TokenFuse ignores a misspelt value without a word, so the switch is validated before the install. Held by scripts/firewall-is-enforce-by-default.sh and deploy-flags-agree.sh (CLAUDE.md invariant 37).",
"note": "@claude 2026-10-13, correction: the sentence in the why above that says TokenFuse ignores a misspelt value without a word is stale. Since TokenFuse v1.11.1 an unrecognised TOKENFUSE_FIREWALL exits 2 before the listener binds, so the launcher's check is the earlier of two refusals, not the only one."
},
"gateway_client_keys_are_required_and_minted_when_absent": {
"value": "tokenfuse-gateway reads TOKENFUSE_CLIENT_KEYS from gateway-client-keys (not optional) and runs TOKENFUSE_IDENTITY_STRICT=enforce (10-planes.yaml); lib/identity-mint.sh (deploy.sh, deploy-gcp.sh, deploy-aws.sh, identity/mint.sh) mints felyx and agents keys and their map when no files were given, never rewrites them, and leaves the operator's own alone",
"why": "@decided 2026-10-17: close the agent-security findings of the 2026-10-17 review, starting with the defaults. With no client keys the gateway admitted every caller and took the agent id a caller wrote (finding F-001). The same design as stack-single's installer: one key for the console's copilot bound to its id alone, one for the operator's agents bound to agents/*, the agents' key written to a 0600 file whose path the deploy prints. Held by scripts/metered-doors-require-keys.sh (CLAUDE.md invariant 50)."
},
"mcp_broker_blocks_raw_secrets_and_asks_wardryx": {
"value": "tokenfuse-mcp-broker (52-tokenfuse-mcp-broker.yaml): TOKENFUSE_MCP_DLP=block, TOKENFUSE_MCP_SCAN=block, TOKENFUSE_WARDRYX_MODE=enforce against wardryx, fail mode closed, the viewer key wardryx_gateway; the risk signal moves only the URL to the proxy",
"why": "@decided 2026-10-17, as above; finding F-009. Held by scripts/broker-blocks-raw-secrets.sh (CLAUDE.md invariant 51). TOKENFUSE_MCP_LOCK is not set: pinning tool definitions needs a lock file somebody approved."
},
"typed_risk_signal_is_opt_in_and_stateless": {
"value": "typryx-wardryx-proxy (manifests/56-typryx-wardryx-proxy.yaml), rendered only by typed/mode.sh --typed-risk-signal, off by default and refused when the typed mode is off",
"why": "@decided 2026-10-04 (estate audit, wave 1, J2): a typed risk signal may turn a call into a hold for a person and never into a deny; its first consumer is wardryx (v1.2.0 hold_if_signal). The proxy is typryx v0.4.0's wardryx-proxy subcommand in the same image, answering from the backend the typed mode chose, with no claim, journal, ledger or training log of its own, so installs_services gains one workload and persistent_claims does not change. Only the MCP broker's TOKENFUSE_WARDRYX_URL points at it; the LLM gateway keeps asking wardryx directly. No hold_if_signal policy is seeded. Held by scripts/typed-mode-is-honest.sh (CLAUDE.md invariant 29).",
"note": "@claude 2026-10-04: the proxy binds the pod address with TYPRYX_ALLOW_OPEN_BIND=1 because the broker can send no X-Typryx-Key, so its door is the one NetworkPolicy that admits the broker alone. estate-gates C5 will report typryx-wardryx-proxy as an unmapped service until SERVICE_KIND in that repository learns the name; this repository does not edit it. No cluster was used: the render is schema-valid (kubeconform --strict) and the proxy was run as a container against a stand-in wardryx, not in a pod behind these policies."
},
"tool_call_nothing_grants_waits_for_a_person": {
"value": "ConfigMap wardryx-tool-hold, projected optional into wardryx's policy directory, written by lib/tool-hold.sh in the three launchers after a replay of the cluster's own history; TOOL_HOLD=0 or --tool-hold 0 leaves it empty; tool-hold/agents.sh agent-allow, agent-deny and agent-list write grants through PUT /v1/policies",
"why": "@decided 2026-11-07: a tool call nothing grants is held for a person on a default install, a model call passes, only an explicit grant lifts the hold, and an existing install stops the upgrade with a list and changes nothing. Held by scripts/tool-hold-is-seeded.sh (CLAUDE.md invariant 83). The block's body is stack-single's, and estate-gates compares the two."
},
"chain_verifier_runs_on_the_box": {
"value": "agent-conform, a CronJob every 15 minutes (40-routines-and-secrets.yaml), mapped to the routine agent-conform; its state in conform/ beside the bus on stack-events",
"why": "@decided 2026-10-04 (estate audit, wave 1, bus layer 3): every stream on the shared bus is a hash chain and nothing on a box checked one until agent-stack-go v1.1.0's `agent-conform watch-dir`; a break becomes a chain_broken event in agent-conform.ndjson on the bus, where heraldyx and the console already read. @claude 2026-10-04: a CronJob is a new pod per run, so its state (which findings it has already announced) cannot live in an emptyDir without a persistent break being announced every run, and a claim of its own would be a billed disk, so the state file sits beside the output on stack-events, which already exists: no new claim. A new break fails the Job on purpose. The verifier holds the bus read-write, so writing only its own files is the tool's own guarantee, not the mount's. Held by scripts/chain-verifier-watches-the-bus.sh (CLAUDE.md invariant 31).",
"note": "@claude 2026-10-04: `agent-conform` is not one of the estate's routines yet. estate-gates C5 will report c5.routine-unmapped for this CronJob until ROUTINE_KIND in that repository maps it, in a change to that repository, which this repository's CLAUDE.md forbids making from here (the same shape as costcrew-crew, GOTCHAS 93 and 96); manifest-is-true.sh knows the name so the map here is checked."
}
}
}
]
}