Skip to content

Agent Persona Exploration - 2026-11-15 #78082

Done

Description

@github-actions

Persona Overview

  • Agent: agentic-workflows (.github/agents/agentic-workflows.md, .github/aw/create-agentic-workflow.md)
  • Personas This Run: Backend Engineer, Frontend Developer, DevOps Engineer
  • Scenarios Tested: 4 of 6 generated (BE-1, FD-1, DO-1, DO-2); BE-2 and FD-2 untested
  • Average Quality Score: 4.55/5.0 (full guidance; 4 of 4 invocations succeeded)
  • Rotation: all 9 personas now covered, so the explored list resets
  • Revision: 618d31b

Key Findings

  • All four full-guidance recommendations kept the agent job read-only and routed writes through safe outputs. None proposed edit, pull_request_target, or a broad network allowlist.
  • FD-1 was the weakest scenario (4.0). Its build step runs npm ci on PR-head code in the same job that holds deploy secrets for same-repo PRs. Security scored 3/5.
  • The agent guidance fails the prefix contract. .github/agents/agentic-workflows.md is 17,035 bytes against a 7,500-byte contract (checker exit 1, no instruction-prefix-end marker). The 8,000-byte cut lands mid-word.
  • The prefix probe is contaminated: ambient AGENTS.md reached it, so there is no isolated comparison. Observed: with prefix-only guidance, the BE-1 response left fork admission and bash/edit syntax to the user, and completeness fell from 4 to 3.

8,000-Byte Prefix Probe

  • Scenario: BE-1, same task, persona, context and rubric as the full run.
  • Status: contaminated. Scores are observed only; no isolated delta is claimed.
  • Bytes: agentic-workflows.md 17,035 total, 8,000 visible, contract ends at 17,035 (limit 7,500). create-agentic-workflow.md 7,433 total, fully visible, passes. No UTF-8 split.
  • Routes: 35 depth-1 linked views, each capped at 8,000 bytes. Depth-2 routes were not provisioned. Three external URLs and a bare SKILL.md were unresolved.
Dimension Full Prefix (contaminated) Delta
Trigger 5 5 0
Tools 4 4 0
Security 5 5 0
Prompt clarity 5 5 0
Completeness 4 3 -1
  • Observed route loss: the Fork Security for Pull Requests section of triggers.md starts at byte 11,225 (line 161). The probe could not see it. The full run read lines 161 to 193.
  • Static risk: the agent file routing after byte 8,000 is hidden from the probe.
  • Prefix supports: trigger family, tool choice, safe-output shape.
  • Prefix cannot support: fork admission (forks, roles), bash and edit syntax, add-comment on fork PRs, engine hosts under network.allowed: [].

Top Patterns

  1. Triggers: pull_request with paths: for PR review; workflow_run for gated follow-up; schedule plus workflow_dispatch for reports.
  2. Tools: github in gh-proxy mode (default and actions toolsets); runner-side pre-steps prepare diffs and logs; edit disabled.
  3. Security: read-only job permissions; network.allowed: []; no actions: write, so no reruns or cancels; noop when conditions are not met.
View Scenario Scores
Scenario Trigger Tools Security Prompt Completeness Avg
BE-1 Backend Engineer, migration review 5 4 5 5 4 4.6
FD-1 Frontend Developer, Storybook preview 4 5 3 4 4 4.0
DO-1 DevOps Engineer, deploy-failure incident 5 5 5 5 4 4.8
DO-2 DevOps Engineer, duration regression 5 5 5 5 4 4.8

Dimension averages: trigger 4.75, tools 4.75, security 4.50, prompt 4.75, completeness 4.00.

View Areas for Improvement
  • FD-1 security (3/5): split the build from the deploy. Run PR-head install and build steps without deploy secrets, and pass only an artifact to a separate deploy job.
  • FD-1 trigger (4/5): the response flags that workflow_run.pull_requests is typically empty for fork PRs, so the fork path is unverified.
  • DO-2 completeness (4/5): close-older-issues: true with a noop week leaves the previous issue open.
  • BE-1 completeness (4/5): renamed or moved migration files are not addressed.
  • Prior-art check: only partly done. The MCP code search returned HTTP 429 and was not retried, so the patterns rest on gh-aw guidance rather than prior art.
  • Process: the full-guidance sub-agent tried an unauthenticated shell gh API read, which repo rules reserve for MCP reads. It returned nothing and did not change the recommendations.

Recommendations

  1. Fit the agent file under the 7,500-byte contract. Compress .github/agents/agentic-workflows.md or move optional detail below an <!-- instruction-prefix-end --> marker, as debug-agentic-workflow.md already does. Evidence: checker exit 1; the cut lands mid-word.
  2. Put the fork-PR rule in the prefix. Add a one-line route before byte 7,500 covering the default fork block, a narrow forks: allowlist, and avoiding pull_request_target, linking to triggers.md (byte 11,225). Evidence: the probe could not settle fork admission.
  3. Verify, then state, the build-versus-secrets rule. Check whether .github/aw/*.md says PR-head build steps must not share a job with deploy credentials. If not, add it to the workflow_run guidance. Evidence: FD-1 security 3/5.
View Run Details
  • Full run: 4 scenarios, 127,753 subagent tokens, 41 tool calls, 214 s.
  • Prefix probe: 98,855 subagent tokens, 23 tool calls, 135 s. AIC not measured.
  • Next run: isolate probe context. Ambient AGENTS.md has contaminated runs 43610365440 and 43730042500.

References: §43730042500

Generated by 🎭 Agent Persona Explorer · claude · routed: haiku55 xhigh · ~23 AIC · ⌖ ~2 AIC · ⊞ 8.9K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-researchcookie

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions