Skip to content

Product direction: the architecture contract for agent-written code #106

Open

Description

@0xfauzi

Summary

systemap keeps the people who own a system in charge of its architecture while agents write the code. Agents do the work. People hold the intent and make the decisions.

Read this issue first if you are new to the project. The linked issues are the parts.

The people

Person What they need
The owner (tech lead, architect) Know when an agent changes a boundary, and approve or refuse it in normal PR review
The reviewer Know quickly what a PR does to the system
The developer who directs agents Keep a correct mental model of a system that agents write
The new team member Learn the system fast

The three parts of the product

  • The contract: the boundaries (rules, invariants, permitted flows), each with a reason. The agent writes it. A change to it appears separately in PR review.
  • The map: a description of the code. The agent builds it and keeps it current.

People do no map work. They take part only in normal PR review.

  • The evidence: digests, citations, and reviews. Each claim shows its level: established from facts, examined by an agent, or unknown. Unknown is never a pass.

Rules for the product

  1. Attention is the scarcest resource. For anything that a person sees, precision is more important than recall.
  2. The agent writes each rule with a plain-language reason. systemap checks the part that the facts can show, and says which part it cannot check.
  3. A decision by a person stays a decision until the facts behind its reason change.
  4. Keep the mental model of the team current, not only the CI result.
  5. Trust must match the evidence. Do not say "verified" for a claim that an agent examined.
  6. A CI block gives the rule, its reason, and the usual correct change.
  7. The agent builds and proposes. The person decides only in PR review.

How we know that it works

  • Interruptions for each owner each week, and the share that were worth it.
  • The time for a reviewer to state the architectural effect of a PR, and whether the reviewer finds a planted break.
  • Developer comprehension of the current architecture after weeks of agent-written changes.
  • The share of contract approvals done in less than 10 seconds (a warning sign).
  • Breaks caught compared with an agent alone and with an import linter.
  • Teams that did not build systemap still use it after 60 days.

Parts

Not in this direction

  • Proof of what the program does when it operates.
  • A required model provider. Jev and OpenAI stay optional.
  • Routine questions to people.
  • Diagram features that do not help the people above.

Uncertainty

This direction is a hypothesis. The planted-task comparison is the first test. If an import linter with an agent catches the same breaks, the value must come from review and comprehension, and this plan must change.

Which issue to pick

Each issue has a priority label. Pick the lowest number first.

Moonshots (label moonshot, after the P0 results)

Activity

  1. added
    product-directionPart of the product direction: the architecture contract for agent-written code
    on Oct 13, 2026
  2. pinned this issue on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    product-directionPart of the product direction: the architecture contract for agent-written code

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions