Skip to content

docs(ai): add the agentic jobs guideline and the job decisions - #5489

Merged
dan-petty merged 4 commits into
mainfrom
docs/5443-add-the-agentic-workflow-spec
Nov 14, 2026
Merged

dan-petty merged 4 commits into
mainfrom
docs/5443-add-the-agentic-workflow-spec

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Move the agentic workflow spec to docs/guidelines/agentic-jobs.md, a guideline that applies with no change to each managed project. It keeps the default targets, the job model, the measure of a job, the tuning loop, the model, context, tool and eval methods, and the AW rules. P10 and AW-J7 make each job asynchronous and event-driven.

The method parts of docs/roadmap/job-success.md move into the guideline. That page keeps the result line contract and the grade table.

"Agentic jobs in devops-cli" in docs/ROADMAP_WORKFLOW.md holds the decisions of devops-cli and links gap tracker #5543. No document holds a measured value or a gap row.

The change adds the line of the guideline to the guideline index of #5567. The guideline test of #5567 checks the guideline.

Closes #5443

Change: openspec/changes/archive/2026-11-13-5443-add-the-agentic-workflow-spec/

@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Local checks on the pushed head (rebased on origin/main 3f0d0f0):

  • uv run devops docs check: pass.
  • uv run devops ci --check --only lint,format,docs,openspec,domain: all 6 rows pass.
  • uv run devops ci test tests/docs tests/invariants/test_agents_md.py: 159 passed.
  • uv run --group docs devops docs site build --strict: no issues, 112 pages.
  • uv run devops openspec archive 5443-add-the-agentic-workflow-spec: every spec and change validates.

Review fixes in this revision: the counters use the 27-hour window of the lines (stage 2.22 USD, about 0.44 USD for each staged plan); the spend gap uses the user_agent split of the gateway (#4724); Table 4-4 shows the ceilings; the tuning loop has a trial size and the SLOs of #4709 as outer bounds; rows owned by other documents hold no copy; the term Branch run replaces "candidate" for parallel runs; rule IDs start with AW-; each gap has an open issue (new: #5472, #5474, #5476, #5479, #5481).

@dan-petty

Copy link
Copy Markdown
Owner Author

Amendment: the spec split (design sections 5.2 and 9)

The owner directions of 2026-11-13 replace the measured baseline of this pull request (comment on #5443). The branch is rebased on main, and the OpenSpec archive commit is last.

What changed

Design item Change
5.2 step 2: the guideline docs/AGENTIC_WORKFLOWS.md moved to docs/guidelines/agentic-jobs.md. It keeps only the guideline rows of section 2.3: scope, principles, default targets, the job model, the measure of a job, the tuning loop and the trial, the model, context, tool, telemetry and eval methods, the AW rules and the sources. Each rule that only pointed to its owner has one line of rule text.
5.2 step 2: job-success.md The method parts moved to the guideline: why a log line, p, the Wilson interval, the efficiency, the 80% rule and the LogQL form of the ratio. The page keeps the result line, the attempt and intended result table, the grade table and its bullets (#5534 generates them). The hard-coded queries became links to the dashboard JSON and to devops roadmap eval grades --dry-run. The release history (#4684) and the owner date went. The heading "The 80% rule" stays as a link, because the dashboard panels name the page.
5.2 step 3: decisions New section "Agentic jobs in devops-cli" in docs/ROADMAP_WORKFLOW.md: the programs that give each value, the targets that devops-cli adds, the owner map (the document or code that applies each rule) and a link to tracker #5543.
5.2 step 4 and decision 2 The baseline (Tables 4-1 to 4-5) and the queries are removed. No measured number, count or read date stays in git.
Decision 4 No gap table. The 36 gap rows are in tracker #5543.
5.2 step 5: stale text #5474 became tracker #5482 (P3, AW-J1). The branch runs point to #5533 (CONTEXT.md and the owner map), per pr-fixes.md. The #5440 ceilings, L146, L265, L279 and G13 went: the ceilings are settings with bounds, and the guideline keeps only "a limit that is a constant becomes a setting first". The plan head count went with Table 4-5. The owner map says that devops roadmap explain --trace prints only the trace of the implement job.
5.2 step 6: links The links to docs/AGENTIC_WORKFLOWS.md in job-success.md (2), ROADMAP_WORKFLOW.md (1), CONTEXT.md (Branch run) and the docstring of job_result.py point at the guideline. The lines of .nav.yml and docs/index.md for the old file are removed.
5.2 step 7 The OpenSpec change (proposal, design, tasks) has the new scope.
User request: async and event-driven jobs New principle P10, section "Asynchronous and event-driven jobs" and rule AW-J7. The owner map points to ADR 0021 section 2. The Kubernetes guideline of #5492 holds the Job part (R8).

Choices to know

Checks

Check Result
uv run devops ci --check --only lint,format,domain,docs,openspec Pass
uv run --group docs devops docs site build --strict Pass (114 pages)
uv run devops ci test tests/invariants tests/docs 994 passed
Guideline test on the first draft Fails: 92 issue numbers, 17 dates, 4 environment tree paths, 7 dating words, 3 row ids
Pre-commit and pre-push hooks Pass

Add docs/AGENTIC_WORKFLOWS.md: the target of the agentic jobs, the
baseline of 2026-11-13 from the result lines and the counters, the job
model, the tuning loop with its trials, the model, context, tool,
safety, telemetry and evaluation rules (prefix AW-), and a gap table
that maps 36 gaps to open issues.

job-success.md and the docstring of job_result.py now say that a job
under 80% success gets larger limits, and only a job that holds 80%
gets smaller limits for cost. CONTEXT.md gets the term Branch run for
the parallel runs of one job. ROADMAP_WORKFLOW.md measures the live
plans of an acceptable stage score in 28 days.
The owner directions of 2026-11-13 replace the measured baseline: the
guideline applies with no change to each managed project, programs give
the metrics, and no agent updates a measured value by hand.

- Move the spec to docs/guidelines/agentic-jobs.md. Keep the scope,
  the principles, the default targets, the job model, the measure of a
  job, the tuning loop, the model, context, tool, telemetry and eval
  methods, and the AW rules, each with one line of rule text.
- Move the method parts of docs/roadmap/job-success.md into it: the
  ratio p, the Wilson interval, the efficiency, the 80% rule and the
  LogQL form of the ratio. The page keeps the result line contract and
  the grade table.
- Add P10 and AW-J7: an event or a schedule starts each job, no caller
  waits, a reconcile pass finds a lost event, and a unit name from the
  input stops a second run.
- Remove the baseline tables, the queries and the gap table. Add
  "Agentic jobs in devops-cli" to docs/ROADMAP_WORKFLOW.md with the
  owner map and a link to gap tracker #5543.
- Rename the safety rules AW-S1 to AW-S4 to AW-G1 to AW-G4, because the
  guideline test refuses a state row id.
- Add the guideline index, the Guidelines tab and the guideline test,
  the same files as PR #5492.
@dan-petty
dan-petty merged commit 9de03b4 into main Nov 14, 2026
24 checks passed
@dan-petty
dan-petty deleted the docs/5443-add-the-agentic-workflow-spec branch November 14, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(ai): add the agentic workflow spec

1 participant