Skip to content

docs(agents): agents and devops ai write in ASD-STE100 Simplified Technical English #1866

Closed

Description

@dan-petty

The owner sets ASD-STE100 Simplified Technical English as the standard for text that agents and the product write. Today no instruction asks for it. Agents write long sentences. The devops ai prompts do not ask the models for it. Source output strings follow no standard.

The owner decided on 2026-10-22 to request the standard in prompts and instructions. The project does not test or lint for it.

Existing tool considered: none applies. A linter such as Vale would check some rules, but the owner does not want a check. A request in the instructions costs a few hundred characters and a small loader change.

Change:

  • AGENTS.md gets one short rule. It asks agents to write all prose in ASD-STE100 STE. This covers chat replies, PR, issue and commit text, documents, task files, new and edited output strings in source, and the text that the devops ai features produce. Code, commands, file names, identifiers and quoted error text stay as they are.
  • The LLM client adds one short STE request to the system prompt of free-text model calls. It is one fragment file under src/devops_cli/ai/tasks/. A call that must return structured output applies the request to the free-text fields only. Tasks that return code or data keep their format.
  • The rule replaces other text in AGENTS.md. The file stays under its 40,000-character limit.

Not in scope: a linter, a gate, a test of the style, and a rewrite of existing text. New and edited text follows the rule.

Acceptance criteria:

  • AGENTS.md has the rule, and tests/test_agents_md_claims.py passes.
  • A free-text model call carries the STE request in its system prompt. A test shows this with the shared model fake.
  • A structured-output call and a code call keep their output format. A test shows this.
  • devops ci passes.

Proposed design

Problem statement

The project needs to enforce ASD-STE100 Simplified Technical English (STE) in all text generated by agents and the devops AI features, but currently no instructions or prompts request this standard. This change ensures consistency and clarity in documentation, chat replies, PRs, issue descriptions, commit messages, and output strings.

Acceptance criteria

  • Criterion 1: AGENTS.md has the ASD-STE100 STE rule requirement and the test file passes
    Verification: Run tests/test_agents_md_claims.py to verify AGENTS.md contains the STE rule and all assertions pass
  • Criterion 2: Free-text model calls include the STE request in their system prompt
    Verification: Test with shared model fake to confirm that a free-text model call's system prompt includes the STE requirement
  • Criterion 3: Structured-output and code calls maintain their original output format
    Verification: Write a test showing that structured-output calls and code calls preserve their original format without STE requests
  • Criterion 4: The devops ci pipeline passes with the new changes
    Verification: Run devops ci to verify all checks pass including linting, testing, and formatting

Key questions

  • Should existing text be rewritten to comply with ASD-STE100 STE?: No, not in scope. Only new and edited text should follow the rule; existing text is not required to be rewritten. (proposed)
  • Will there be a linter or test added to enforce ASD-STE100 STE?: No, the owner decided against adding a linter or automated test for this rule. The change only requires updating prompts and instructions. (proposed)

Open questions

  • What is the specific rule that should be added to AGENTS.md regarding ASD-STE100 STE? (missing verified source)
  • Where should the STE request be added in the LLM client? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/docs
    on Oct 22, 2026
  2. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/docs. The change primarily involves updating documentation and instructions for agents to follow a specific writing standard.
    • Priority: P2-Medium. This is a documentation update that improves consistency and clarity of agent-generated text, but does not address an urgent issue or bug.
    • Value: Medium. Improving the readability and consistency of agent-generated text has moderate value for users and maintainers.
    • Effort: Low. The change involves adding a rule to AGENTS.md and modifying prompts, which requires minimal code changes and testing.
  3. added this to the v0.2.39 milestone on Oct 22, 2026
  4. added
    status/in-progress
    on Oct 22, 2026
  5. added a commit that references this issue on Oct 22, 2026
    0d37d73
  6. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1873, merged into release/v0.2.39 as 0d37d73.

    Cause: No instruction asked agents or the devops ai features to write in ASD-STE100 Simplified Technical English. The owner decided on 2026-10-22 to ask for it in instructions and prompts. The owner does not want a check for the style.

    Change: AGENTS.md has one new rule that names the scope and the limits: chat replies, PR, issue and commit text, documents, task files, devops ai output, and new or edited output strings. Code, commands, file names, identifiers and quoted text stay as they are. Other bullets are tighter, so the file ends at 39,944 of 40,000 characters. The tightening cuts words that carry no meaning. A reviewer compared both versions and the meaning changes it found are restored. The text of the request lives in src/devops_cli/ai/tasks/style_ste100.md (120 words). with_style_request appends it to the system prompt in chat_messages and chat_messages_stream, before the cache key and the token count read the prompt. A structured call puts the request before its schema, so the schema still ends the prompt. The request tells the model to keep any output format that the task sets and to keep every quotation and every search query as it is. No existing prompt file and no existing string changes. Existing strings convert when someone edits them.

    Baselines move with this change. The style request lands in the candidate answers and the peer grades of devops ai benchmark, so older benchmark reports do not compare with new ones. The response cache key has…

    10 file(s) changed.

    How it was verified

    Check runs at 87eee31:

    • Audit Defect PR Hardening: skipping
    • Prune PR DevContainer Images: pass
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Service Image: skipping
    • Dependency Freshness: skipping
    • DevContainer Image: skipping
    • Fail-to-Pass Check: pass
    • Changed-Test Independence: pass
    • Rule Pack Tests: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Analyze (actions): pass
    • Static Analysis: pass
    • Fail-to-Pass Self-Check: pass

    Acceptance Criteria of docs/agent/tasks/task-1866-ste100-request.md:

    • AGENTS.md has the rule and stays within its cap, at 39,944 of 40,000 characters. It had 39,933 characters. tests/test_agents_md_claims.py passes.
    • A free-text call carries the request after the caller's system prompt. Before the change, all four calls sent the caller's prompt alone. Now tests/test_ai_client_style_request.py reads the request that chat, chat_messages, chat_stream and chat_messages_stream send. The test compares the messages to a snapshot. A call with no system prompt sends the request alone.
    • A structured call and a call that sets its own format keep their format. The test for a structured call compares the whole system text. The text holds the caller's prompt, the request, the schema instruction and the schema, in that order. The test for a grader checks that its own instruction stays whole and first. It also checks that the request tells the model to keep a format that the task sets.
    • The client does not serve a reply that it cached before the request. The test caches a reply under the key of the bare system prompt, and the call reaches the provider. A second identical call comes from the cache.
    • The token estimate counts the request. The test compares the prompt tokens in the spend record to the count of the system text as sent.
    • uv run devops docs check finds the generated documents current.
  7. added a commit that references this issue on Oct 23, 2026
    f209f6c
  8. removed
    status/in-progress
    on Oct 30, 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

    source/agenttype/docs

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions