Telemetry can count gstack's own use on Capy, opt-in and kept out of public numbers (GST-3311) (#4576)

Agent-driven Capy sessions still send no telemetry. If the owner's
`preferences.yaml` holds `telemetry_capy: anonymous`, each skill run
sends one anonymous row labelled `source=capy`, or `source=gt` from
Garry's own machines.

Why: we couldn't see our own gstack use on Capy, and if we had sent it,
it would have been counted as real use.

Nothing to do yet: nothing changes until the owner adds that line, and
the ingest change ships in a separate deploy.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-20 22:27:26 +00:00
1 parent 87a473e5aa
commit 14a84980ee
15 files changed
+250 -19

No files matched your search

+3 -2
View File
@@ -79,9 +79,10 @@ function normalizeOutcome(outcome: unknown) {
}
// bin/gstack-telemetry-log writes source from --source or
// GSTACK_TELEMETRY_SOURCE (default "live"). Keep it so test and eval traffic
// GSTACK_TELEMETRY_SOURCE (default "live"). Keep it so test, eval, CI and
// gstack's own use on Capy ("capy", or "gt" from its maintainer's machines)
// can be told apart from real use; anything unexpected is "other", never "live".
const SOURCES = ["live", "test", "eval", "ci"];
const SOURCES = ["live", "test", "eval", "ci", "capy", "gt"];
function normalizeSource(source: unknown): string {
if (source === undefined || source === null || source === "") return "live";
return SOURCES.includes(String(source)) ? String(source) : "other";