Skip to content

test(qa): cover startup instruction first action - #119010

Merged
vincentkoc merged 1 commit into
mainfrom
test/qa-agent-startup-first-action
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/qa-agent-startup-first-action

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Adds executable QA coverage for fresh-session startup instruction injection and
the required first tool action.

What Changed

  • Adds one Flow scenario for:
    • agent-runtime.startup-instructions
    • agent-runtime.startup-first-action
  • Seeds nonce-free canonical AGENTS.md instructions plus a separate
    nonce-bearing fixture.
  • Proves the initial provider request contains the startup marker but not the
    nonce.
  • Proves the first planned action reads the exact fixture before any visible
    plan or permission request.
  • Proves the matching tool result reaches the next provider request and exactly
    one terminal assistant reply contains the nonce.

Production LOC: 0.

Evidence

  • Focused QA: 1 passed, 0 failed
    • provider: mock-openai
    • Gateway: ephemeral child
    • fresh session
    • initial marker: present
    • initial nonce: absent
    • first tool: read STARTUP_FACT.txt
    • matching call/result ID: confirmed
    • successful transcript reads: 1
    • visible assistant messages before read: 0
    • final replies after read: 1
    • outbound finals: 1
  • Evidence summary contains exactly the two primary coverage IDs above.
  • pnpm check:changed -- qa/scenarios/agents/agent-startup-instruction-first-action.yaml
    passed in the trusted standalone full-clone fallback.
  • oxfmt --check and git diff --check passed.
  • Sol/high autoreview reported no actionable findings.

Blacksmith Testbox was attempted first, but its local client stalled in the
GitHub auth shim before any remote command or output existed. The focused QA and
changed-path proof therefore used the documented trusted standalone full-clone
fallback at the frozen base.

User Impact

No runtime behavior changes. This adds regression coverage for the existing
startup instruction and first-action contract.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 23:49
@vincentkoc
vincentkoc force-pushed the test/qa-agent-startup-first-action branch from 696f72b to 9c0d885 Compare August 3, 2026 23:50
@vincentkoc
vincentkoc force-pushed the test/qa-agent-startup-first-action branch from 9c0d885 to 5a455ed Compare August 3, 2026 23:59
@vincentkoc
vincentkoc merged commit 0287116 into main Aug 4, 2026
94 checks passed
@vincentkoc
vincentkoc deleted the test/qa-agent-startup-first-action branch August 4, 2026 00:09
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant