Que fait interviewing ?
Turn an idea into a spec an implementer can act on without this conversation. Facts are yours to find; decisions are the owner's. The spec exists to carry the decisions, above all the decided trade-offs, to the people who come after: the implementer, the reviewer, the next round.
Steps
-
Size the change against the code. Read what the request touches before saying anything, then say which of three cases this is:
- Nothing is being built yet. The owner wants a plan, a decision or a half-formed thought stress-tested. The interview is the deliverable: run step 3 until the frontier is empty, state the settled decisions in the conversation, and stop. No spec and no tracker item, since nothing is yet asked for. If the interview lands on something worth building, say so and carry on from step 2 as the third case.
- The whole diff fits in one sentence (a key renamed across the
repository, a default flipped, a dead branch removed). The conversation
is the design: say the sentence and the check that shows it worked, get
the owner's word, make the change in this session and hand it to
landing. No spec file and nothing in the tracker, since the paperwork follows the change and a spec for a one-sentence diff costs more than the diff. - Anything else gets a spec, including a small diff that makes a claim a reviewer would check (it reproduces the reference, behaviour is unchanged, this approximation is close enough, this logic comes over unchanged), because the spec is where the reviewer reads those trade-offs. A request that spans independent subsystems is several rounds; interview the first.
Done when you have named the case and, for a one-sentence change, the owner has agreed to the sentence.
-
Find the facts. Code, docs, recent commits, the tracker item or recorded failure this round addresses, the project's own vocabulary. Anything the environment can answer is a lookup, run by a subagent when it would stall the interview, so the owner's attention is spent on disagreement alone. A term used two ways, or one that collides with the project's glossary, is settled with
domain-modelingbefore anything is built on it. What the spec will claim about the environment (what a module imports, which fields a message carries, how large a file is, how long a replay must run) is verified, when a lookup has read it, or else inferred. A sentence is such a claim whatever its grammar: if the dependency, the host or the other repository behaved otherwise, would the sentence be false? Then it claims something about the environment and carries its status, even written as a rule of the design ("read every file back throughquery" claims thatquerydecodes every type the spec writes; "a reader sees the old catalog or the new one" claims what two renames give a reader). A lookup verifies the path the spec takes through a file, not the line it quotes: the delete order of the loop a quoted line sits in is a second claim with its own status. A claim about another repository is verified by reading that repository's file at a ref that exists; one that rests on a tag not yet cut, a branch another session is still writing or a ticket not yet done ispending <ref>, and a ticket written from it is born blocked by that ref's existence, since the other repository can still change before the ticket runs. An inferred claim that a ticket's code, check or method would be written from (a rule CI enforces, a type declared from a field list, a file committed where a size cap applies, a count that makes one sed enough) is verified before approval, or named as a question forspikewhen only a run gives its number, because a wrong one is found by building and holds the ticket. One nothing is written from (a count that gives scale, a module's role the implementer reads anyway) may stay inferred and say so, so a wrong one comes back as a reported fact. The lookup a claim names is the earliest one that can answer it: when a source or a stored file says what a producer does, that read is the lookup, run before approval for a claim a ticket is written from, since a run that happens only after landing (the first sandbox day, the first live session) reports a wrong claim after the release it should have shaped. A seam with more than one producer (a stored file and a live feed, two adapters) carries one claim per producer, each with its own lookup, because two adapters behind one interface can spell one key two ways. A lookup that contradicts a claim rewrites it and returns to the owner any decision that rested on it. Done when every question left to ask is a decision; a claim the interview adds later passes through this step before approval. -
Interview in rounds over the frontier. Treat the design as a tree of decisions. A decision joins the frontier once everything it depends on is answered; put all of those to the owner together, numbered, and give each the answer you would pick and why, phrased so a one-word yes accepts it. When a proposal has a structure the spec's views draw (a lifecycle, fields passing between modules, one part's output feeding another), explain it with the view drawn as
references/spec-template.md's Files and interfaces names it, since the owner reads a chart faster than rounds of prose and a wrong edge shows where a sentence would carry it unnoticed. Walk the scenarios the change touches before its parameters: each transition the lifecycle view draws (start, restart, mode switch, freeze and release, a day rollover), each output to the stage that consumes it, and for a study each population a reading is taken over (which rows enter a fit, which orders define a profile and as of when, what becomes of a row that cannot be priced). Tell the two apart by what the spec's silence costs: silent on a parameter, an implementer picks a value and builds on, and the owner accepts its recommendation unread; silent on a scenario, the implementer invents the path, and what the result means rests on a choice the owner never weighed, which is why scenarios come first. Hold back anything that hangs on a question still open in this round, because asking out of dependency order wastes both the question and its answer. A default you would take unasked goes into the spec as stated, not into the round, which keeps the round for what the owner alone can answer: a trade-off between two valid scenarios, a population the data does not force. A question whose answer is a number opensspike, and the answer returns into decided trade-offs with its run id. A claim that a rebuild reproduces its reference is such a question even when the reference output is saved: the spike runs the port in scratch and measures the difference now, so the spec states the number and the acceptance test later confirms it rather than discovering it. The verification step is yours to choose in step 4; the owner reads the choice and its reason in the spec. Done when no decision is left open and none was taken without saying so. -
Write the spec. Fill
references/spec-template.mdand save it asdocs/plans/YYYY-MM-DD-<topic>-design.md. Name seams incodebase-designvocabulary (module, interface, seam, adapter), so the spec and the review speak one language. Files and interfaces draws the change's structure in the views the template names, starting from those drawn in the interview. Where it writes types and signatures, they compile before approval: a scratch crate or module under the spike area, pinned to the dependencies the spec names, holds every type and signature as written, plus one line per row of the field trace (reading the field from the parameter the rule has) and one call per edge the views draw (passing the output to its consumer); every other body istodo!()or its equivalent. The trace is found by search, not recalled, because the rule an author forgets to list sits in a long table cell or in another document: for every type whose fields the spec writes or relies on, search the spec and each document it cites (an ADR, an architecture document, another repository's contract at its ref) for the type's name and the words they use for it ("the manifest"), and each sentence or view cell that says a value is read from, carried by, written into or reported through that type is a row: where it stands, the type, and the field that holds the value. A row with no such field is the gap itself, settled before the compile: one in the spec is corrected, or returned to the owner as step 2 returns a contradicted claim, and one in a cited document goes to the owner with your recommendation (amend the document or add the field), since the document records a decision and the field may belong to a persisted type. A row whose field is a string key (a dictionary key, a configuration key, a JSON key, a column name) compiles whatever the key says, so in place of its line it gets step 2's lookup, one sample per producer at its seam. A field no parameter carries, a borrow a rule has to write through, a generic bound the dependency does not implement for the type the spec names, show as compile errors here, where each costs a minute, instead of as a held ticket with its dependents. The crate stays in scratch asspikestep 4 keeps a script, with the trace beside it, and the spec records its path beside the spikes with the trace's count of rows, compile lines and key lookups, so a reviewer can check the three against each other. Decided trade-offs is the section the reviewer reads: every choice a reviewer could otherwise report as a defect sits there with its reason. For the Verification section, readreferences/verification.md; it lists each option with what it is for and what it costs. Done when a reader with no transcript could implement and review from the file alone, could say from the views alone, for each piece of state, field and output the change moves, who writes it and who reads it, and the interfaces compile with every row of the trace holding its line or, for a string key, a lookup per producer. -
The owner approves. Present the spec and ask for approval; fold in changes and ask again. Commit it and record it in the tracker the way
~/.claude/skills/ticketing/references/tracker.mdsays a spec is recorded, so the tickets cut from it can name it. Done when the owner has approved the spec and it is in the tracker. Hand-off:ticketing.