@debonet/idd
v0.1.35
Published
Interrogation-driven development: the questions page and its command
Readme
Interrogation-Driven Development (IDD)
Purpose / Why
Interrogation-Driven Development (IDD) is a framework for progressive software development. As an agent works through a specification, it records asynchronous questions for the engineer when it reaches an ambiguity or a decision boundary. The engineer answers through the project's questionnaire; those answers become recorded decisions that guide the implementation.
IDD exists because decisions asked in a terminal or chat are easy to miss, repeat, or lose between sessions. A shared question list and recorded answers keep the agent and engineer aligned while the work advances one decision at a time.
Horizontal logo · Square logo · Icon
TL;DR
- Every decision a coding session needs from the human is added to the project's shared question list and presented through the hosted IDD questionnaire. Agent-host input prompts are not used for project questions.
- Each code branch has its own
idd-<branch>branch in the same GitHub repository. Questionnaire files stay out of code commits. - Any repository reader can view questions; submitting an answer requires repository write access. The browser commits answers directly to GitHub.
- Agents can run
idd waitto watch all active unanswered questions, including questions added while it runs. It polls the IDD branch periodically and also wakes on GitHub push events when configured; each newly accepted answer batch is returned for agents to claim and handle. - A project adopts IDD with one line in its
AGENTS.md; every new session then reads the package'sINSTRUCTIONS.mdand acts on pending answers first. - The rules for writing questions and reading answers were earned in AIOS, one observed mistake at a time; they live here once, for every project.
- IDD is a ConcordSTC project: its rules are marked statements rooted in the human's own words, and its code is tested against them.
Adopt IDD
If a user says “let's use interrogation.dev” or otherwise asks to adopt IDD,
that is approval to set it up; the agent should proceed without asking again.
Install the package in the project with
npm install --save-dev @debonet/idd --cache ./tmp/npm-cache, then
paste this line into the project's AGENTS.md:
This project uses IDD. Before other work, read the installed package's instructions at the path printed by `node -p "require.resolve('@debonet/idd/INSTRUCTIONS.md')"`. If IDD is not installed, run `npm install --save-dev @debonet/idd --cache ./tmp/npm-cache` first.The path is resolved from the project's npm installation, so the instruction
does not depend on where npm placed the package. The package's
INSTRUCTIONS.md explains branch setup and the session
workflow. The agent initializes and pushes the matching idd-<branch> data
branch, checks whether the IDD GitHub App can access the repository, and
provides the hosted questionnaire link. If it cannot install the app itself,
it gives the user the direct installation link
and continues the setup it can complete. This request adopts IDD only; it does
not authorize ConcordSTC setup.
Solution (what?)
IDD has two parts: the agent-side npm package and the hosted questionnaire at
https://interrogation.dev. The idd command manages question data, prints
a direct viewer link, counts question states, and polls the matching remote
IDD branch for answers. Its package includes the agent instructions and a Git
merge hook; it does not include or run the hosted web application. An adopting project installs the tools with
npm install --save-dev @debonet/idd --cache ./tmp/npm-cache; the model reads the installed instructions using
node -p "require.resolve('@debonet/idd/INSTRUCTIONS.md')".
Questionnaire, answer, status and history files live on the idd-<branch>
branch in the same repository as the code. Agents edit them from a separate
Git worktree, so an unfinished implementation never enters an IDD commit.
The hosted viewer lets the human answer from any device, and the agent can
wait for that committed answer with idd wait.
IDD also includes an optional hosted viewer for GitHub projects. It runs on
Cloud Run, discovers questionnaire branches across repositories available to
the signed-in user, and commits answers from the browser directly to GitHub.
It does not store repository data or user tokens. It stores only ChatGPT MCP
event subscription metadata in Firestore. ChatGPT Work chats can subscribe to
the global answer-change event; each event contains no repository or answer
data and asks the chat to inspect its current project. See
docs/hosted-viewer.md for GitHub App setup and
deployment instructions.
Method (how?)
An agent publishes each question to the hosted IDD questionnaire; it does not
ask the same question through a host-owned prompt. The browser commits the
answer to GitHub. An agent waiting with idd wait receives a prompt event
when the GitHub push webhook is configured, then fetches the answer and
queues it as pending. Branch polling covers environments without push
delivery. ChatGPT Work chats can receive the same webhook-triggered change
through MCP Events while idle. Claude.ai currently uses an active idd wait
call. A session lists pending answers at its start and acts on them
before the task it was started for.
The core workflow is harness-independent: the npm package supplies the data
format, branch commands and agent instructions. The hosted viewer runs as a
separate Cloud Run service at interrogation.dev. Tool-specific guidance
describes how each agent publishes a question and listens for its answer.
Each rule is a guidance line in specs/guidance/, rooted in the human's quoted words or marked as an architect's decision for him to ratify, and cites the observations in observations.md that it rests on. The page's behaviour and the command's are specified in specs/questions-page.md, specs/project-files.md and specs/idd-page.md, and tested against those statements. How a project adopts IDD is in specs/adoption.md; how a project with an existing page moves over, keeping its address and every saved answer, is in docs/existing-page-migration.md.
