A spike without a falsifiable hypothesis produces opinions, not evidence. A spike can miss its decision even when the implementation is sound. The brief is too loose. "Check if the agent helps with refactors" cannot fail. A statement that cannot fail cannot inform a decision.
This draft is about the brief, not the tool. It applies to engineers who must answer one question under a deadline. The output is a short document plus a small evidence log.
The one-hypothesis rule
Write exactly one claim and one rejection condition. Everything else is out of scope.
- Bad: "Evaluate whether AI code review is useful."
- Better: "On a fixed set of four seeded examples, the review tool flags at least three designated defects and produces at most one extra finding."
- Rejection: "Reject this pilot configuration if it flags fewer than three of the four known defects or produces more than one extra finding. An incomplete run is inconclusive."
Two signals to watch.
- Separate unrelated objectives. A quality threshold can still have a guardrail, such as a false-positive budget.
- If you cannot state the number that would prove you wrong, keep rewriting.
Pre-commit the threshold
Set the threshold before you run anything. Record it with a timestamp in the brief. Moving the bar after seeing results converts a spike into advocacy.
Name the evidence type first
Each hypothesis needs one evidence type. Pick before the run.
- Counting: pass/fail per attempt, error classes, retry counts.
- Artifact: diffs, logs, patch receipts, command transcripts.
- Timing: wall-clock per task, queue wait, review latency.
- Human: blind ratings from a reviewer who does not know the source.
Mixing all four in 90 minutes yields a thin slice of each.
The brief, in six fields
# Illustrative template only. Not a runnable artifact.
HYPOTHESIS: one sentence, measurable, scoped to a repo and task type
REJECT_IF: the numeric or observational condition that ends the idea
SCOPE: task ids, file paths, branch, tool version, config hash
EVIDENCE: artifact type + where it is stored + who reads it
TIMEBOX: start time, stop time, hard stop action
DECISION: ship / iterate once / drop, chosen from the evidence alone
The SCOPE field carries more weight than it looks. Pin the tool version, model name, and configuration. Results from one configuration do not transfer to another. If the spike touches a self-hosted workbench or gateway, note that self-hosting does not guarantee that no external provider sees the data. Record what leaves the boundary.
Evidence collection, sketched
Keep the log dumb. One line per attempt, append-only, no prose.
# Illustrative pseudocode. Not executed. Adapt to your own runner.
log = open_new_run_log()
for task in scope_tasks: # fixed list, written in the brief
start = clock()
outcome = run(task) # pass | fail | error
append_one_record_jsonl(log, {
"task": task.id,
"outcome": outcome.status,
"error_class": outcome.error_class or None,
"seconds": clock() - start,
"diff_lines": count_changed_lines(outcome.patch),
"artifact": store(outcome.patch), # path or hash, not a copy
})
close_log_and_record_digest(log) # identify the observed final file
Two properties matter more than the code. Appending each result as it arrives protects earlier rows from an interrupted run. An ordinary local file is still editable. Record the final digest in an independent review record, and verify artifact digests when reading them.
Steps
Prerequisites: a task list you did not pick after seeing results, a reversible branch, and 60–90 minutes.
- Write HYPOTHESIS and REJECT_IF in one sitting. Stop if either takes more than ten minutes.
- Fix the task list at three to five items. Write it into the brief.
- Pin versions and config. Hash the config file and paste the hash.
- Run the clock. Log every attempt, including the boring ones.
- At the stop time, close the log file. Do not add attempts.
- Compare the aggregate against REJECT_IF. Write one sentence.
- Store the brief, the log, and the artifacts together.
Expected observation: a short log where every row maps to a stored artifact. If a row has no artifact, it is a memory, not evidence.
Test
A reviewer should be able to audit the spike without talking to you. Use this check.
- Can they restate the rejection condition in one sentence? If not, the brief is unclear.
- Does every claim in your summary point to a row and an artifact?
- Is the threshold timestamp earlier than the first log row?
- Are versions and config hash present in the brief?
- Would a different engineer, given only the brief, collect comparable rows?
If two or more answers are no, the spike produced a story. Treat the result as a hypothesis for the next round.
Failure modes
- Proxy drift. You count lines changed when the hypothesis was about review time. Recheck the mapping before running.
- Sample of one. A single successful attempt is an anecdote. State the sample size in the brief.
- Silent scope growth. New tasks appear mid-run. Log them as out-of-scope, do not score them.
- Post-hoc thresholds. The number moves to match the data. Timestamps expose this.
- Untracked configuration. Tool updates mid-spike make rows incomparable. Pin and record.
- Overclaimed generality. One repo, one task type, one config. Say so in the conclusion.
When this does not apply
This format fits reversible, decidable questions. It fits poorly elsewhere.
- Live incidents, where the goal is restoration, not learning.
- Open-ended discovery, where you cannot name the observable yet. Do a shorter exploratory pass first, then write the brief.
- Decisions dominated by cost, licensing, or policy. Those need procurement evidence, not a code spike.
- Teams without artifact storage. Fix storage first, or the log becomes unverifiable.
A spike earns its time by making a decision cheaper than guessing. One hypothesis and one evidence plan do that. More hypotheses usually just postpone the decision.
This article was created with AI assistance. The numbers are a proposed pilot decision rule, not observed performance.
Top comments (0)