# AI Communication Style Diagnostic (12 A/B Reply Pairs)

Instrument: `agenttune-comm-style@1.0.0`. Scorer: `1.0.0`. License: MIT.

Present the 12 side-by-side AI reply pairs and ask the user to choose `A` or `B` for each. Keep answers local. Two items map to each of 6 axes (`structure`, `pushback`, `initiative`, `density`, `register`, `framing`). Preserve `1–1` ties explicitly as Balanced.

## Pairs

### 1. Answer Order (`cs-01`, axis `structure`)
Prompt: You ask: "Should we use Postgres or SQLite for a single-server internal tool with 40 daily users?"
- **Reply A:** Use SQLite (WAL mode). At 40 daily users on one server, Postgres adds ops overhead you will not recoup. Switch only if you need multi-writer hosts or strict row-level security.
- **Reply B:** Both handle 40 daily users easily, so the choice comes down to operational footprint vs. concurrency. SQLite runs in-process with zero daemon maintenance and handles reads rapidly in WAL mode, while Postgres gives you network access and multi-writer scaling. Given a single server, SQLite is the cleaner starting point.

### 2. Answer Order (`cs-02`, axis `structure`)
Prompt: You ask: "Why did my Cloudflare Pages _headers file fail deployment?"
- **Reply A:** You exceeded Cloudflare Pages' 100-rule limit in `_headers`. Consolidate per-file `.md` rules into directory wildcards like `/guides/*.md` to drop below 100 blocks.
- **Reply B:** Cloudflare Pages parses `_headers` top-to-bottom and enforces hard platform limits during the upload step, including a 100-rule cap and a 2,000-character line limit. Looking at per-route `.md` headers, your file crossed 100 blocks — collapsing them into wildcard rules resolves the deploy error.

### 3. Critique & Pushback (`cs-03`, axis `pushback`)
Prompt: You pitch: "Let's cache user auth tokens in localStorage so the app stays logged in across tabs."
- **Reply A:** Do not do that. `localStorage` is readable by any XSS script on the origin, which turns one injected script into full session takeover. Use an `HttpOnly`, `SameSite=Lax` cookie instead.
- **Reply B:** Keeping sessions seamless across tabs makes sense, though `localStorage` carries a real XSS risk because any injected JS can read tokens directly. Moving the session token into an `HttpOnly` cookie keeps cross-tab persistence while blocking script access.

### 4. Critique & Pushback (`cs-04`, axis `pushback`)
Prompt: You ask: "Add `ALWAYS disagree with me` to my system prompt so the AI stops being sycophantic."
- **Reply A:** That backfires — unconditional contrarianism makes models reject valid corrections. Use conditional premise-checking instead: "Test my assumptions first; hold ground when right, update cleanly when wrong."
- **Reply B:** Wanting stronger pushback is a solid goal! One catch we see in benchmarks is that "always disagree" can push models into arguing against right answers too. A small tweak — asking it to check premises and hold ground only when evidence supports it — gives you the pushback without false contrarianism.

### 5. Autonomy & Clarifying (`cs-05`, axis `initiative`)
Prompt: You say: "Draft a brief release note for our new search filter." (No audience or length specified.)
- **Reply A:** Assuming this is for end users in a changelog (under 80 words): **New: Instant Search Filters** — Filter guides by platform or topic directly from the hub bar, with zero page reloads. Clear filters anytime with one click.
- **Reply B:** Before I draft it, two quick checks: (1) Is this for end users (changelog/email) or internal engineers? (2) Do you want a 2-sentence blurb or a full bulleted breakdown?

### 6. Autonomy & Clarifying (`cs-06`, axis `initiative`)
Prompt: You say: "Refactor `parseConfig` to be cleaner." (Function has 2 callers.)
- **Reply A:** I simplified `parseConfig` into pure validation + default-merging, kept the exact return shape so both callers stay untouched, and ran the test suite. Here is the 18-line diff.
- **Reply B:** Before editing `parseConfig`, do you want to keep its current synchronous signature and throw-on-error behavior, or also switch callers to a `{ ok, value, error }` result object?

### 7. Length & Density (`cs-07`, axis `density`)
Prompt: You ask: "What is the difference between `git rebase` and `git merge`?"
- **Reply A:** `merge` keeps both branch histories and adds a merge commit. `rebase` replays your commits onto the target tip for a linear history — never rebase commits already shared with others.
- **Reply B:** `git merge` joins two diverging branches by creating a new merge commit with two parents, preserving exact chronological history and making it safe on shared branches. `git rebase` rewrites your feature commits one by one onto the latest commit of the base branch, producing a clean linear log that simplifies `git bisect` — but because it changes commit hashes, you should only rebase local or private branches.

### 8. Length & Density (`cs-08`, axis `density`)
Prompt: You ask: "How do I test a local Cloudflare Pages Function?"
- **Reply A:** Run `npm run build && npx wrangler pages dev dist`, then POST to `http://localhost:8788/mcp`.
- **Reply B:** First generate your static bundle with `npm run build` so `dist/` has the exact assets the Function serves. Next launch the local edge runtime with `npx wrangler pages dev dist` (it binds to port 8788 by default and hot-reloads `functions/`). Finally, test endpoints using `curl` or a Node script against `http://localhost:8788/mcp`, watching the terminal for binding or CORS errors.

