Skip to content

docs(adr): record the owner decisions on what agents may do #4787

Done

Description

@dan-petty

Problem or Motivation

Five standing owner decisions are not in a tracked file. Only agent memory holds them:

  1. Agents apply manifests, restart workloads and exercise workloads in the lab cluster (2026-10-03).
  2. Agents decide open design questions with the best-practice answer and report the decision (2026-10-22).
  3. Agents run the project commands themselves (2026-10-23).
  4. Agents stay out of releases (2026-10-23).
  5. Bot-filed work proceeds with an agentic judge and no person (2026-11-05).

git grep finds no tracked file for each of the five. Thus refine sent #4018, #3903 and #3745 to a person for a decision that the owner made before. The question resolver of #4780 cannot cite a decision that no tracked file holds.

Proposed Solution & Architectural Design

  • Add ADR 0024, "Owner decisions on what agents may do". It holds the five decisions, the date of each decision and the limit of each decision.
  • The ADR names the "Only a person" paragraph of AGENTS.md as the list of owner-only acts. It does not copy that list.
  • Give each decision a stable anchor, so that a job can cite the ADR path and the anchor.
  • In the same pull request, correct the agent text of k8s/README.md. That text gives agents only a read-only identity, which does not agree with decision 1.
  • 0024 is the next free ADR number on main today. If another pull request takes it first, use the next free number.

Target Subsystem

Documentation and ADRs (docs/adr/), with k8s/README.md.

Existing Tool Considered

The MADR form of the current ADRs. No code. Cost to build: about 40,000 tokens and 1 hour.

Acceptance Criteria

  • The ADR holds the five decisions, each with its date and its limit.
  • git grep -n finds each decision in a tracked file.
  • k8s/README.md agrees with the ADR.
  • The documentation checks of uv run devops ci pass.

Dependencies

None.

Source: #4780

Alternatives check of 2026-11-14: not-applicable.
Class: docs, no search.
Tool: none found.

Proposed design

Problem statement

Five owner decisions about what agents may do are scattered across AGENTS.md, CONTRIBUTING.md, ADR 0013 and archived OpenSpec changes. No single stable tracked record holds all five with their dates and limits, so refinement and the question resolver of #4780 cannot cite one place. This change records the five decisions in a new ADR and corrects k8s/README.md to agree with the lab-cluster permission.

Acceptance criteria

Requirement: ADR records five decisions

The repository SHALL add a new ADR under docs/adr/ that states the five owner decisions, and each decision SHALL name its date and its limit.

Scenario: The new ADR holds five dated and limited decisions

  • WHEN A reader opens the new ADR under docs/adr/.
  • THEN The ADR lists the five decisions, and each decision names its date and its limit.

Requirement: Owner-only acts are referenced

The new ADR SHALL name the 'Only a person' paragraph of AGENTS.md as the list of owner-only acts, and it SHALL NOT copy that list.

Scenario: The ADR points to the owner-only list

  • WHEN A reader reads the limits in the new ADR.
  • THEN The ADR names the 'Only a person' paragraph of AGENTS.md and does not restate its list of owner-only acts.

Requirement: Stable decision anchors

Each of the five decisions SHALL have a ### Decision N heading under ## Decision Outcome, so that its anchor is #decision-N and a job can cite it with the ADR path.

Scenario: Each anchor resolves

  • WHEN A job cites the new ADR path with #decision-1 through #decision-5.
  • THEN Each citation resolves to its decision in the ADR.

Requirement: k8s README states decision 1

The 'Agent sessions' section of k8s/README.md SHALL state that agents may apply manifests, restart workloads and exercise workloads in the lab cluster, and SHALL describe k8s/agents/ as one read-only identity rather than the limit of agent access.

Scenario: Agent sessions text agrees with decision 1

  • WHEN A reader opens the 'Agent sessions' section of k8s/README.md.
  • THEN The section states the three permitted actions in the lab cluster and does not give a read-only identity as the limit of agent access.

Requirement: Each decision is searchable

Each of the five decisions SHALL appear in the new ADR under docs/adr/ so that git grep -n finds it there.

Scenario: Git grep finds each decision

  • WHEN A contributor runs git grep -n with a unique phrase from each decision.
  • THEN Each search returns at least one line in the new ADR under docs/adr/.

