Skip to content

docs(ai): replies give the bottom line in the first line - #5425

Merged
dan-petty merged 3 commits into
mainfrom
docs/5419-bottom-line-first-line
Nov 13, 2026
Merged

dan-petty merged 3 commits into
mainfrom
docs/5419-bottom-line-first-line

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The style rules now ask every reply, report and model call of LLMClient to give the bottom line in the first line: what to do or not do, the real state and each gate. A gate is any hold, blocker, review, person step, merge order or deployment step that still applies. The rules refuse "done", "green" or "ready" as the start while a gate applies. A reply with many items says in the first line which to act on now and which to hold.

The old paragraph of style_ste100.md said only "Put the result and the decision first". An agent reply opened with "done and green" and put "do not merge it yet" in the middle, so a reader who acts on the first line alone can merge too early. Agents read the file through rule 9 of AGENTS.md, and with_style_request adds it to each model call of LLMClient. A new test asserts that the request holds each sentence of the rule.

Closes #5419

Change: openspec/changes/archive/2026-11-13-5419-replies-give-the-bottom-line-in/

The style rules now ask for the bottom line in the first line of a reply: what to do or not do, the real state and each gate. A gate is any hold, blocker, review, person step, merge order or deployment step that still applies. A reply does not start with "done", "green" or "ready" while a gate applies. A reply with many items says in the first line which item to act on now and which item to hold.

Agents read the rules through rule 9 of AGENTS.md, and each model call gets them through with_style_request. A new test asserts that the request holds each sentence of the rule. The snapshot of the request changed because the paragraph of the style file changed.

Refs #5419
The proposal said that a change of style_ste100.md reaches every model call. Only LLMClient adds the style request. The pydantic-ai agent runs send none, and #5424 tracks them.
The archive adds the requirement "The style rules ask for the bottom line in the first line" to the capability agent-instructions.

Refs #5419
@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

Merge when the checks pass. No hold from the review. No k8s path changed, so there is no render diff.

Checks run on the branch:

  • uv run pytest tests/ai/test_ai_client_style_request.py -k bottom_line on the base text: 4 failed (the new test, as expected).
  • uv run devops ci fail-to-pass --base origin/main: exit 0. 8 tests fail on the base (4 new rule cases, 4 snapshot cases) and pass on the head.
  • uv run devops ci test tests/ai/test_ai_client_style_request.py tests/ai/test_ai_task_loader.py: 17 passed, 4 snapshots passed.
  • uv run devops ci test tests/docs/test_docs_inventory.py tests/ai/personas/test_personas.py tests/ai/client: 513 passed.
  • uv run devops ci test tests/invariants/test_architectural_invariants.py: 94 passed.
  • uv run devops ci --check --only lint,format,domain: all pass.
  • uv run devops openspec check: passed after the archive.
  • mypy: no file under src changed as Python code. mypy --strict on the changed test file: 0 errors in that file.

Review fix: the proposal said that a change of style_ste100.md reaches every model call. Only LLMClient adds the style request. The pydantic-ai agent runs (devops ai chat, investigate and the implement step) send none. The proposal now says so, and #5424 tracks the gap.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 14:44
@dan-petty
dan-petty merged commit a87b57f into main Nov 13, 2026
23 checks passed
@dan-petty
dan-petty deleted the docs/5419-bottom-line-first-line branch November 13, 2026 14:46
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): replies give the bottom line in the first line

1 participant