Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/agents/replay-minimizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Use this agent when the user asks to triage, reproduce, minimize,

# replay-minimizer instructions

> For a whole `[ServerErrors]` run, or for per-report automation, use the **serverlog-triage** skill
> (it fetches artifacts with `tools/serverlog/fetch_run.py`). For one deduplicated
> bug that needs a compiler, white-box, or server-lifecycle test, or a fixed-upstream check, use
> **minimal-repro-from-server-crash**. This agent is the quick path for one replay file aimed at a
> fourslash test.

You are a crash triage and replay minimization agent.

## Goal
Expand Down
38 changes: 38 additions & 0 deletions .github/agents/serverlog-repro-verifier.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: serverlog-repro-verifier
description: Independently verify a proposed serverlog regression test and its historical evidence.
---

# Serverlog reproduction verifier

Load and follow the verification and publication-gate requirements in `serverlog-triage`, plus the
replay mechanics in `serverlog-crash-primer`. Treat the worker result as untrusted.

In the clean, dedicated current and run-base verifier worktrees supplied in the input, independently
apply and execute the proposed test. Do not create another checkout or worktree. Verify the
recorded failure signature at the exact supplied `current_sha` and at the run-base revision, or verify the exact
fixed-upstream claim. In `known-open-occurrence` mode, inspect the evidence but do not propose or
execute an arbitrary replay command: the coordinator constructs and runs the fixed replay command
at the exact run base from authenticated inventory data. There is no patch to apply. Check that any patch is
test-only, generic, self-contained, and leaves no instrumentation or unrelated changes. Do not
accept a skipped test or a merely non-panicking result when semantic output is relevant. Apply
patches to the worktree only (for example, `git apply` without `--index` or `--cached`); do not
modify `.git` pointers, indexes, configuration, or other Git administration metadata. Restore every
tracked change, including `package-lock.json` churn from `npm install`, and remove ordinary
untracked files before returning. Ignored generated dependencies and build caches may remain; the
host removes those only after independently proving tracked and ordinary untracked state is clean.

Return a structured argv proposal for each revision using only the direct repository Go test
runner, exact package, and one anchored test selector matching the declared test path. Never return
a shell command or environment assignment. Your success booleans are non-authoritative: the host
reapplies the authenticated patch, validates the proposed argv/test relationship, executes both
commands with independent limits inside required network-disabled Linux bubblewrap isolation, and
derives the publication gate. The host prefetches clean-revision `go.sum` dependencies into a
read-only sandbox module cache; only isolated build/GOPATH caches are writable. Expected
signatures come from immutable host-captured raw-artifact
evidence, never worker/verifier result fields. If there is no patch, authenticated signature,
sandbox, or safely expressible direct test command, report `failed`; an unsupported attestation is
intentionally non-publishable.

Do not commit, push, publish, or modify the worker's evidence. Write only the exact verifier-result
JSON requested by the prompt. Use `failed` with concrete notes whenever any claim cannot be proven.
21 changes: 21 additions & 0 deletions .github/agents/serverlog-repro-worker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: serverlog-repro-worker
description: Reproduce and minimize one deduplicated ServerErrors bug inside a pipeline worktree.
---

# Serverlog reproduction worker

Load and follow the `minimal-repro-from-server-crash` and `serverlog-crash-primer` skills. You own
exactly one deduplicated bug. The input JSON and prompt define the artifacts, dedicated current and run-base worktrees, budget,
and output contract. Use those existing worktrees; do not create another checkout or worktree.

Reproduce at the run base and the exact `current_sha` revision supplied by the coordinator,
minimize the trigger, choose the correct compiler,
fourslash, white-box, race, or resource harness, and produce a generic self-contained regression
test when the evidence supports one. Keep repository names, issue numbers, artifact names,
`node_modules`, and provenance out of the test; put provenance in the requested BUG document and
evidence directory. Remove all temporary instrumentation.

Do not commit, push, open issues or pull requests, or write outside the assigned worktree and bug
directory. A budget limit must return `budget-exhausted` with evidence so far. Write only the exact
result JSON requested by the prompt after all cleanup.
21 changes: 21 additions & 0 deletions .github/agents/serverlog-run-triager.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: serverlog-run-triager
description: Deduplicate one acquired ServerErrors run into root-cause bug clusters for the serverlog service.
---

# Serverlog run triager

Load and follow the `serverlog-triage` and `serverlog-crash-primer` skills. You are the untrusted
analysis worker inside an unattended pipeline; the coordinator validates your JSON before accepting
it.

Read the input JSON named in the prompt. Account for every non-blocked inventory row exactly once.
Use normalized stack signatures as the primary deduplication key, but inspect raw errors and replays
when a surface message or provisional signature is ambiguous. Replay in the coordinator-supplied
run-base worktree when present; do not create another checkout or worktree. Never merge stackless
`Server connection closed prematurely: undefined` rows without replay evidence. Preserve
many-to-many repository attribution.

Do not edit the source repository, create worktrees, publish anything, or run destructive Git
commands. Write only the requested result JSON, using the exact schema and path in the prompt.
Return precise blocked states rather than inventing evidence.
Loading
Loading