Starlight Investigate
Purpose
Find the smallest evidence-supported explanation for a failure without speculative edits or unrelated cleanup.
When it fires
- A test, build, deployment, API, UI flow, or runtime behavior fails.
- The failure is intermittent and needs boundary isolation.
- The user asks for diagnosis, root cause, or incident analysis.
Inputs
- Expected and observed behavior.
- Reproduction steps, logs, timestamps, environment, and relevant revision.
- Repository instructions and known constraints.
Workflow
- Capture the exact failure and determine whether it reproduces.
- Reduce it to the smallest safe reproduction while preserving the failing condition.
- Trace inputs, state transitions, and outputs across the suspected boundary.
- List competing hypotheses and the observation that would falsify each one.
- Run the cheapest discriminating checks first.
- State the root cause only when evidence rules out plausible alternatives.
- If a fix is authorized, apply the smallest causal change and run focused plus regression checks.
- Record residual uncertainty, monitoring, and rollback needs.
Output contract
Return:
symptom and reproducibility;
evidence with commands, locations, and relevant revisions;
hypotheses_tested and falsification results;
root_cause or not_yet_proven;
impact_boundary;
recommended_fix without implementation when diagnosis-only;
verification and residual_risk.
Tools & MCP
Prefer repository search, focused tests, logs, and read-only platform inspection. Redact credentials and personal data. Do not alter production state to make a diagnosis easier.
Quality bar
- Observation, inference, and decision are clearly separated.
- “Could be” is not presented as root cause.
- The reproduction and verification are copyable.
- The proposed fix addresses the causal boundary rather than masking the symptom.
- Unrelated working-tree changes remain untouched.
Example
Input: “The preview works, but the production API returns 415.”
Good output: evidence showing the exact content-type mismatch at the request boundary, alternatives ruled out, a minimal header-validation fix, and focused plus production-preview checks.
Built on SIP — Starlight Intelligence Protocol
Vertical: starlight-agent-skills · portable capability layer
1---2name: starlight-investigate3description: Diagnose a reproducible software failure by separating observations from hypotheses, locating the failing boundary, and defining regression evidence. Use when a bug, failed check, production incident, or unexpected behavior needs a root-cause report; modify code only when the user also authorizes a fix.4---56# Starlight Investigate78## Purpose910Find the smallest evidence-supported explanation for a failure without speculative edits or unrelated cleanup.1112## When it fires1314- A test, build, deployment, API, UI flow, or runtime behavior fails.15- The failure is intermittent and needs boundary isolation.16- The user asks for diagnosis, root cause, or incident analysis.1718## Inputs1920- Expected and observed behavior.21- Reproduction steps, logs, timestamps, environment, and relevant revision.22- Repository instructions and known constraints.2324## Workflow25261. Capture the exact failure and determine whether it reproduces.272. Reduce it to the smallest safe reproduction while preserving the failing condition.283. Trace inputs, state transitions, and outputs across the suspected boundary.294. List competing hypotheses and the observation that would falsify each one.305. Run the cheapest discriminating checks first.316. State the root cause only when evidence rules out plausible alternatives.327. If a fix is authorized, apply the smallest causal change and run focused plus regression checks.338. Record residual uncertainty, monitoring, and rollback needs.3435## Output contract3637Return:3839- `symptom` and reproducibility;40- `evidence` with commands, locations, and relevant revisions;41- `hypotheses_tested` and falsification results;42- `root_cause` or `not_yet_proven`;43- `impact_boundary`;44- `recommended_fix` without implementation when diagnosis-only;45- `verification` and `residual_risk`.4647## Tools & MCP4849Prefer repository search, focused tests, logs, and read-only platform inspection. Redact credentials and personal data. Do not alter production state to make a diagnosis easier.5051## Quality bar5253- Observation, inference, and decision are clearly separated.54- “Could be” is not presented as root cause.55- The reproduction and verification are copyable.56- The proposed fix addresses the causal boundary rather than masking the symptom.57- Unrelated working-tree changes remain untouched.5859## Example6061Input: “The preview works, but the production API returns 415.”6263Good output: evidence showing the exact content-type mismatch at the request boundary, alternatives ruled out, a minimal header-validation fix, and focused plus production-preview checks.6465---6667Built on SIP — Starlight Intelligence Protocol68Vertical: starlight-agent-skills · portable capability layer