Requirement: ADR number is free

The new ADR SHALL use the lowest ADR number that no other file under docs/adr/ uses; 0026 is that number at this commit.

Scenario: The ADR number is unique

  • WHEN A contributor lists the files in docs/adr/.
  • THEN Exactly one ADR file uses the number of the new ADR, and that number is the lowest number that no other file uses.

Requirement: MADR front matter and body hash

The new ADR SHALL carry the MADR 4 front matter of docs/adr/README.md, with status: accepted, decision-makers: [owner], issue: 4787, and a body-hash that matches the body.

Scenario: The ADR invariant test passes

  • WHEN A contributor runs uv run devops ci test tests/invariants/test_adr_records.py.
  • THEN The test passes with no problem in the new ADR's front matter or body hash.

Requirement: ADR index lists the new record

docs/adr/README.md SHALL list the new ADR in the index that uv run devops docs generate writes.

Scenario: The ADR index is current

  • WHEN A contributor runs uv run devops docs check.
  • THEN The index of docs/adr/README.md lists the new ADR and the check passes.

Requirement: Documentation checks pass

The change SHALL pass the documentation checks of uv run devops ci.

Scenario: Documentation checks pass

  • WHEN A contributor runs uv run devops ci on the change.
  • THEN The documentation checks pass with no error.

Existing Tool Considered

MADR 4 (adr/madr, fetched 2026-11-15) is the open, maintained template that covers the record form, and adr-tools (fetched 2026-11-15) is the open CLI that covers numbering and supersession. Neither holds this repository's front matter keys (decision-makers, issue, body-hash), its generated index or its devops docs check gate, so the change uses the repository's MADR form and checks and adds no dependency. No code is built; the record is written by hand. Cost to write: about 40,000 tokens and 1 hour.

