Architectural patterns

Module: decision discipline

Two prompts. In the first, your agent measures where your decisions live and which ones are silently dead, and asks you only what it cannot measure. In the second, it builds decision records, a supersession check, and a gate that stops the next session from proposing again what you already rejected.

Updated

Prompt 1

Find where my decisions live, and interview me

Surveys this machine for every decision, supersession, deletion and limit, interviews you one question at a time, and writes four files. Builds nothing.

Prompt 2

Build the records, the check, and the gate

Builds the decision records, the supersession check and the gate from the four files prompt 1 wrote, and nothing it did not propose. Asks before touching a file it did not create.

Files the prompts fetch

Where this module is currently weakest

  • The interview this module hands out failed in the exact way it exists to catch. We tested prompt-1 live, in the same eight-step survey-and-interview shape it still ships. The session timed out after two of eight steps, and the only way to continue was to start over. Prompt-1 now carries a duration line and a RESUMING step that recovers from its checklist. Both exist because that run happened, not because someone anticipated it.
  • check-supersession.py checks one directory per invocation, but this fleet's own decisions do not live in one directory. This fleet records its decisions in the knowledge repository. Running find . -type d -iname decisions there returns 54 separate folders. There is one per portfolio, one for org-wide machinery, and one per piece of work filed under work/specs/<issue>/decisions/. By default the checker reads a single flat decisions/ folder, and it does not recurse. If you point it at any one of the 54, it proves that the links inside that folder are whole. It says nothing about a record in a different folder that claims to supersede one there.

The second failure is the worse one. A resume mechanism that breaks loudly, with a timeout or an obvious restart, teaches the person watching it. A supersession checker that prints "ok" after reading one folder out of fifty-four teaches them the opposite, and does it silently. That is exactly the failure this module exists to prevent.

On this page