Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .agents/skills/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Use one skill for the step you are carrying out.
- [review-pr](review-pr/SKILL.md) — independently review a specific PR revision.
- [merge-pr](merge-pr/SKILL.md) — check merge readiness and integrate when authorized.
- [red-main](red-main/SKILL.md) — recover when a merge breaks `main`.
- [submit-optimization-record](submit-optimization-record/SKILL.md) — submit a redacted trace for a selected optimization run after it ends.
- [submit-optimization-record](submit-optimization-record/SKILL.md) — submit a redacted run trace, a reusable prompt case, or both.

To accept a delivered Issue or close it, see the
[closure rules](../../docs/agent-collaboration.md#closure-authorization).
Expand Down
52 changes: 46 additions & 6 deletions .agents/skills/submit-optimization-record/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
---
name: submit-optimization-record
description: Help a developer submit the redacted trace of one selected InferRSI run to this repository after an optimization completes, fails, or is interrupted.
description: Use from the InferRSI checkout to submit a redacted trace for one selected optimization run, contribute a reusable prompt case, or do both.
---

# Submit an optimization run record
# Submit optimization feedback

Use from the InferRSI checkout when a developer chooses to submit feedback
about one completed, failed, or interrupted run. Use the
[record format](../../../evidence/records/README.md), the
[privacy rules](../../../docs/privacy-security.md), and the
Use from the InferRSI checkout. Follow the
[privacy rules](../../../docs/privacy-security.md) and the
[contribution guide](../../../docs/contributing.md).

- For the redacted trace of one completed, failed, or interrupted run,
[submit a run record](#prepare-a-local-record) under
`evidence/records/<record-id>/` using the
[record format](../../../evidence/records/README.md).
- For reusable guidance on a task,
[submit a prompt case](#prepare-and-submit-a-prompt-case) under
`docs/guides/prompt-cases/`. A run export is optional.
- If the user wants both, use separate clean worktrees, staged diffs,
publication approvals, and PRs. The record helper requires a diff
containing only the selected record directory.

If the request leaves the choice unclear, ask which submission the user wants.

## Prepare a local record

1. Ask which native campaign run and user prompt and refinements to include.
Expand Down Expand Up @@ -124,3 +135,32 @@ the matching PR to InferRSI `main`. Return the record path and PR link.
If a commit or push succeeded before a failure, keep the worktree and retry using
the same record and digest. A changed staged diff or PR body requires a fresh
review. Publication does not confer campaign acceptance.

## Prepare and submit a prompt case

1. Ask which task and which prompt text or refinements the user wants to share.
If the run's prompt was withheld, ask for shareable input for the case.
Follow the [case guide](../../../docs/guides/prompt-cases/README.md) and keep
every section of the [template](../../../docs/guides/prompt-cases/_template.md).
Write reusable preconditions, constraints, quality checks, expected artifacts,
and claims limits. Use placeholders for private and run-specific values.
Keep original prompt files, raw traces, transcripts, logs, and measured
results out of the case. Include an evidence link only if it points to an
approved public artifact at a fixed revision.
2. Check the case index for an existing case on the same task and prepare a
local draft. If the user asks to see a draft first, show it and stop there.
Keep GitHub access read-only during draft preparation.
3. When the user wants to submit, identify the governing documentation Issue.
If a new Issue is needed, make sure the user has approved its proposed
public content before opening it. Confirm accepted scope using the
[Issue workflow](../shape-issue/SKILL.md). Reuse any authorization that covers
the target Issue and the proposed claim comment. Otherwise, show the target
Issue and proposed comment, including the contributor, scope, and delivery
estimate, and obtain approval before posting it. Then
[claim the accepted scope](../claim-work/SKILL.md).
4. In a clean worktree from current `main`, stage only the case file at
`docs/guides/prompt-cases/<task-slug>.md` and the README update that indexes
it. Show the user the staged diff, destination, and public PR title and body.
Obtain explicit approval for that content before publication and repeat
review if it changes. [Open the documentation PR](../open-pr/SKILL.md) and
return the case path and PR link.
Loading