Skip to content

docs(ai): add the agentic workflow spec #5443

Closed
4 of 4 issues completed
Closed

Description

@dan-petty

Problem or Motivation

The owner asked on 2026-11-13 for three project specs: SRE service implementation, Kubernetes performance tuning, and agentic workflow implementation and tuning. This item is the third spec.

The rules of the agentic jobs are in many places today: the job model of the pipeline split in docs/roadmap/, the success bands and the verdict loop in docs/SELF_IMPROVEMENT.md, the telemetry and privacy rules in docs/TELEMETRY.md, the sandbox and command gate in SECURITY.md and the ADRs, and owner decisions that are only in issues (double the limits of a job under 80 % success, traverse configuration values until a job works, then tune down for cost; soft caps with progress-aware extensions; nested timeouts). No document states the target with numbers, the current state as measured, the tuning loop as one method, and the gaps with their issues. So an agent that builds or tunes a job reads many documents and does not know which limit to change first, what "good" is, or which gap already has an issue.

Proposed Solution

Add docs/AGENTIC_WORKFLOWS.md, a normative spec in the form of docs/DESIGN.md:

  1. Purpose and scope: the agentic jobs of the roadmap pipeline, the review and the other devops ai agent runs.
  2. Principles: rules before a model, one purpose for each job, evidence first, replaceable tools behind standard interfaces.
  3. The target with numbers: success band of each job, tokens and USD for each result, seconds for each result, the SLO of the roadmap round.
  4. The current state, measured from the result lines in Loki for the last 7 days, with the query and the date.
  5. The method: the job model (one purpose, one due predicate, one result line, modes, units against sweep steps, candidates and the judge), the measurement (result lines, bands, funnel, Wilson intervals, golden sets, replays, live proof), the tuning loop, model choice, context engineering, tool interfaces, safety, telemetry and cost, and the evaluation process.
  6. The rules that agents and jobs follow, each as a link to the document that owns it where one exists.
  7. A gap table: each gap with an existing issue or "new issue needed".

Register the document in the docs inventory and its test, the docs site and docs/index.md, and link it from the documents that route to it.

Acceptance Criteria

  • docs/AGENTIC_WORKFLOWS.md exists with the seven parts above, in ASD-STE100, with no host name, node name, address, domain or local path.
  • Each measured number gives its query and its date.
  • Each rule that another document owns is a link, not a copy.
  • uv run devops docs check and uv run devops ci --check --only lint,format,docs,openspec,domain pass.

Existing Tool Considered

The spec is a document, not code. It cites the primary sources: the Google SRE book and workbook (SLOs, error budgets, alerting on SLOs), the Anthropic guides on agents, tool design and context engineering, the pydantic-ai documentation (agents, evals, usage limits), and the Argo Workflows documentation (retry strategy, timeouts). Cost to write (estimate): 0.6 M tokens and 2 hours. Keep: one update for each changed job rule or measurement. Fix: about 0.05 M tokens for each wrong rule.

Related

#5440 (attempt limits as settings), #5164 (job grades for each agentic workflow), #5427 (replaceable tools), docs/DESIGN.md (the form of the spec).

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added
    source/agent
    type/docs
    scope/ai
    status/new
    value/medium
    effort/medium
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    on Nov 13, 2026
  4. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  5. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    Scope change: owner directions of 2026-11-13

    The owner gave three directions for the project specs on 2026-11-13:

    1. Split the details of the current environment from the general guidelines for this project and all managed projects.
    2. Some metrics come from programmatic analysis.
    3. No agent updates each detail of the metric results and of the service layout by hand.

    These directions replace the measured baseline of this item: part 4 of the proposed solution (the current state from the result lines in Loki, with the query and the date) and the criterion "Each measured number gives its query and its date".

    The new scope of PR #5489:

    • The guideline goes to docs/guidelines/agentic-jobs.md, with the method parts of docs/roadmap/job-success.md. It holds no measured number, no read date, no issue number and no path of the environment. The guideline test tests/invariants/test_guidelines.py (from the amendment of PR docs(k8s): add the Kubernetes guideline and the capacity decisions #5492) checks this.
    • The product decisions go to a new section "Agentic jobs in devops-cli" of docs/ROADMAP_WORKFLOW.md: the document that applies each AW rule, and the product overrides of the default targets.
    • Part 7 (the gap table) goes to GitHub (owner decision of 2026-11-13): one tracker issue for the gaps of the agentic jobs, with each gap as a sub-issue. The documents link the tracker and hold no gap row.
    • The values come from programs: devops roadmap eval grades, the devops-cli Telemetry dashboard, docs/CONFIGURATION.md and the project review. feat(docs): generate the job result contract and the setting bounds #5534 generates the job result contract and the bounds of each setting.
    • Live values and dated snapshots stay out of git. The published project review report (feat(roadmap): publish the project review and link it on GitHub #4733) holds them.
  6. removed
    status/in-review
    owner/agent
    on Nov 14, 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/mediumpriority/p2-mediumscope/aisource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions