Repository navigation
Description
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:
- Purpose and scope: the agentic jobs of the roadmap pipeline, the review and the other
devops aiagent runs. - Principles: rules before a model, one purpose for each job, evidence first, replaceable tools behind standard interfaces.
- 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.
- The current state, measured from the result lines in Loki for the last 7 days, with the query and the date.
- 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.
- The rules that agents and jobs follow, each as a link to the document that owns it where one exists.
- 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.mdexists 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 checkanduv run devops ci --check --only lint,format,docs,openspec,domainpass.
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).
Activity
dan-petty commentedon Nov 13, 2026
Both organize agent rules into the documents that own them, but #5421 restructures AGENTS.md while the candidate creates a new normative spec document.dan-petty commentedon Nov 13, 2026
Scope change: owner directions of 2026-11-13
The owner gave three directions for the project specs on 2026-11-13:
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:
docs/guidelines/agentic-jobs.md, with the method parts ofdocs/roadmap/job-success.md. It holds no measured number, no read date, no issue number and no path of the environment. The guideline testtests/invariants/test_guidelines.py(from the amendment of PR docs(k8s): add the Kubernetes guideline and the capacity decisions #5492) checks this.docs/ROADMAP_WORKFLOW.md: the document that applies each AW rule, and the product overrides of the default targets.devops roadmap eval grades, the devops-cli Telemetry dashboard,docs/CONFIGURATION.mdand 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.