Skip to content

Commit 5d163ba

Browse files
chore(telemetry): deprecate DO_NOT_TRACK env var (warn on use) — patch (#18)
DO_NOT_TRACK=1 is commonly set broadly across CI / corporate environments as a generic privacy convention. When it is the only opt-out, many users disable AxonFlow plugin telemetry accidentally as a side-effect of a generic policy, not as an intentional AxonFlow-specific decision. This patch starts a deprecation. Behavior today is unchanged: DO_NOT_TRACK=1 still disables telemetry. What's new is a one-line warning emitted the first time the opt-out fires with DO_NOT_TRACK=1 set and AXONFLOW_TELEMETRY=off NOT set, pointing operators at the canonical switch. If both are set, the operator has already migrated and no warning fires. Removal target: after 2026-05-05 in the next major release. AXONFLOW_TELEMETRY=off remains the canonical AxonFlow-specific opt-out and its behavior is unchanged. Coordinated with the v7.4.0 SDK release train (sdk-go#127, sdk-typescript#180, sdk-python#146, sdk-java#135) and the axonflow-docs telemetry page update (#417).
1 parent 3fa98f2 commit 5d163ba

5 files changed

Lines changed: 24 additions & 7 deletions

File tree

.codex-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
},
88
"metadata": {
99
"description": "Runtime governance for OpenAI Codex. Policy enforcement on terminal commands, advisory governance via skills, PII detection, audit trails, and compliance-grade decision records.",
10-
"version": "0.4.1"
10+
"version": "0.4.2"
1111
},
1212
"plugins": [
1313
{
1414
"name": "axonflow",
1515
"source": "./",
1616
"description": "Policy enforcement, PII detection, and audit trails for OpenAI Codex. Hybrid governance — enforces policies on terminal commands (exec_command) via hooks, provides advisory governance for other tools via implicit-activation skills, and records compliance-grade audit trails. Self-hosted via Docker — all data stays on your infrastructure.",
17-
"version": "0.4.1",
17+
"version": "0.4.2",
1818
"author": {
1919
"name": "AxonFlow",
2020
"email": "hello@getaxonflow.com",

.codex-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "axonflow",
33
"displayName": "AxonFlow Governance",
44
"description": "Policy enforcement, PII detection, and audit trails for OpenAI Codex. Hybrid governance — enforces policies on terminal commands (exec_command) via hooks, provides advisory governance for other tools via implicit-activation skills, and records compliance-grade audit trails. Self-hosted via Docker — all data stays on your infrastructure.",
5-
"version": "0.4.1",
5+
"version": "0.4.2",
66
"author": {
77
"name": "AxonFlow",
88
"email": "hello@getaxonflow.com",

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.4.2] - 2026-04-22
4+
5+
### Deprecated
6+
7+
- `DO_NOT_TRACK=1` as an AxonFlow telemetry opt-out — scheduled for removal after 2026-05-05 in the next major release. Use `AXONFLOW_TELEMETRY=off` instead. The plugin's `telemetry-ping.sh` emits a one-time stderr warning when `DO_NOT_TRACK=1` is the active control and `AXONFLOW_TELEMETRY=off` is not also set.
8+
39
## [0.4.1] - 2026-04-19
410

511
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ More troubleshooting in the [integration guide](https://docs.getaxonflow.com/doc
351351
Anonymous one-time ping on first hook invocation: plugin version, OS, architecture, bash version, AxonFlow platform version. **Never** tool arguments, message contents, or policy data.
352352

353353
Opt out:
354-
- `DO_NOT_TRACK=1` (standard)
355-
- `AXONFLOW_TELEMETRY=off`
354+
- `AXONFLOW_TELEMETRY=off` (canonical)
355+
- `DO_NOT_TRACK=1` — still honored for backward compatibility, but **deprecated** and scheduled for removal after 2026-05-05 in the next major release. The plugin emits a one-time warning when `DO_NOT_TRACK=1` is the active control and `AXONFLOW_TELEMETRY=off` is not also set.
356356

357357
Guarded by a stamp file at `$HOME/.cache/axonflow/codex-plugin-telemetry-sent` (delete to re-send). Details: [docs.getaxonflow.com/docs/telemetry](https://docs.getaxonflow.com/docs/telemetry/).
358358

scripts/telemetry-ping.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
# with plugin version, platform info (OS, arch, bash version), and AxonFlow
66
# platform version. No PII, no tool arguments, no policy data.
77
#
8-
# Opt out: DO_NOT_TRACK=1 or AXONFLOW_TELEMETRY=off
8+
# Opt out: AXONFLOW_TELEMETRY=off (canonical)
9+
# Also honored for backward compatibility: DO_NOT_TRACK=1 (deprecated — removed
10+
# after 2026-05-05 in the next major release; warning below emits when it's the
11+
# active opt-out so operators can migrate)
912
#
1013
# Guard: stamp file at $HOME/.cache/axonflow/codex-plugin-telemetry-sent
1114
# prevents repeat pings. Delete the stamp file to re-send on next hook invocation.
@@ -18,7 +21,15 @@ command -v curl &>/dev/null || exit 0
1821
command -v jq &>/dev/null || exit 0
1922

2023
# Opt-out check (matches OpenClaw plugin's telemetry-config.ts)
21-
if [ "${DO_NOT_TRACK:-}" = "1" ] || [ "${AXONFLOW_TELEMETRY:-}" = "off" ]; then
24+
if [ "${DO_NOT_TRACK:-}" = "1" ]; then
25+
# Deprecation warning — only when DO_NOT_TRACK is the active control.
26+
# If AXONFLOW_TELEMETRY=off is also set, the operator has already migrated.
27+
if [ "${AXONFLOW_TELEMETRY:-}" != "off" ]; then
28+
echo "[AxonFlow] DO_NOT_TRACK=1 is deprecated as an AxonFlow telemetry opt-out and will be removed after 2026-05-05 in the next major release. Set AXONFLOW_TELEMETRY=off to opt out going forward. See https://docs.getaxonflow.com/docs/telemetry for details." >&2
29+
fi
30+
exit 0
31+
fi
32+
if [ "${AXONFLOW_TELEMETRY:-}" = "off" ]; then
2233
exit 0
2334
fi
2435

0 commit comments

Comments
 (0)