Key questions

  • Which ADR form should the new record use?: Use the MADR 4 form and the template sections of docs/adr/README.md. (best practice) [sources: docs/adr/README.md:3, docs/adr/README.md:97]
    • Chosen: MADR 4 form of the current ADRs. It is the repository's established format, and tests/invariants/test_adr_records.py and the alternatives check read it.
    • Rejected: A new ADR format. It adds a second format that the invariant test and the alternatives check do not read.
  • Should the ADR copy the owner-only acts from AGENTS.md?: No. The ADR names the 'Only a person' paragraph of AGENTS.md and does not copy the list. (best practice) [sources: AGENTS.md:21, docs/adr/README.md:73]
    • Chosen: Name the paragraph. It keeps one list and prevents the two lists from disagreeing.
    • Rejected: Copy the list. Two copies can disagree after a later change, and the copy spends the record's word budget.
  • How should each decision get a stable anchor?: Put each decision under a ### Decision 1 through ### Decision 5 heading with no other text, under ## Decision Outcome. The site's slugify rule gives #decision-1 through #decision-5, and the strict docs build checks each anchor. (best practice) [sources: zensical.toml:69, zensical.toml:70, zensical.toml:78, docs/SDLC.md:248, docs/adr/README.md:122]
    • Chosen: Heading ### Decision N only. The generated slug is decision-N and stays stable while the heading stays; the strict build validates it.
    • Rejected: Explicit HTML anchor. It adds a second anchor mechanism that the site's generated heading ids and anchor check do not need.
    • Rejected: Full heading text slug. The slug changes when the decision title text changes.
  • What should k8s/README.md say about agent access?: State that agents may apply manifests, restart workloads and exercise workloads in the lab cluster, and describe k8s/agents/ as one read-only identity rather than the limit of agent access. (best practice) [sources: k8s/README.md:778, k8s/README.md:782, openspec/changes/archive/2026-11-12-5133-allow-make-kubectl-ansible-and-safe/proposal.md:5]
    • Chosen: State decision 1 and keep the read-only identity as one option. It corrects the limit and keeps the existing manifest useful for sessions that need read-only access.
    • Rejected: Remove the read-only identity. The k8s/agents/ manifests still serve sessions that need read-only access.
    • Rejected: Keep the read-only identity as the limit. It contradicts decision 1 and the lab-cluster access that the owner granted.
  • Which ADR number should the new record use?: 0026. ADR 0024 and ADR 0025 already exist, so 0026 is the lowest free number at this commit; a later change that takes 0026 makes 0027 the next free number. [sources: docs/adr/0024-the-project-owns-its-design-tokens-in-the-dtcg-format-and-style-dictionary-builds-them.md, docs/adr/0025-generated-documents-stay-in-git-and-the-project-brain-cites-them.md, docs/adr/README.md:75]
  • Do the five decisions have no tracked source?: No. AGENTS.md:21 states decisions 3 and 4 in part, CONTRIBUTING.md:26 states decision 2, ADR 0013 records decision 4 with its date, archived change fix(roadmap): the jobs trust the items that the Service App opens #3502 records decision 5 with its date, and archived change chore(agents): allow make, kubectl, ansible and safe git commands #5133 records the lab-cluster access of decision 1. The gap is a single stable record with all five dates and limits, not the absence of every mention. [sources: AGENTS.md:21, CONTRIBUTING.md:26, docs/adr/0013-releases-use-release-please-as-it-ships-and-agents-stay-out.md:14, openspec/changes/archive/2026-11-05-3502-jobs-trust-service-app-items/proposal.md:7, openspec/changes/archive/2026-11-12-5133-allow-make-kubectl-ansible-and-safe/proposal.md:5]
  • What limit does each of the five decisions carry?: 1. The lab cluster only; secrets and hardware stay with the owner. 2. The best-practice answer, and only an owner-only act waits for a person. 3. Every project command except a release step. 4. No release step: an agent never merges the release pull request and never sets release-now. 5. Bot-filed work goes on only when the agentic judge approves the issue and the proposal, and no text from an outside reply reaches a Ready item with no person. [sources: AGENTS.md:21, CONTRIBUTING.md:26, docs/adr/0013-releases-use-release-please-as-it-ships-and-agents-stay-out.md:19, docs/adr/0013-releases-use-release-please-as-it-ships-and-agents-stay-out.md:20, openspec/changes/archive/2026-11-05-3502-jobs-trust-service-app-items/proposal.md:7, openspec/changes/archive/2026-11-12-5133-allow-make-kubectl-ansible-and-safe/proposal.md:5]
  • Which open tool or template covers the record, and what does it lack?: Use the repository's MADR 4 form with devops docs generate and devops docs check. MADR 4 (fetched 2026-11-15) covers the record form, and adr-tools (fetched 2026-11-15) covers numbering and supersession, but neither holds this repository's front matter keys, body hash, generated index or docs gate. (best practice) [sources: https://adr.github.io/madr/, https://github.com/npryce/adr-tools, docs/adr/README.md:3]
    • Chosen: Repository MADR 4 form with the project checks. It is the format that the invariant test and the alternatives check read, and the project checks already hold its front matter, hash and index.
    • Rejected: adr-tools. It writes Nygard-style records and has no project front matter, body hash, generated index or docs check.
    • Rejected: A new ADR tool. It adds a dependency that no check reads, and the repository's own checks already enforce the record rules.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/docs
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/docs. The docs prefix of the title gives the type.
    • Scope: none. The title has the scope adr, and .github/labels.yml declares no scope/adr label. Add the label to the file to give the scope to this item.
    • Priority: P2-Medium. It removes repeated friction where agents are sent to a person for decisions already made, but it is not a blocking defect.
    • Value: Medium. It makes five standing decisions citable and corrects a conflicting README, reducing wasted round-trips.
    • Effort: Low. The body states about 40,000 tokens and 1 hour: one ADR file and one README edit.
    • Related: docs(adr): evaluate OpenSpec as the spec and change-proposal layer for agents and task files #1753, which asks for a different change. Both are docs(adr) items in the same documentation area, but 1753 evaluates OpenSpec while this records existing owner decisions.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable

    Class: docs. The check makes no search and no model call for an item of this class.

    Tool: none found

    Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.

  6. added
    status/ready
    and removed
    status/new
    on Nov 15, 2026
  7. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at e5dfddb (see proposed design in issue body).

  8. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 25, 2026
  9. removed
    status/in-review
    owner/agent
    on Nov 25, 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

    effort/lowpriority/p2-mediumsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions