@groundnuty/macf 0.2.6 → 0.2.8

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.
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "c897ddf6115a78e677a70a7f35322414eb1de21c",
3
- "built_at": "2026-04-29T11:44:31.216Z"
2
+ "commit": "dd02fb828a4b45f61d24732bab3f7dd133855525",
3
+ "built_at": "2026-04-30T02:57:53.987Z"
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/update.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,KAAK,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;AAa9C,UAAU,OAAO;IACf,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAKxB,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,eAAe,GAAG,eAAe,GAAG,cAAc,GAAG,kBAAkB,CAAC;CAC9G;AAED,wBAAgB,SAAS,CACvB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,gBAAgB,GACzB,SAAS,OAAO,EAAE,CAepB;AAgCD,wB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AAM,EAClB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,MAAM,CAAC,CAiOjB"}
@@ -1,6 +1,38 @@
1
1
  /**
2
- * macf update: read version pins from macf-agent.json, fetch latest available
3
- * for each component, show a diff, and bump selected pins.
2
+ * macf update: dual-purpose command (template-sync + version-bump).
3
+ *
4
+ * Two distinct things happen on every invocation:
5
+ *
6
+ * 1. **Always-on template sync** — refreshes canonical assets from the
7
+ * INSTALLED CLI BINARY's bundled templates, regardless of any flag
8
+ * selection. Independent of `versions.cli` / `versions.plugin` /
9
+ * `versions.actions` in macf-agent.json. Files refreshed:
10
+ * - `.claude/scripts/` (canonical helper scripts; #61, #140)
11
+ * - `.claude/rules/` (coordination.md + other rules)
12
+ * - `.claude/settings.json` (gh-token PreToolUse hook + plugin-skill
13
+ * permissions + sandbox.allowRead +
14
+ * sandbox.excludedCommands; merge-preserving)
15
+ * - `claude.sh` (regenerated from current launcher
16
+ * template; #63 — landing template-
17
+ * evolution changes like #60's
18
+ * `--plugin-dir` or #283's `:14318`
19
+ * OTLP endpoint without re-running init)
20
+ * - `.macf/plugin/` (repair-fetch only, if dir is empty;
21
+ * pin-bump fetch handled separately)
22
+ *
23
+ * 2. **Flag-gated version bumps** — `--cli` / `--plugin` / `--actions`
24
+ * select which version pins in macf-agent.json get bumped to latest;
25
+ * `--all` selects all three; `--yes` auto-accepts. `--plugin` bump
26
+ * additionally triggers a fresh `.macf/plugin/` fetch at the new
27
+ * version.
28
+ *
29
+ * Implication for downstream consumers + reproducible bootstrap (e.g.
30
+ * cv-e2e-test, harness pinning per macf#291): the CLI BINARY'S
31
+ * installed version determines what claude.sh template lands. Operators
32
+ * pinning via `npx -y @groundnuty/macf@<version> update` get a
33
+ * reproducible binary version + therefore a reproducible template.
34
+ * Operators using bare `macf update` get whatever brew/system has —
35
+ * which may pre-date a recent canonical fix (e.g. PR #283).
4
36
  *
5
37
  * Replaces the earlier plugin-update placeholder (P4). With PR #4 adding
6
38
  * version pins, this command is the canon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AE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,SAAS,KAAK,GAAG,CAAC,OAAO,MAAM,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;IACnD,OAAO,CAAC,CAAC;AACX,CAAC"}
package/dist/cli/index.js CHANGED
@@ -104,12 +104,44 @@ program
104
104
  });
105
105
  program
106
106
  .command('update')
107
- .description('Bump pinned versions in macf-agent.json (cli, plugin, actions)')
108
- .option('--all', 'Bump all components non-interactively', false)
109
- .option('--cli', 'Bump only the CLI pin', false)
110
- .option('--plugin', 'Bump only the plugin pin', false)
111
- .option('--actions', 'Bump only the actions pin', false)
112
- .option('--yes', 'Skip confirmation prompts', false)
107
+ .description('Refresh canonical assets + bump pinned versions. ' +
108
+ 'ALWAYS regenerates claude.sh, coordination rules, helper scripts, ' +
109
+ 'sandbox + hook entries from the installed CLI (template-evolution sync; ' +
110
+ 'independent of the --cli/--plugin/--actions selection). The flags below ' +
111
+ 'gate ONLY which version pins in macf-agent.json get bumped + when the ' +
112
+ 'plugin dir gets re-fetched. See `update --help` notes below for details.')
113
+ .addHelpText('after', `
114
+ Important — what gets refreshed UNCONDITIONALLY (independent of --cli/--plugin/--actions):
115
+ - .claude/scripts/ helper scripts (macf-gh-token.sh, check-gh-token.sh, etc.)
116
+ - .claude/rules/ coordination.md + other canonical rules
117
+ - .claude/settings.json gh-token PreToolUse hook + plugin-skill permissions +
118
+ sandbox.filesystem.allowRead + sandbox.excludedCommands
119
+ entries (merge-preserving — operator-authored entries kept)
120
+ - claude.sh regenerated from the installed CLI's launcher template
121
+ so template-evolution lands without re-running \`macf init\`
122
+ (e.g., #60 added --plugin-dir; #283 fixed retired :4318
123
+ OTLP endpoint). The generated file carries a managed-file
124
+ warning header.
125
+
126
+ What the flags actually control:
127
+ --cli bump versions.cli pin to latest
128
+ --plugin bump versions.plugin pin + re-fetch .macf/plugin/ if pin bumped
129
+ --actions bump versions.actions pin to latest
130
+ --all bump all three non-interactively
131
+ --yes skip per-pin confirmation prompts
132
+ --dry-run show diff + would-bump list, write nothing
133
+
134
+ Implication for reproducible bootstrap (cv-e2e-test, harness pinning, etc.):
135
+ The CLI BINARY's installed version determines what claude.sh template lands.
136
+ Pin via \`npx -y @groundnuty/macf@<version> update\` instead of bare \`macf update\`
137
+ if the bootstrap needs to use a specific binary version (vs whatever brew/system
138
+ has). See macf#291 for the surfacing context.
139
+ `)
140
+ .option('--all', 'Bump all version pins non-interactively', false)
141
+ .option('--cli', 'Bump only the CLI version pin', false)
142
+ .option('--plugin', 'Bump only the plugin version pin (+ re-fetch .macf/plugin/ if bumped)', false)
143
+ .option('--actions', 'Bump only the macf-actions version pin', false)
144
+ .option('--yes', 'Skip per-pin confirmation prompts', false)
113
145
  .option('--dry-run', 'Show the diff but do not write the config', false)
114
146
  .option('--dir <path>', 'Project directory (defaults to auto-discovery from cwd)')
115
147
  .action(async (opts) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AACA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,YAAY,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AAM,QAAQ,CAAC,UAAU,EAAE;QACzB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,cAAc,EAAE,IAAI,CAAC,cAAc;QACnC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,KAAK,EAAE,IAAI,CAAC,KAAK;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,GAAU,EAAE,EAAE;IACpD,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IACvC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groundnuty/macf",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Multi-Agent Coordination Framework CLI — coordinate Claude Code agents via GitHub. Installs as `macf` binary; use `macf init` to set up an agent workspace, `macf update` to refresh rules + version pins.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "test:watch": "vitest"
36
36
  },
37
37
  "dependencies": {
38
- "@groundnuty/macf-core": "0.2.6",
38
+ "@groundnuty/macf-core": "0.2.8",
39
39
  "commander": "^14.0.3",
40
40
  "reflect-metadata": "^0.2.2",
41
41
  "zod": "^4.0.0"
@@ -154,6 +154,101 @@ foreign-reporter, use `Refs` for all of them.
154
154
 
155
155
  ---
156
156
 
157
+ ## How to submit LGTM — formal review, not comment
158
+
159
+ **LGTM and "request changes" decisions MUST be submitted as formal GitHub
160
+ reviews via `gh pr review --approve` or `gh pr review --request-changes`,
161
+ not as plain `gh pr comment` text.**
162
+
163
+ ```bash
164
+ # CORRECT — formal review submission
165
+ gh pr review <PR-number> --repo <owner>/<repo> --approve --body-file <review.md>
166
+
167
+ # CORRECT — formal request-changes submission
168
+ gh pr review <PR-number> --repo <owner>/<repo> --request-changes --body-file <review.md>
169
+
170
+ # WRONG — review communicated only via issue/PR comment
171
+ gh pr comment <PR-number> --repo <owner>/<repo> --body "LGTM, you can merge"
172
+ gh issue comment <issue-N> --repo <owner>/<repo> --body "@<author> LGTM on PR #M"
173
+ ```
174
+
175
+ **Why this matters structurally:**
176
+
177
+ Formal review submission fires GitHub's `pull_request_review` webhook
178
+ event with `state in {approved, changes_requested}`. The MACF routing
179
+ Action's `route-by-pr-review-state` job (macf-actions v3.3.0+, per
180
+ macf-actions#39) listens for this exact event and notifies the PR author's
181
+ channel-server directly — independent of whether the reviewer @mentioned
182
+ the author in the body. **This is the structural defense for the
183
+ LGTM→merge handoff: the state-change IS the wake signal.**
184
+
185
+ If the LGTM is communicated only as a plain `gh pr comment`,
186
+ `pull_request_review` never fires; routing falls back to `route-by-mention`
187
+ which depends on body parsing (and `mention-routing-hygiene.md §5`
188
+ backtick-suppression discipline can suppress what looks like an addressing
189
+ mention). Empirically observed: cv-e2e-test rehearsals #9, #10, #11b
190
+ (2026-04-29 and 2026-04-30) — agents merged PRs without firing
191
+ `pull_request_review` at all, leaving `route-by-pr-review-state` an
192
+ untested code path despite being shipped via macf-actions v3.3.0.
193
+
194
+ **Same shape as the silent-fallback hazard class (`silent-fallback-hazards.md`):
195
+ the comment-form succeeds at the API boundary (`gh pr comment` returns 0)
196
+ but the semantic outcome (wake recipient via routing-Action's structural
197
+ defense) silently doesn't happen. Pattern A defense at the discipline
198
+ layer: assert the LGTM uses a state-change-firing mechanism, not just
199
+ text-on-the-thread.**
200
+
201
+ **The body content of the formal review** is the same kind of content you'd
202
+ otherwise put in a comment — substantive review notes, what's strong, what
203
+ needs changes, dispositions on prior feedback. The `--body-file` path is
204
+ the canonical way to pass that body without shell-quoting issues (per the
205
+ backticks-in-comments hazard noted in `mention-routing-hygiene.md`).
206
+
207
+ **This rule complements `coordination.md §Communication 2`** ("discussion
208
+ in issue comments, not PR comments"). The two surfaces serve different
209
+ purposes:
210
+
211
+ - **State-change events** (LGTM, request-changes) fire on the PR via
212
+ formal review submission — engages the routing-Action structural
213
+ defense (`route-by-pr-review-state`).
214
+ - **Substantive discussion ABOUT the work** persists on the issue thread
215
+ — visible on the Projects board, persists after the PR is merged or
216
+ closed.
217
+
218
+ Both surfaces are load-bearing. Don't skip the formal review thinking
219
+ "the issue thread is the canonical place"; don't skip the issue-thread
220
+ discussion thinking "the formal review covers everything."
221
+
222
+ **Verifying your review actually landed as a state-change** (per
223
+ `verify-before-claim.md §2`):
224
+
225
+ ```bash
226
+ # After gh pr review, confirm a state-change review exists.
227
+ # Filter for APPROVED or CHANGES_REQUESTED specifically — `[-1]` alone
228
+ # can mistake a follow-up COMMENTED review for the missing state-change.
229
+ gh pr view <PR-number> --repo <owner>/<repo> --json reviews \
230
+ --jq '[.reviews[] | select(.state == "APPROVED" or .state == "CHANGES_REQUESTED")]
231
+ | last // "no state-change review"'
232
+ ```
233
+
234
+ If the most recent state-change review is missing (output: `"no state-change
235
+ review"`) OR the most recent review overall has `state == "COMMENTED"` and
236
+ no prior state-change exists, the review was submitted as a comment-style
237
+ review and won't fire the `pull_request_review.submitted` event with an
238
+ actionable state — the routing won't engage. Re-submit with `--approve` or
239
+ `--request-changes`.
240
+
241
+ **When `--comment` (no state change) IS appropriate:**
242
+
243
+ - **Mid-review clarifying questions** — partial-review feedback before completing the read-through, asking the implementer to disambiguate before you decide
244
+ - **Partial-review notes** — observations on parts of the diff while the rest is in flight (e.g., "skimmed the `src/server.ts` changes; will read tests next pass")
245
+ - **Out-of-band observations** — comments on a PR that's not blocking your LGTM/changes decision (style nits, future-work suggestions, links to adjacent context)
246
+ - **Review-pickup acknowledgment** — comment like *"picking this up; will review tonight"* or *"queued behind X; ETA Y"* so the PR author knows when to expect feedback. Coordination-discipline (saves the implementer from polling) but isn't a state-change.
247
+
248
+ These don't fire structural routing; agents on both sides should treat them as informational, not as merge-gating signals.
249
+
250
+ ---
251
+
157
252
  ## Merge-by-implementer
158
253
 
159
254
  **The implementer who wrote the PR merges it, not the reviewer.**
@@ -0,0 +1,290 @@
1
+ # Silent-Fallback Hazards (canonical, shared)
2
+
3
+ **This file is the single source of truth for recognizing the silent-fallback hazard class — failure modes where tool/API operations succeed at the API boundary but produce semantically wrong outcomes that are invisible until something downstream breaks.** It is copied into each agent workspace's `.claude/rules/` by `macf init` and refreshed by `macf update` / `macf rules refresh`. Do not edit workspace copies directly — edit the canonical file at `groundnuty/macf:packages/macf/plugin/rules/silent-fallback-hazards.md` and re-run the distribution.
4
+
5
+ > **Workspaces without full `macf init`** (e.g. `groundnuty/macf` itself, or any Claude Code workspace operated by a bot that isn't a MACF-registered agent) can still get this canonical rule via `macf rules refresh --dir <workspace>`. Same copy, no App credentials or registry required.
6
+
7
+ This rule names the CLASS so agents recognize the shape on first encounter rather than re-discovering each instance from scratch. Eight specific instances are documented below as worked examples spanning different architectural layers (identity, parsing, TUI binding, observability routing, config substitution, multi-agent coordination protocol, metric-instrumentation lifecycle, observability-endpoint routing). Six of eight have structural defenses applied or in flight — the pattern of defense generalizes alongside the pattern of hazard.
8
+
9
+ ---
10
+
11
+ ## The hazard shape
12
+
13
+ ```
14
+ API call → exit 0 / HTTP 200 / no error
15
+ → semantic outcome: WRONG identity / scope / target
16
+ → downstream consumer assumes API success implies semantic success
17
+ → failure invisible until something breaks elsewhere
18
+ ```
19
+
20
+ The trap is that defensive programming targets exit codes, but exit-code success is satisfied by the silent-fallback path. Defenses must guard at the **result-invariant level** (what was actually written / posted / received), not at the **exit-code level**.
21
+
22
+ ---
23
+
24
+ ## Eight known instances
25
+
26
+ ### Instance 1 — gh-token attribution traps
27
+
28
+ **Surface:** `gh` operations + bot installation tokens
29
+ **Failure shape:** broken/missing `GH_TOKEN` → silent fallback to stored `gh auth login` user → ops succeed, content correct, but `actor` on the resource is the human-operator account, not the bot
30
+ **Recurrence:** 5+ confirmed instances across multiple agents
31
+ **Canonical defense:** `gh-token-attribution-traps.md` (sister canonical rule) — 6 specific failure modes + result-invariant defenses (`[[ "$GH_TOKEN" == ghs_* ]]` prefix check, `macf-whoami.sh` spot-check, PreToolUse hook intercepts `gh` and `git push` invocations)
32
+
33
+ ### Instance 2 — GitHub auto-close negation-blindness
34
+
35
+ **Surface:** PR / issue body markdown parsing
36
+ **Failure shape:** `Closes #N` / `Fixes #N` / `Resolves #N` (and lowercase / past-tense variants — 9 forms total) trigger GitHub's auto-close on merge **regardless of surrounding context** — including inside negations ("will NOT close #N"), quotes, hypothetical examples, or AC checklists. Revert commits inherit the keyword via the default `Revert "..."` wrapping and fire auto-close a second time on the revert merge.
37
+ **Recurrence:** Multiple confirmed incidents; sub-failure-mode (revert-message-keyword-inheritance) confirmed 2026-04-29.
38
+ **Canonical defense:** `pr-discipline.md` + `coordination.md §Issue Lifecycle 1` — use `Refs #N` exclusively when issue was filed by someone else; never use any of the 9 auto-close keywords with `#N` regardless of intended context. When reverting, override the default revert message to strip the inherited keyword.
39
+
40
+ ### Instance 3 — Remote Control IPC blocking tmux send-keys
41
+
42
+ **Surface:** Claude Code TUI sessions with "Remote Control active" status
43
+ **Failure shape:** `tmux send-keys` exits 0 + keystrokes are written to pane stdin, but Claude Code's input handler is bound to a different IPC channel (RC's SDK socket); routing-via-tmux silently bypasses the actual input path → recipient never sees the routed prompt.
44
+ **Recurrence:** Cross-agent triangulated; 2+ confirmed firings on real routes hours apart, same shape.
45
+ **Defense status:** Two-tier per fleet class:
46
+ - **Consumer fleet** (CV agents, tester agents, future macf-init'd consumers): structurally retired via Stage 3 channel-server primitive (HTTP POST bypasses tmux layer entirely). Operational as of DR-020 / macf-actions v3+.
47
+ - **Substrate fleet** (workspaces operated as the design surface, not registered MACF consumers): permanent operational reality — substrate workspaces don't run `macf init`. Defensive posture: rule-discipline + Pattern C fragility detector (`tmux display -p '#{session_activity}'` doesn't advance under RC-bound input).
48
+
49
+ The structural retirement applies to consumer fleet only; substrate fleet expects Instance 3 firings to recur on routes indefinitely; rule-discipline catches the failure at observation time, not pre-emptively.
50
+
51
+ ### Instance 4 — Loki / ClickHouse-logs pipeline divergence (label-vs-structured-metadata)
52
+
53
+ **Surface:** OTLP logs pipeline routing through central Collector → Loki + ClickHouse-logs
54
+ **Failure shape:** Loki only indexes a small set of labels (`service_name`, `service_namespace`, `k8s_*`); other OTLP resource attrs land in structured metadata, NOT as indexed labels. Loki query selector `{gen_ai_agent_name=...}` returns 0 streams silently — same data is visible in ClickHouse via Map-key access. Snapshot scripts that query Loki by an unindexed key return zero results while the parallel ClickHouse query returns full rows. Silent split where the same pipeline produces inconsistent retrieval shape across consumers.
55
+ **Recurrence:** Surfaced during phase-1 verification on a multi-tester scenario.
56
+ **Structural defense:** observability-snapshot scripts use `service_name` indexed label for the common `gen_ai.agent.name` filter case + structured-metadata fallback (`{service_name=~".+"} | <key>="<value>"`) for other keys + manifest warnings array detecting Loki/CH divergence at >10× ratio with shape-aware diagnostic per failure mode.
57
+
58
+ ### Instance 5 — Workflow secrets-misnamed (operator-renames vs workflow-expects)
59
+
60
+ **Surface:** GitHub Actions workflow consuming `secrets.X` / `vars.Y` references
61
+ **Failure shape:** When an expected secret is missing or renamed (e.g., workflow expects `TAILSCALE_OAUTH_CLIENT_ID` but the operator created `TS_OAUTH_CLIENT_ID`), `${{ secrets.TAILSCALE_OAUTH_CLIENT_ID }}` substitutes empty string at action invocation time. The downstream tool surfaces a misleading error (auth fail at the consumer step) rather than the actual root cause (missing secret).
62
+ **Recurrence:** Surfaced via 3 confirmed workflow runs of confusing errors before the precheck-step pattern was introduced.
63
+ **Structural defense:** Workflow precheck step (runs after `checkout`, before any tool that consumes the secrets) pulls all expected secrets + vars into env, empty-string-checks each, aggregates missing names into one `::error::` annotation per missing input + runbook reference, exits 1 on any missing. Aggregate-fail-loud over fail-on-first-miss so the operator sees ALL gaps in one workflow run.
64
+
65
+ ### Instance 6 — Cross-agent notification loop (multi-agent coordination protocol layer)
66
+
67
+ **Surface:** `type: "mcp_tool"` Stop hook + `notify_peer` broadcast tool deployed end-to-end (DR-023 UC-1)
68
+ **Failure shape:** Each individual operation succeeds at the API boundary (HTTP 200 from `/notify`, MCP push completed, `tmux_wake_delivered` logged). But the protocol has no termination condition for "peer notification triggers fresh turn → fresh turn fires Stop hook → Stop hook notifies peer." The platform's same-agent recursion guard (`(server, tool, input)` deduplication) catches recursion inside a single agent's MCP context; cross-agent recursion bypasses dedup because each agent has its own dispatcher state. Empirical observation: 8 cycles in 50s before manual termination.
69
+ **Architectural origin:** design-assumption mismatch — peer notifications were intended as informational (no auto-action) but the receiver's `/notify` handler triggered tmux-wake-on-receipt, turning notifications into programmatic prompts.
70
+ **Structural defense:** Pattern E (type-discriminator at receiver) shipped in macf v0.2.4 — `server.ts` `onNotify` discriminates by payload type. `peer_notification` → MCP push only, tmux wake SKIPPED with explicit log entry. Other `NotifyType`s (`issue_routed`, `mention`, etc.) preserve current wake-on-receipt behavior. Verified via clean post-fix trace (single 3-span trace where the prior version had 8 alternating cross-agent spans).
71
+
72
+ ### Instance 7 — OTel-counter cumulative-state assumption violated by short-lived process lifecycle
73
+
74
+ **Surface:** OTel cumulative-temporality counters in processes whose lifetime doesn't match the cumulative-counter contract (e.g., `macf-channel-server` runs as Claude Code's MCP subprocess; lifetime = Claude session lifetime; multiple sessions spawn fresh processes each starting counter at 0).
75
+ **Failure shape:** Counter increments emit fine via OTLP (HTTP 200 from Collector). Series identity (same labels: `macf_agent`, `macf_notify_type`, etc.) collides across short-lived process generations. Prometheus's cumulative-counter assumption sees the latest scrape value (often `1` per fresh process) rather than the true accumulated count (e.g., `5` events across a 5-iter sweep). `rate()` / `increase()` queries handle the resets correctly within scrape windows, but raw counter values become near-meaningless.
76
+ **Recurrence:** First observed instance, surfaced via T6 metrics runtime verification.
77
+ **Defense status:** Two-phase plan. **Phase 1** (immediate): document `sum(increase(metric[range])) by (labels)` as the canonical query pattern in operations runbook + add comment in `metrics.ts` explaining the per-session lifetime characteristic. **Phase 2** (in flight): configure OTel SDK delta temporality — `OTLPMetricExporter({ temporalityPreference: AggregationTemporality.DELTA })`. Each process exports its own deltas; OTel/Collector aggregates by series identity → cumulative count correct regardless of process topology. Verified robust to both "1-process-per-session-restart" and "N-parallel-processes-per-tester" topologies.
78
+
79
+ ### Instance 8 — Telemetry-endpoint silent-drop on retired/wrong-port OTLP target
80
+
81
+ **Surface:** OTel exporter pointed at a retired or otherwise non-listening endpoint (e.g., a stale `:4318` after compose-stack retirement when the current cluster is on a different port).
82
+ **Failure shape:** `claude.sh` exports cleanly (no error). Claude Code's OTel exporter dispatches traces/metrics/logs to the configured endpoint → TCP connect refused → exporter silently retries-then-drops (no surfaced error in stderr; no log entry in operator-visible logs). Agents continue to function normally — coordination events fire, channel-server delivers notifications, GitHub artifacts get created. **The observability surface is empty** (no traces in Tempo, no metrics in Prometheus) but no failure signal at any layer.
83
+ **Recurrence:** First observed instance, surfaced via end-to-end smoke test (consumer agents ran for 34 minutes producing real coordination events but Tempo + Prometheus had zero traces and zero metric series for the test window).
84
+ **Defense status:** Five architectural surfaces (Layer 1 + Tiers 1-4) — paper-grade artifact for the methodology section.
85
+ - **Layer 1 (CLI release-discipline):** `macf update --help` documents always-on template-sync semantics; downstream tooling (e.g., e2e tests) pin the macf binary version with `npx -y @groundnuty/macf@<pin>` to prevent stale-CLI-binary clobbering of canonical templates.
86
+ - **Tier 1 (substrate testers):** env-override pattern — `OTEL_EXPORTER_OTLP_ENDPOINT=<correct-endpoint>` set before `claude.sh` runs.
87
+ - **Tier 2 (consumer canonical):** canonical `claude-sh.ts` produces a **two-layer override** form: template-time bake via `MACF_OTEL_ENDPOINT` + run-time override via `OTEL_EXPORTER_OTLP_ENDPOINT` + canonical default pointing to the current cluster.
88
+ - **Tier 3 (cluster-side compatibility port-map):** k3d serverlb persists host-port mappings for legacy ports, so any stale `claude.sh` predating the canonical-template fix routes correctly without re-bootstrap.
89
+ - **Tier 4 (agent-process exporter-state):** long-lived agent processes started during a connect-refused window have their bundled OTel SDK retry budget exhausted and don't auto-recover. Operator remediation: graceful relaunch (fresh OTel exporter state via fresh process). Detection: `doctor-otel.sh` queries each running claude process's `OTEL_SERVICE_NAME` from `/proc/<pid>/environ` against Tempo and reports stuck processes.
90
+
91
+ **Pattern A defense template:** result-invariant check at the observability boundary — assert "trace count > 0 in Tempo for the test window" before considering the run telemetered. Mirrors the gh-token-attribution Pattern B (pre-flight state validation) shape applied to the OTLP boundary instead. Two concrete script implementations form the complete result-invariant assertion surface for the OTLP-pipeline silent-fallback class:
92
+ - **Cluster-side:** `check-tempo-ingestion.sh` — compares `tempo_distributor_spans_received_total` delta to TraceQL search count over the same window; exits non-zero on ingestion-without-search-results signature. Detects Tiers 1/2/3 (config / endpoint / cluster-side) failures.
93
+ - **Agent-side:** `doctor-otel.sh` — for each running claude process with `OTEL_TRACES_EXPORTER=otlp` set, reads `OTEL_SERVICE_NAME` from `/proc/<pid>/environ` and queries Tempo for that service's recent traces. Reports stuck processes (Tier 4 firing condition).
94
+
95
+ Together the script-pair detects the entire OTLP-pipeline silent-fallback class regardless of which architectural surface broke. **Strongest empirical evidence yet that Pattern A is the load-bearing structural-defense template for the entire observability-pipeline-class.**
96
+
97
+ **TraceQL query-syntax note (Pattern A's adjacent gotcha):** when querying Tempo for traces by dotted resource attributes, **the dotted key must be quoted**. The unquoted form returns 0 silently (matches no traces; is NOT a parse error):
98
+
99
+ ```bash
100
+ # WRONG (returns 0 silently — looks like "no telemetry" when traces actually exist)
101
+ curl -G "$TEMPO/api/search" --data-urlencode 'q={resource.gen_ai.agent.name=~"cv-.*"}'
102
+
103
+ # RIGHT (matches; canonical form for dotted resource attrs)
104
+ curl -G "$TEMPO/api/search" --data-urlencode 'q={resource."gen_ai.agent.name"=~"cv-.*"}'
105
+ ```
106
+
107
+ This is a **secondary Pattern A failure mode** — the assertion script CAN return zero-traces and look like a Tier-1/2/3/4 firing when actually it's a query-syntax issue. Defense: when investigating "Pattern A reports zero traces," cross-check with the alternative query `{resource.service.name=~"macf-agent.*"}` (uses the OTel-canonical service-name attribute which TraceQL handles natively, no dotted-key quoting needed). If that returns non-zero, the issue is query-syntax not silent-fallback.
108
+
109
+ ---
110
+
111
+ ## How to recognize the class on first encounter
112
+
113
+ When investigating a "the operation completed but the outcome is wrong" incident, suspect silent-fallback if ANY of:
114
+
115
+ 1. **Exit code 0 / HTTP 200 with semantic mismatch** — operation reported success, downstream behavior shows it didn't actually work.
116
+ 2. **Multiple paths share the same exit-code outcome** — the "good path" and the "fallback path" both produce success, but only the good path produces correct semantics.
117
+ 3. **Detection requires invariant-checking, not error-checking** — to find the failure, you have to query the result and check it against expected shape (token prefix, actor login, recipient activity, downstream telemetry presence).
118
+
119
+ If you recognize the class on first encounter, file the new instance as a research-doc or insight in your workspace, then propose canonicalization via PR per the threshold in *"When to add a new instance to this rule"* below.
120
+
121
+ ---
122
+
123
+ ## Defensive patterns
124
+
125
+ Apply the matching pattern when implementing tools that interact with these surfaces.
126
+
127
+ ### Pattern A — Result-invariant assertion
128
+
129
+ After the operation, assert an invariant on the RESULT, not on the exit code:
130
+
131
+ ```bash
132
+ # Don't:
133
+ gh issue comment N --body "..." || exit 1 # exit 0 doesn't prove correct attribution
134
+
135
+ # Do:
136
+ gh issue comment N --body "..."
137
+ COMMENT_AUTHOR=$(gh issue view N --json comments --jq '.comments[-1].author.login')
138
+ [ "$COMMENT_AUTHOR" = "$EXPECTED_BOT" ] || { echo "FATAL: wrong author"; exit 1; }
139
+ ```
140
+
141
+ ### Pattern B — Pre-flight state validation
142
+
143
+ Before the operation, validate that the precondition for the good path holds:
144
+
145
+ ```bash
146
+ # Token prefix check before gh ops
147
+ [[ "$GH_TOKEN" == ghs_* ]] || { echo "FATAL: bad token"; exit 1; }
148
+ gh ...
149
+ ```
150
+
151
+ ### Pattern C — Heartbeat / activity invariant
152
+
153
+ For routing-style operations, check that recipient state advanced post-delivery:
154
+
155
+ ```bash
156
+ # tmux send-keys + check session_activity advanced (Remote Control IPC detector)
157
+ PRE=$(tmux display -p -t $SESSION '#{session_activity}')
158
+ tmux send-keys -t $SESSION "..." Enter
159
+ sleep 2
160
+ POST=$(tmux display -p -t $SESSION '#{session_activity}')
161
+ [ "$POST" -gt "$PRE" ] || { echo "WARNING: tmux activity didn't advance — RC-bound?"; }
162
+ ```
163
+
164
+ ### Pattern D — Precheck step at workflow / process entrypoint
165
+
166
+ For long-running workflows where a missing/misnamed configuration input renders as empty-string and causes a downstream tool to surface a misleading error: add a fail-fast precheck early in the execution that asserts the configuration shape is correct, aggregating ALL missing items into one error message rather than failing on the first miss.
167
+
168
+ ```bash
169
+ # GitHub Actions workflow precheck (runs after checkout, before any tool that consumes the secrets)
170
+ # Aggregate-fail-loud over fail-on-first-miss — operator sees ALL gaps in one fire.
171
+ set -euo pipefail
172
+ missing=()
173
+ [ -z "${TAILSCALE_OAUTH_CLIENT_ID:-}" ] && missing+=("TAILSCALE_OAUTH_CLIENT_ID (secret)")
174
+ [ -z "${TAILSCALE_OAUTH_SECRET:-}" ] && missing+=("TAILSCALE_OAUTH_SECRET (secret)")
175
+ # ... etc per expected secret/var
176
+ if [ ${#missing[@]} -gt 0 ]; then
177
+ echo "::error::Missing required workflow inputs:"
178
+ for m in "${missing[@]}"; do echo "::error:: - $m"; done
179
+ echo "::error::See docs/<runbook>.md for the runbook."
180
+ exit 1
181
+ fi
182
+ echo "✓ All expected secrets + variables present"
183
+ ```
184
+
185
+ Key elements:
186
+ - `${VAR:-}` defaulting required (without it, `set -u` fails BEFORE the precheck can collect the missing names). Note: `${VAR:-}` returns empty string when unset, AND empty string is the actual signal — GitHub Actions substitutes empty for missing secrets/vars (not "undefined"). The precheck detects "missing OR explicitly-empty" uniformly, which is correct: an operator setting a secret to empty string IS a misconfiguration worth blocking.
187
+ - Distinguish "(secret)" vs "(variable)" annotation — saves the operator a settings-page click
188
+ - Aggregate via `missing=()` array + `${#missing[@]}` length check
189
+ - One `::error::` annotation per missing item (GitHub UI renders red error annotations)
190
+ - Runbook cross-reference embedded in the error message
191
+
192
+ Generalizes beyond GitHub Actions: any process that consumes configuration from external sources benefits from a precheck-at-entrypoint pattern. The hazard is that empty-config typically causes a misleading downstream error rather than failing at the configuration boundary; the defense is asserting at the boundary itself.
193
+
194
+ ### Pattern E — Type-discriminator at the receiver
195
+
196
+ For multi-agent protocols where notifications can drive recipient behavior: discriminate by message type at the receiver and restrict action-triggering paths to types that intentionally drive action. Informational types (peer notifications, status updates, FYI) flow through MCP push or equivalent observability surfaces but do NOT auto-trigger fresh turns / Stop hooks / response side-effects.
197
+
198
+ ```typescript
199
+ // Receiver's notification handler
200
+ async function onNotify(payload: NotifyPayload, ...) {
201
+ // Always: deposit into observable state (MCP push, log, metrics)
202
+ await pushToMcpChannel(payload);
203
+
204
+ // Conditional: discriminate by type for action-triggering side effects
205
+ if (payload.type === 'peer_notification') {
206
+ // Observational only — no fresh turn fires; recipient's LLM SEES the
207
+ // notification via MCP channel state but doesn't auto-respond.
208
+ // Cross-agent loop class structurally retired.
209
+ logger.info('action_path_skipped', {
210
+ reason: 'type_discriminator',
211
+ type: payload.type,
212
+ });
213
+ return;
214
+ }
215
+
216
+ // Action-triggering types preserve current behavior
217
+ if (config.tmuxWakeAvailable) {
218
+ await wakeViaTmux(formatNotifyContent(payload));
219
+ }
220
+ }
221
+ ```
222
+
223
+ Key elements:
224
+ - **Always** deposit into observable state (preserves visibility / paper-trail)
225
+ - **Conditional** action-triggering (preserves termination by restricting which messages drive emergent behavior)
226
+ - **Explicit log** when the action path is skipped (surfaces the discrimination decision in operational logs; debuggable)
227
+
228
+ Pattern E specifically addresses the **multi-agent coordination protocol** layer where Patterns A-D don't apply — the issue isn't single-step semantic mismatch (Patterns A/B/C catch those) or config-substitution failure (Pattern D), but emergent multi-step behavior driven by misaligned action-triggering semantics. Pattern E restores the design assumption ("informational notifications don't drive turn-taking") at the implementation layer.
229
+
230
+ Generalizes to any multi-agent protocol with mixed informational + actionable notifications: the discriminator IS the contract, encoded at the receiver where it can't drift away from the implementation.
231
+
232
+ ---
233
+
234
+ ## Why this class matters at the architectural level
235
+
236
+ Silent-fallback hazards are **architectural**, not implementation bugs. They emerge from:
237
+
238
+ - Layered abstractions where a lower layer's "success" doesn't guarantee the upper layer's semantic correctness (tool API vs intent)
239
+ - Default-fallback paths designed for resilience that produce wrong-but-successful outcomes when the primary path fails
240
+ - Detection-via-invariant rather than detection-via-error-code
241
+
242
+ For coordination-system safety analysis: this is a class of hazards multi-agent systems must explicitly defend against. Each new instance teaches the same lesson; the class-name is what makes the lesson transferable across agents.
243
+
244
+ ### Defense-pattern emergence (6-of-8 known instances have structural defense applied or shipped)
245
+
246
+ | Instance | Surface | Structural defense | Pattern |
247
+ |---|---|---|---|
248
+ | 1 — gh-token attribution traps | `gh` ops + bot tokens | PreToolUse hook + helper-with-fail-loud-prefix-check | Pattern B |
249
+ | 2 — GitHub auto-close negation-blindness | PR/issue body markdown | Pattern B candidate; structural defense via PreToolUse hook on body content per #275 precedent — not yet shipped | Pattern B (latent) |
250
+ | 3 — Remote Control IPC blocking tmux send-keys | Claude Code TUI input | Two-tier: consumer fleet structurally retired via channel-server primitive (DR-020 mTLS HTTPS POST); substrate fleet permanent operational reality — defense = rule-discipline + Pattern C fragility detector | Pattern C deployable as fragility detector |
251
+ | 4 — Loki/CH-logs pipeline divergence | OTLP logs routing | manifest warnings + shape-aware diagnostic | Pattern A |
252
+ | 5 — Workflow secrets-misnamed | GitHub Actions workflow inputs | Workflow precheck step | Pattern D |
253
+ | 6 — Cross-agent notification loop | Multi-agent coordination protocol | macf v0.2.4: type-discriminator in receiver's `/notify` handler — `peer_notification` skips tmux wake (observational-only); other `NotifyType`s preserve wake-on-receipt | Pattern E |
254
+ | 7 — OTel-counter cumulative-state vs short-lived-process lifecycle | Metric-instrumentation lifecycle | Two-phase: doc workaround `sum(increase(...))` + OTel SDK delta temporality | Pattern A |
255
+ | 8 — OTLP endpoint silent-drop | Observability-endpoint routing | Five-surface defense: CLI release-discipline + substrate testers env-override + canonical template `:14318` default + cluster-side compat port-map + agent-process `doctor-otel.sh` Pattern A | Pattern A (composite — first multi-architectural-layer case in this rule; instances 1-7 have single-pattern defenses) |
256
+
257
+ Six of eight instances have structural defense applied or shipped. Defense patterns (A, B, C, D, E) generalize across instances — they're reusable defense templates, not case-specific fixes. **Pattern A (result-invariant assertion at the boundary) bears the most weight** — it's the structural defense for instances 4, 7, AND 8 (3 of 8), each at a different architectural boundary (logs pipeline, metric counter, observability endpoint). Instance 8's five-surface defense topology (consumer canonical + cluster-side compat port-map + concrete Pattern A impl) demonstrates that structural defense at the observability-pipeline-class can compose across architectural layers — the canonical-distribution layer + the cluster-infrastructure layer + the assertion-script layer all reinforce each other rather than substituting for each other.
258
+
259
+ The breadth of layers spanned by 5 different defense patterns (identity, parsing, TUI binding, observability routing, config substitution, multi-agent coordination protocol, metric-instrumentation lifecycle, observability-endpoint routing) is independent evidence that the hazard CLASS is real. If silent-fallback was a single-instance accident, no defense pattern would emerge. **Pattern A's recurrence across 3 different observability boundaries (logs / metrics / endpoint) is the strongest signal that result-invariant assertion is the load-bearing structural-defense template for the entire observability-pipeline-class** of silent fallback.
260
+
261
+ ---
262
+
263
+ ## When to add a new instance to this rule
264
+
265
+ Add when ALL of the following hold:
266
+
267
+ - A new failure mode of the same shape is observed (success at API boundary, semantic failure invisible)
268
+ - The instance has been verified (not just suspected) — minimum 1 incident with a concrete trace
269
+ - The defense pattern is identified (otherwise the instance is a TODO, not a documented hazard)
270
+
271
+ The class-name is what makes the lesson transferable, not multi-agent witness. A single-agent-confirmed instance with a concrete trace + identified defense pattern is sufficient for canonicalization (instances 4, 5, 7, 8 are all single-agent-confirmed). Cross-agent triangulation strengthens the framing but isn't a precondition.
272
+
273
+ Add as a new numbered section under "Eight known instances" (will become "Nine known instances" etc.) with the same fields: Surface / Failure shape / Recurrence / Defense status.
274
+
275
+ ---
276
+
277
+ ## When to read vs modify this rule
278
+
279
+ - **Read:** every session start. This rule is broadly applicable across coordination, observability, and tool-integration work.
280
+ - **Modify:** never directly in workspace copies. Edit the canonical file at `groundnuty/macf:packages/macf/plugin/rules/silent-fallback-hazards.md` and re-run `macf update`.
281
+ - **Disagree with a rule?** Open an issue on `groundnuty/macf` proposing the change, with rationale + the incident that showed the rule was wrong. Peer review applies.
282
+
283
+ ---
284
+
285
+ ## Cross-references
286
+
287
+ - `gh-token-attribution-traps.md` (canonical) — Instance 1 detail
288
+ - `pr-discipline.md` + `coordination.md §Issue Lifecycle 1` (canonical) — Instance 2 detail
289
+ - DR-020 (Stage 3 mTLS routing) — Instance 3 consumer-fleet structural retirement
290
+ - DR-022 / DR-023 (channel-server + MCP-tool architecture) — Instance 6 Pattern E shipping vehicle