jonah-fleet 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to `jonah-fleet` will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.20.0](https://github.com/juliendurandeu/jonah-fleet/compare/v1.19.0...v1.20.0) (2026-09-20)
9
+
10
+
11
+ ### Features
12
+
13
+ * **orchestration:** introduce question-driven telemetry guardrails and 3-tier measurement taxonomy ([#293](https://github.com/juliendurandeu/jonah-fleet/issues/293)) ([23cd994](https://github.com/juliendurandeu/jonah-fleet/commit/23cd994c7e928e2d57b785965a507e115cda1cc7))
14
+
8
15
  ## [1.19.0](https://github.com/juliendurandeu/jonah-fleet/compare/v1.18.0...v1.19.0) (2026-09-20)
9
16
 
10
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jonah-fleet",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Standalone autonomous agent fleet with Symphony orchestration, claim protocols, and continuous improvement loops",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,6 +47,15 @@ tests/ # Test suites
47
47
  - **Zero-Guesswork Ambiguity Gate**: Never make silent assumptions about underspecified requirements, schemas, edge cases, or UX flows. Stop and ask clarifying questions before implementation.
48
48
  - **Structured Clarifications & Grilling**: When asking questions, propose 1–2 high-leverage questions at a time with concrete options or trade-offs. For complex features or fuzzy requirements, invoke `/grill-me` to stress-test the design before writing code.
49
49
 
50
+ ## Telemetry & Measurement Intent
51
+
52
+ - **Question-First Principle**: Every custom analytics event must answer an explicit question that influences a product, architectural, or growth decision. If observing an event would never change what is built, prioritized, or retired, do NOT instrument it.
53
+ - **3-Tier Telemetry Taxonomy**:
54
+ - **Tier 1 (Core Funnel & Growth Levers)**: Acquisition, activation, retention, referral, revenue (North Star metrics). Instrumentation is **mandatory and rigorous**: must include impression denominator (`_shown`), interaction CTA (`_clicked`), outcome/completion (`_completed`), and structured failure/abandonment branches (`_failed` with `reason`). Must pair with a companion `Measure: ...` tracking issue.
55
+ - **Tier 2 (Exploratory Product UX & Feature Flags)**: Secondary features and discovery surfaces. Instrument only when tied to an explicit hypothesis or UX discovery question in the issue specification.
56
+ - **Tier 3 (Passive Chrome & Utility / Easter Eggs)**: Cosmetic toggles, credits popovers, dismiss buttons, informational tooltips. **Explicitly exempt from custom events**; rely on autocapture, web vitals, or session replay if diagnostic data is ever needed.
57
+ - **Zero Vanity Tracking Guardrail**: Never emit telemetry purely for checklist compliance. Avoid adding arbitrary click trackers to passive or cosmetic UI surfaces.
58
+
50
59
  ## Conventions
51
60
 
52
61
  - **Language**: All code, comments, commit messages, and PR titles must be written in **English**.
@@ -104,6 +104,7 @@ a. **Read the target issue and check eligibility.** Eligible = open, unassigned
104
104
  - **Automated review passes**: run `/code-review` (evaluating along Standards in `AGENTS.md` and Spec in the issue's `## Tasks`) and security review over the diff. Fix what they flag.
105
105
  - **Repository conventions scan**: read and verify all rules and conventions specified in `AGENTS.md` (or `CLAUDE.md`/`GEMINI.md`), project-level skills in `.agents/skills/`, and project documentation.
106
106
  - **Design System & Viewport Pre-flight** (for frontend/UI diffs): self-audit diffs against design tokens (no arbitrary class overrides), WCAG AA 4.5:1 contrast ratios on dark/light surfaces, single primary CTA hierarchy per screen, and mobile viewport crowding (avoid stacked nudges/banners above the fold at ~390px).
107
+ - **Telemetry Contract Audit**: verify that any new interactive surfaces adhere to the 3-Tier Telemetry Taxonomy in `AGENTS.md`: Tier 1/2 flows must have question-backed events with impression denominators (`_shown`) and documented properties in the event catalog (`ARCHITECTURE.md`), while Tier 3 utility/cosmetic surfaces must be explicitly exempt with zero vanity click-trackers.
107
108
  - **Documentation accuracy**: update relevant docs (`ARCHITECTURE.md`, `CODEMAP.md`, `API.md`, `CHANGELOG.md` if maintained by repo).
108
109
  - **Build & type-check verification**: run the repository's test, type-check, and lint commands from `AGENTS.md` (e.g. `npm test`, `npm run type-check`, `npm run lint`, `pytest`, `cargo test`). Confirm zero errors and zero test failures.
109
110
  - **Active Origin Sync & Clean-Merge Gate**: Run `git fetch origin main && git merge origin/main --no-edit` to absorb any newly merged pull requests and resolve any conflicts locally. Verify `git merge-tree origin/main HEAD` reports no conflicts before marking ready.
@@ -220,6 +221,10 @@ _Generated by [Antigravity](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/ru
220
221
  - Apply the `needs-info` label and release the claim (unassign).
221
222
  - Select the next candidate (evaluating ambiguous issues counts toward step 12's infeasible-continuation cap).
222
223
  - **Intent vs. Defect Guardrail**: When investigating issues related to low conversion, zero-click events, or underperforming features: verify whether the issue is a software defect or a lack of user intent. If data indicates the root cause is **lack of user intent** (e.g. button is rendered above fold and functions correctly when clicked, but user interaction rate is <2%) rather than a software defect, do NOT fall into the **telemetry rabbit hole** (adding elaborate fallback telemetry, downstream error handling, or defensive rendering). Categorize the issue as a **product/UX question** (`needs-design` / `roadmap/*`), comment explaining the lack of user intent, release the claim (unassign), and select the next candidate.
224
+ - **Telemetry Design & Measurement Contract Gate**: When implementing new features or interactive surfaces, classify them according to the 3-Tier Telemetry Taxonomy in `AGENTS.md`:
225
+ - **Tier 1 (Core Funnel & Levers)**: You MUST implement the complete measurement contract: impression denominator (`_shown`), interaction CTA (`_clicked`), completion (`_completed`), and structured failure/abandonment branches (`_failed` with `reason`). Update the repository's custom events catalog (`ARCHITECTURE.md` / `DATA_CONTEXT.md`).
226
+ - **Tier 2 (Exploratory UX)**: Instrument only if the issue specification explicitly defines a hypothesis, metric question, or companion `Measure: ...` issue.
227
+ - **Tier 3 (Passive Chrome & Utility / Easter Eggs)**: Do NOT add custom events or click trackers for cosmetic easter eggs, footer attribution popovers, theme toggles, or standard modal dismissals. Keep the codebase free from vanity tracking noise.
223
228
  - If infeasible: comment explaining blocker, release claim (unassign), and select next candidate (up to 3 infeasible evaluations per run). If permanent blocker on 2nd strike, post the mandatory 4-part escalation card (`## 🛑 Escalation: Human Decision Required`), apply `needs-human` label, and tag repo owner.
224
229
  12a. **Umbrella-issue handoff + batching:** If candidate is an umbrella epic:
225
230
  - Read `🧭 Decomposition plan` comment (or create if first run).
@@ -131,8 +131,11 @@ Check if `$PR_NUMBER` is set:
131
131
  - **WCAG AA Contrast**: Enforce minimum 4.5:1 contrast on readable text (e.g. `text-gray-400` minimum on dark surfaces; avoid muted unreadable text).
132
132
  - **CTA Hierarchy**: Verify at most one primary forward CTA (`.btn-primary`) per active screen/tab.
133
133
  - **Mobile Viewport Budget**: Verify that new banners, nudges, or sticky elements do not stack concurrently above the fold on mobile viewports (~390px).
134
- 4. If PR modifies rendered UI, verify screenshots or visual components if tooling/scripts are available.
135
- 5. Run repository verification commands (tests, type-check) ONLY if CI status is unconfirmed or failing. If remote CI (such as GitHub Actions or Vercel preview) is already green and passing on the head commit, treat CI as verified. If verification commands must be run locally, specify `WaitMsBeforeAsync: 10000` and NEVER call `schedule` or yield the turn with plain text while waiting for background tasks.
134
+ 4. **Telemetry & Measurement Contract Pass**:
135
+ - **Question-First Validation**: Verify that any new custom analytics events answer a clear, decision-driving question per the 3-Tier Taxonomy in `AGENTS.md`. Flag vanity click-trackers on Tier 3 passive chrome/easter eggs as non-blocking cleanup (recommend removal).
136
+ - **Funnel Completeness**: For new Tier 1 user funnels or critical workflows, verify the telemetry contract: impression denominator (`_shown`), interaction (`_clicked`), and failure states (`_failed` with `reason`) are captured, and events are documented in the custom events catalog (`ARCHITECTURE.md` / `DATA_CONTEXT.md`). Flag missing denominators on core funnels as blocking.
137
+ 5. If PR modifies rendered UI, verify screenshots or visual components if tooling/scripts are available.
138
+ 6. Run repository verification commands (tests, type-check) ONLY if CI status is unconfirmed or failing. If remote CI (such as GitHub Actions or Vercel preview) is already green and passing on the head commit, treat CI as verified. If verification commands must be run locally, specify `WaitMsBeforeAsync: 10000` and NEVER call `schedule` or yield the turn with plain text while waiting for background tasks.
136
139
 
137
140
  ### Step 5: Classify Findings & Make Decision
138
141
 
@@ -64,6 +64,19 @@ A list of testing decisions that were made. Include:
64
64
  - Which modules will be tested
65
65
  - Prior art for the tests (i.e. similar types of tests in the codebase)
66
66
 
67
+ ## Telemetry & Measurement Decisions
68
+
69
+ A list of measurement decisions for this feature based on the 3-Tier Telemetry Taxonomy:
70
+
71
+ - **Tier Classification**: State whether this surface is Tier 1 (Core Funnel & Growth Levers), Tier 2 (Exploratory Product UX), or Tier 3 (Passive Chrome & Utility / Easter Eggs).
72
+ - **If Tier 1 or Tier 2**:
73
+ - **Question this answers**: What concrete product, growth, or UX decision will this data influence?
74
+ - **Metric & Denominator**: What is the impression denominator (e.g. `_shown`) and target metric defining success or failure?
75
+ - **Events & Properties**: Required event names (`snake_case`), triggers, key properties, and structured failure/abandonment states (`reason`).
76
+ - **Measurement issue**: Outline the companion `Measure: ...` tracking issue to be filed upon merge.
77
+ - **If Tier 3**:
78
+ - Explicitly declare: `Telemetry: None (Tier 3 utility/cosmetic — no decision value).` Do NOT add vanity click trackers.
79
+
67
80
  ## Out of Scope
68
81
 
69
82
  A description of the things that are out of scope for this spec.