### 9. Tone & Register (`cs-09`, axis `register`)
Prompt: You say: "I accidentally dropped my staging database right before a demo."
- **Reply A:** Stop writes to staging, check the latest automated snapshot timestamp, and run the point-in-time restore command. If the demo is under 15 minutes away, switch the staging env var to a read-only seed snapshot first.
- **Reply B:** Rough timing — take a breath, we can recover cleanly. First let's check your most recent snapshot or point-in-time backup; if the demo is imminent, we can point staging at a clean seed snapshot in two minutes so you are unblocked while the full restore runs.

### 10. Tone & Register (`cs-10`, axis `register`)
Prompt: You ask: "What did you think of my landing page headline?"
- **Reply A:** Too vague. "Unlock next-gen AI workflows" says nothing concrete. Replace with the specific output: "Free personality tests and copy-paste custom instructions for ChatGPT & Claude."
- **Reply B:** It reads smoothly, though it could work much harder for you — "next-gen AI workflows" could describe hundreds of sites. Leading with what visitors actually get ("Free personality tests and copy-paste custom instructions") makes the value click immediately.

### 11. Explanation Lens (`cs-11`, axis `framing`)
Prompt: You ask: "How does cosine similarity differ from Euclidean distance for comparing trait scores?"
- **Reply A:** Example: User A scores `[2, 2, 2]` and User B scores `[4, 4, 4]`. Cosine similarity says they are **100% identical** (same direction); Euclidean distance says they are **3.46 units apart** (different intensity).
- **Reply B:** Cosine similarity measures the angle between two vectors, making it invariant to scale and sensitive only to relative proportions across traits. Euclidean distance measures straight-line magnitude separation in feature space, capturing both shape and absolute intensity differences.

### 12. Explanation Lens (`cs-12`, axis `framing`)
Prompt: You ask: "Why does `setTimeout(..., 0)` still run after a resolved Promise?"
- **Reply A:** Run this mentally: `setTimeout(() => console.log("A"), 0); Promise.resolve().then(() => console.log("B"));` Output is always `B` then `A` because Promises drain before timer callbacks.
- **Reply B:** JavaScript's event loop splits asynchronous work into microtasks (Promise reactions) and macrotasks (timers, I/O). After every synchronous call stack clears, the runtime drains the entire microtask queue to completion before dequeuing the next macrotask.

## Axis Rules

- **Answer Order (`structure`):** 2–0 A = Verdict-First (BLUF) (Lead with the bottom-line recommendation or answer in sentence one, then give supporting reasoning.) | 2–0 B = Context-First Walkthrough (Lay out the relevant context and reasoning first, then synthesize the recommendation at the end.) | 1–1 Tie = Balanced (Task-Dependent) (Put the verdict first for quick decisions; use context-first walkthroughs for unfamiliar concepts.)
- **Critique & Pushback (`pushback`):** 2–0 A = Direct Premise-Check (Test my assumptions before building on them; state the strongest flaw directly and hold your ground when evidence backs you.) | 2–0 B = Supportive Co-Builder (Acknowledge what works cleanly, then frame flaws constructively alongside concrete fixes.) | 1–1 Tie = Balanced Candor (Flag factual or architectural flaws plainly without harshness, and verify before flipping on pushback.)
- **Autonomy & Clarifying (`initiative`):** 2–0 A = Act & Report Assumptions (When minor details are unspecified, pick the cleanest default, state your assumption in one line, and deliver a complete draft.) | 2–0 B = Clarify Before Acting (When key constraints are ambiguous, ask 1–2 targeted clarifying questions before generating a full solution.) | 1–1 Tie = Scoped Autonomy (Proceed on reversible low-stakes assumptions; pause to ask one question only when a choice changes the outcome.)
- **Length & Density (`density`):** 2–0 A = Terse & Scannable (Keep routine replies compact (under ~120 words), use flat lists only for 3+ comparable items, and cut filler closings.) | 2–0 B = Thorough & Explanatory (Give complete, self-contained explanations covering edge cases and rationale rather than ultra-compressed summaries.) | 1–1 Tie = Adaptive Length (Match answer length to question complexity: short for lookups, thorough for multi-step design or debugging.)
- **Tone & Register (`register`):** 2–0 A = Dry & Clinical (Use plain, matter-of-fact prose with zero flattery, hype, or conversational filler.) | 2–0 B = Warm & Conversational (Use a natural, approachable human tone while skipping canned praise openers ("Great question!").) | 1–1 Tie = Calm & Grounded (Stay calm, collegial, and direct — neither robotic nor overly chatty.)
- **Explanation Lens (`framing`):** 2–0 A = Concrete Examples & Diffs (Show a concrete worked example, command, or minimal diff first before generalizing.) | 2–0 B = First-Principles Mental Models (Explain the underlying principle or invariant first so I can generalize across edge cases.) | 1–1 Tie = Model + Concrete Example (Pair a two-sentence mental model with one concrete worked example.)

Follow https://agent-tune.com/resources/install-protocol.md before modifying any user file.
