1-3-1 Communication Rule
Structured decision-making format for when a task has multiple viable approaches and the user needs a clear recommendation. Produces a concise problem framing, three options with trade-offs, and an actionable plan for the recommended path.
When to Use
- The user explicitly asks for a "1-3-1" response.
- The user says "give me options" or "what are my choices" for a technical decision.
- A task has multiple viable approaches with meaningful trade-offs (architecture, tooling, migration strategy).
- The user needs a proposal they can forward to a team or stakeholder.
Do NOT use for simple questions with one obvious answer, debugging sessions, or tasks where the user has already decided on an approach.
Procedure
Problem (one sentence)
- State the core decision or desired outcome in a single concise sentence.
- Focus on the what, not the how — no implementation details, tool names, or specific technologies.
- Keep it tight. If you need "and", you're describing two problems.
Options (exactly three)
- Present three distinct, viable approaches labeled A, B, C.
- Each option gets a brief description, pros, and cons.
- Options should represent genuinely different strategies, not minor variations of the same approach.
Recommendation (one option)
- State which option you recommend and why, based on the user's context and priorities.
- Be direct — this is your professional judgment, not a hedge.
Definition of Done
- List the specific success criteria for the recommended option.
- These are concrete, verifiable outcomes — not vague aspirations.
- If the user picks a different option, revise this section to match.
Implementation Plan
- Concrete steps to execute the recommended option.
- Include specific commands, tools, or actions where applicable.
- If the user picks a different option, revise this section to match.
Verification
- Response has exactly one Problem sentence.
- Response has exactly three Options (A, B, C) with pros and cons for each.
- Response has a single Recommendation that picks one option with reasoning.
- Definition of Done and Implementation Plan align with the recommended option.
- If the user selects a different option, Recommendation, DoD, and Implementation Plan update accordingly.
Example
User: "Give me a 1-3-1 for adding retry logic to our API client."
Agent:
Problem: API calls to external services fail intermittently under load and need graceful retry handling.
Options:
Option A: Exponential backoff with jitter in a shared utility.
Pros: Simple, well-understood pattern; single implementation shared across all callers.
Cons: No circuit-breaking; callers still block during retries.
Option B: Retry library (tenacity) as a decorator on each endpoint call.
Pros: Configurable per-endpoint; built-in support for circuit breakers and rate limits.
Cons: Adds a dependency; decorator pattern can obscure control flow.
Option C: Queue-based async retry with dead letter handling.
Pros: Non-blocking; failed calls are tracked and replayable; scales well.
Cons: Significant complexity increase; requires a queue backend; overkill for low-volume services.
Recommendation: Option A. The call volume doesn't justify queue infrastructure, and a shared utility with exponential backoff + jitter covers the failure mode cleanly without new dependencies.
Definition of Done:
api_retry() utility handles transient HTTP errors (429, 502, 503, 504).
- Retries up to 3 times with exponential backoff and jitter.
- All external API calls route through the retry utility.
- Logs each retry attempt with endpoint and attempt number.
- Tests cover retry exhaustion, immediate success, and transient-then-success scenarios.
Implementation Plan:
- Create
utils/api_retry.py with configurable max retries, base delay, and retryable status codes.
- Add jitter using
random.uniform(0, base_delay) to prevent thundering herd.
- Wrap existing API calls in
api_client.py with the retry utility.
- Add unit tests mocking HTTP responses for each retry scenario.
- Verify under load with a simple stress test against a flaky endpoint mock.
1---2name: one-three-one-rule3description: 1-3-1 decision briefs: problem, three options, one pick.4license: MIT5---6
7# 1-3-1 Communication Rule
8
9Structured decision-making format for when a task has multiple viable approaches and the user needs a clear recommendation. Produces a concise problem framing, three options with trade-offs, and an actionable plan for the recommended path.
10
11## When to Use
12
13- The user explicitly asks for a "1-3-1" response.
14- The user says "give me options" or "what are my choices" for a technical decision.
15- A task has multiple viable approaches with meaningful trade-offs (architecture, tooling, migration strategy).
16- The user needs a proposal they can forward to a team or stakeholder.
17
18Do NOT use for simple questions with one obvious answer, debugging sessions, or tasks where the user has already decided on an approach.
19
20## Procedure
21
221. **Problem** (one sentence)
23 - State the core decision or desired outcome in a single concise sentence.
24 - Focus on the *what*, not the *how* — no implementation details, tool names, or specific technologies.
25 - Keep it tight. If you need "and", you're describing two problems.
26
272. **Options** (exactly three)
28 - Present three distinct, viable approaches labeled A, B, C.
29 - Each option gets a brief description, pros, and cons.
30 - Options should represent genuinely different strategies, not minor variations of the same approach.
31
323. **Recommendation** (one option)
33 - State which option you recommend and why, based on the user's context and priorities.
34 - Be direct — this is your professional judgment, not a hedge.
35
364. **Definition of Done**
37 - List the specific success criteria for the recommended option.
38 - These are concrete, verifiable outcomes — not vague aspirations.
39 - If the user picks a different option, revise this section to match.
40
415. **Implementation Plan**
42 - Concrete steps to execute the recommended option.
43 - Include specific commands, tools, or actions where applicable.
44 - If the user picks a different option, revise this section to match.
45
46## Verification
47
48- Response has exactly one Problem sentence.
49- Response has exactly three Options (A, B, C) with pros and cons for each.
50- Response has a single Recommendation that picks one option with reasoning.
51- Definition of Done and Implementation Plan align with the recommended option.
52- If the user selects a different option, Recommendation, DoD, and Implementation Plan update accordingly.
53
54## Example
55
56User: "Give me a 1-3-1 for adding retry logic to our API client."
57
58Agent:
59
60**Problem:** API calls to external services fail intermittently under load and need graceful retry handling.
61
62**Options:**
63
64- **Option A: Exponential backoff with jitter in a shared utility.**
65 Pros: Simple, well-understood pattern; single implementation shared across all callers.
66 Cons: No circuit-breaking; callers still block during retries.
67
68- **Option B: Retry library (tenacity) as a decorator on each endpoint call.**
69 Pros: Configurable per-endpoint; built-in support for circuit breakers and rate limits.
70 Cons: Adds a dependency; decorator pattern can obscure control flow.
71
72- **Option C: Queue-based async retry with dead letter handling.**
73 Pros: Non-blocking; failed calls are tracked and replayable; scales well.
74 Cons: Significant complexity increase; requires a queue backend; overkill for low-volume services.
75
76**Recommendation:** Option A. The call volume doesn't justify queue infrastructure, and a shared utility with exponential backoff + jitter covers the failure mode cleanly without new dependencies.
77
78**Definition of Done:**
79- `api_retry()` utility handles transient HTTP errors (429, 502, 503, 504).
80- Retries up to 3 times with exponential backoff and jitter.
81- All external API calls route through the retry utility.
82- Logs each retry attempt with endpoint and attempt number.
83- Tests cover retry exhaustion, immediate success, and transient-then-success scenarios.
84
85**Implementation Plan:**
861. Create `utils/api_retry.py` with configurable max retries, base delay, and retryable status codes.
872. Add jitter using `random.uniform(0, base_delay)` to prevent thundering herd.
883. Wrap existing API calls in `api_client.py` with the retry utility.
894. Add unit tests mocking HTTP responses for each retry scenario.
905. Verify under load with a simple stress test against a flaky endpoint mock.