mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 08:31:44 +01:00
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:
1 parent
87a473e5aa
commit
14a84980ee
15 files changed
+250
-19
No files matched your search
@@ -538,7 +538,8 @@ When the session starts from the Drive skill (a bootstrapper outside the
|
||||
checkout), the file also exports `GSTACK_PREFERENCES_FILE`, the path of
|
||||
`preferences.yaml` beside that skill's SKILL.md, which the `GSTACK_LAUNCH` line
|
||||
leaves out; `gstack-models resolve --role agent` reads it
|
||||
([your model preference](model-policy.md#your-model-preference)).
|
||||
([your model preference](model-policy.md#your-model-preference)), and
|
||||
`gstack-telemetry-tier` reads its Capy telemetry opt-in ([privacy](privacy.md)).
|
||||
The file is part of the ok verdict: a passing run that cannot write it exits 1
|
||||
with `gstack: fail launch-file — could not write the launch file <path>; fix:
|
||||
make <dir> writable, or set GSTACK_STATE_ROOT to a writable directory
|
||||
|
||||
@@ -169,7 +169,10 @@ A value gstack can't use stops only the agent role, naming the file and the fix.
|
||||
**On Capy.** Each cloud machine starts fresh, so config.yaml does not carry
|
||||
over. Keep the preference in `preferences.yaml` next to the gstack skill's
|
||||
SKILL.md in your Drive: one `agent_model: <value>` line, with `#` comments
|
||||
allowed (any other key is ignored with a warning). The session start puts the
|
||||
allowed. The file may also hold `telemetry_capy: anonymous`, which opts gstack's
|
||||
own Capy sessions in to anonymous telemetry, and `telemetry_capy_source: gt`,
|
||||
which labels those rows `gt` ([privacy](privacy.md)); any other key is ignored
|
||||
with a warning. The session start puts the
|
||||
file's path in the launch file as `GSTACK_PREFERENCES_FILE` and gstack reads it
|
||||
where it is: nothing is copied, and `--check` never writes the skill folder. Agents write that
|
||||
file only when you ask them to remember a preference. To change or clear it for
|
||||
|
||||
+9
-1
@@ -38,8 +38,16 @@ no, and `gstack-config set telemetry off` turns it off at any time.
|
||||
`other`) and the version you came from. `--check` and unattended
|
||||
sessions send nothing.
|
||||
- `source` is set to `ci` under CI and `eval` inside gstack's eval runs,
|
||||
so lab traffic stays out of real-use numbers. A duration gstack can't
|
||||
so lab traffic stays out of real-use numbers. gstack's own use on Capy is
|
||||
labelled `capy` (or `gt`, below) and kept out of them too. A duration gstack can't
|
||||
measure is sent empty instead of 0.
|
||||
- **On Capy:** sessions an agent drives there send nothing unless the owner's
|
||||
`preferences.yaml` beside the Capy gstack skill holds the line
|
||||
`telemetry_capy: anonymous`. Then each skill run sends one row at the
|
||||
`anonymous` tier (no device ID, even on a machine set to `community`),
|
||||
labelled `capy`. Any other value, or two such lines, is off. A second line,
|
||||
`telemetry_capy_source: gt`, labels the rows `gt` instead (gstack's
|
||||
maintainer's own machines); any other label is `capy`.
|
||||
- **What's never sent:** code, file paths, repo names, branch names, prompts,
|
||||
or any other content you write.
|
||||
- **What stays on your machine:** opted in, each run is also logged to
|
||||
|
||||
+4
-1
@@ -34,7 +34,10 @@ drives still sets `GSTACK_SESSION_KIND=unattended` itself.
|
||||
onboarding tips and routing blocks are suppressed exactly as they are for
|
||||
`spawned`. An unanswered consent is `off`.
|
||||
- **No publishing or sync, enforced at the writers.** Usage analytics are not
|
||||
written (`TELEMETRY_WRITE: skipped (unattended session)`), the artifacts
|
||||
written (`TELEMETRY_WRITE: skipped (unattended session)`; the one exception
|
||||
is a Capy session the owner opted in with `telemetry_capy: anonymous`, which
|
||||
sends one anonymous row per skill run labelled `capy` (or `gt`), see
|
||||
[privacy](privacy.md)), the artifacts
|
||||
repo is neither pulled nor pushed (`ARTIFACTS_SYNC: skipped (unattended
|
||||
session; mode=<m> queue=<n> retained)`), the sync spool is not fed
|
||||
(`gstack-brain-enqueue` is a no-op, and `gstack-review-log` says `review-log:
|
||||
|
||||
Reference in new issue
Block a user