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
26 changes: 26 additions & 0 deletions .agents/skills/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# InferRSI collaboration skills

## Choose a skill

Use one skill for the step you are carrying out.

- [shape-issue](shape-issue/SKILL.md) — discuss an Issue's direction, record an accepted scope, or split accepted work into native sub-issues.
- [claim-work](claim-work/SKILL.md) — verify acceptance, ownership and existing claims before starting or taking over a slice.
- [open-pr](open-pr/SKILL.md) — open a PR for a claimed slice or update its head.
- [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`.

To accept a delivered Issue or close it, see the
[closure rules](../../docs/agent-collaboration.md#closure-authorization).
For inference work, use the
[primary inference skills](../../plugins/inferrsi/skills/inferrsi/SKILL.md#load-the-primary-inference-task).

## Use a skill

Ask the agent to use the skill by name from the InferRSI checkout. For example,
`Use merge-pr to check whether this PR is ready to merge.` If the agent needs
a file path, ask it to read the linked `SKILL.md` directly.

Follow that skill and read the relevant sections it links in the
[collaboration guide](../../docs/agent-collaboration.md).
4 changes: 2 additions & 2 deletions .agents/skills/claim-work/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ rules and working rules 1, 7 and 8 in
## Check before claiming

1. Confirm the governing Issue and its accepted scope before changing code. If
the guide's [stop check](../../../docs/agent-collaboration.md#identity-and-authority) finds a stop on
this work's stop chain, or cannot rule one out, do not claim it.
the [stop check](../../../docs/agent-collaboration.md#human-stop) finds a stop
on the chain or cannot rule one out, do not claim the work.
2. Confirm the Issue has an accountable owner (recorded on the Issue, or else
its only assignee when exactly one is set) and carries `status:accepted`:

Expand Down
11 changes: 6 additions & 5 deletions .agents/skills/merge-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ below.
cancellation cannot be confirmed, hold the work and report that the PR may
still merge automatically. If the PR already merged, report it to the Issue
owner for authorized recovery.
Run the guide's [stop check](../../../docs/agent-collaboration.md#identity-and-authority)
Run the guide's [stop check](../../../docs/agent-collaboration.md#human-stop)
on the whole stop chain. A stop comment holds even after the label exists.
If the check finds a stop or cannot rule one out, do not merge. Record on
the PR any Issue you could not check.
Expand Down Expand Up @@ -65,9 +65,10 @@ below.
7. **No open blocker:** every binding **Request changes** review (from an
account with write access or higher) is re-reviewed to **Approve** or
dismissed with a recorded reason, by those the
[guide](../../../docs/agent-collaboration.md) allows to dismiss it. An
advisory review, such as one from `cursor[bot]`, does not count as a vote
but has a substantive answer on the PR and a recorded disposition (fixed in
[review rules](../../../docs/agent-collaboration.md#pr-review-and-merge)
allow to dismiss it. An advisory review, such as one from `cursor[bot]`,
has zero votes. Give it a substantive answer on the PR and record each
disposition (fixed in
a named commit, or declined with the reason). If GitHub's merge state still
shows the PR blocked by it on the current head, someone the guide allows to
dismiss reviews dismisses it, and the PR records who did and why, before
Expand Down Expand Up @@ -143,6 +144,6 @@ line; for a high-risk PR the same comment then has one line
where `approver=` names the approving account you found on the list and
verified in check 9, and `list=` is the `<mainSha>` you read the list from
(`list=bootstrap-570` only for the one-time bootstrap merge in the
[high-risk rule](../../../docs/agent-collaboration.md#identity-and-authority)).
[high-risk rule](../../../docs/agent-collaboration.md#high-risk-changes)).
If `main` turns red afterwards, use the
[red-main skill](../red-main/SKILL.md).
3 changes: 3 additions & 0 deletions .agents/skills/open-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ If the skill library changed, also run
Check every new or changed artifact against the
[privacy and security rules](../../../docs/privacy-security.md).

Run the [stop check](../../../docs/agent-collaboration.md#human-stop)
immediately before each push.

## Write the PR body

Start from the [PR template](../../../.github/PULL_REQUEST_TEMPLATE.md):
Expand Down
14 changes: 6 additions & 8 deletions .agents/skills/review-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ formal review still requires **Approve** or **Request changes**, also on a
high-risk PR (CI, releases, secrets, permissions); there an **Approve** from an
account on the [high-risk approver list](../../../.github/high-risk-approvers.json)
as it stands on protected `main` (not the PR head or a stacked branch; see the
[high-risk rule](../../../docs/agent-collaboration.md#identity-and-authority)),
[high-risk rule](../../../docs/agent-collaboration.md#high-risk-changes)),
including its agent, counts as the required listed approval. Other approvals
count toward the two but not as that one.
If a revert cannot undo the change's external effect (credentials, published
Expand All @@ -89,13 +89,11 @@ Agents may submit formal reviews without a separate human delegation; see
[identity and authority](../../../docs/agent-collaboration.md#identity-and-authority).
Submit one only from an eligible independent account, and only as that
account's formal reviewer agent; other agents under the account report in
comments. Never submit one on your own PR,
and not while the guide's
[stop check](../../../docs/agent-collaboration.md#identity-and-authority) finds a stop on the PR's stop
chain or cannot rule one out; in that case do not submit, and record on the PR
which Issue you could not check. Before
submitting, confirm that the PR is open and the reviewed target, base and head
are still current.
comments. Submit reviews only on PRs you can independently review. Run the
[stop check](../../../docs/agent-collaboration.md#human-stop) immediately
before submitting. Hold if a stop applies or the chain cannot be verified.
Record any unreadable Issue in the chain on the PR. Confirm that the PR is
open and that the reviewed target, base and head are still current.
If the revision changed, reassess the affected diff and evidence before submitting.
Bind the submission to the reviewed head using GitHub's review `commit_id` or an
equivalent revision-bound operation. If that operation is unavailable, leave the
Expand Down
7 changes: 4 additions & 3 deletions .agents/skills/shape-issue/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ and the [working rules](../../../docs/agent-collaboration.md#working-rules).

## Check authority

1. Run the guide's stop check on the Issue, the governing and delegating Issues,
and their real ancestors. On a stop or an unverifiable chain, report the
state to the invoking operator and exit with zero GitHub writes.
1. Run the [stop check](../../../docs/agent-collaboration.md#human-stop) on the
Issue, governing and delegating Issues, and their real ancestors. On a
stop or an unverifiable chain, report the state to the invoking operator
and exit with zero GitHub writes.
2. Identify the accountable owner using the guide. If no owner is recorded or
inferable, stay in discussion and ask a maintainer to record one when you
have authority to reply. Apply the tracker and RFC boundaries in the guide.
Expand Down
17 changes: 7 additions & 10 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Coding agents (Cursor, Codex, Claude, etc.) should treat this file as the **entr

**InferRSI** is InferMatrixLab’s canonical home for a **portable RSI / evidence-driven scaffold**. Work is organized as **SIAS**: harness × model × infra planes of the system being optimized, with runnable examples and a first-class `evidence/` tree. InferRSI's own code lives under `src/inferrsi/` (rename on copy) in four cores: Knowledge, Harness, Benchmark and Apps.

This entry contract is portable for derived scaffolds. The repository itself is the maintained workbench: delivering an independent engine uses the [engine delivery template](docs/template/README.md) and does not copy or depend on this runtime. Route your task: modify InferRSI via [contributing](docs/contributing.md) and [agent collaboration](docs/agent-collaboration.md); run experiments via [quickstart](docs/quickstart.md); find any CLI/Python operation via the [operation guide](docs/operations.md).
This entry contract is portable for derived scaffolds. The repository itself is the maintained workbench: delivering an independent engine uses the [engine delivery template](docs/template/README.md) and does not copy or depend on this runtime. Route your task: modify InferRSI via [contributing](docs/contributing.md); run experiments via [quickstart](docs/quickstart.md); find any CLI/Python operation via the [operation guide](docs/operations.md).

| Start here | Purpose |
| --- | --- |
| [README.md](README.md) | Layout, dev smoke, copy checklist |
| [docs/operations.md](docs/operations.md) | Every CLI/Python operation: entry, effect class, boundary |
| [docs/contributing.md](docs/contributing.md) | Development, acceptance, evidence and CI |
| [docs/agent-collaboration.md](docs/agent-collaboration.md) | Issue-led human–agent collaboration |
| [Collaboration skills](.agents/skills/README.md) | Choose a skill for the current Issue or PR step |
| [docs/architecture.md](docs/architecture.md) | Module boundaries and extension contracts |

## Four-lane CI
Expand Down Expand Up @@ -118,14 +118,11 @@ ruff check src tests

## Collaboration

Rules: [agent collaboration](docs/agent-collaboration.md). Agents may carry work end to end; humans set direction through Issues and stop work with `bot:stop`. One skill per step:

- Shape an Issue: [shape-issue](.agents/skills/shape-issue/SKILL.md) — record the owner's accepted direction, preserve prior text and split into bounded native sub-issues when needed.
- Claim before starting: [claim-work](.agents/skills/claim-work/SKILL.md) — confirm the Issue has an accountable owner and `status:accepted` and that you are its deciding agent or work under its delegation, search for duplicates, claim on the Issue with the next artifact time, release if nothing appears.
- Open a PR: [open-pr](.agents/skills/open-pr/SKILL.md) — a bounded slice with independent review, branched from current `main`, local checks run, AI declaration filled; report PR readiness and Issue completion separately.
- Review: [review-pr](.agents/skills/review-pr/SKILL.md) — use the review identity format, keep comments short, never approve your own PR; one formal reviewer agent per account.
- Merge: [merge-pr](.agents/skills/merge-pr/SKILL.md) — open and ready, authorized, expected base and dependencies merged, two independent approvals, required checks green, no `bot:stop` or unlifted stop comment, and on a high-risk PR (CI, releases, secrets, permissions) at least one approval from an account on the high-risk approver list in `.github/high-risk-approvers.json` that still has write access, verified at merge time.
- Red `main`: [red-main](.agents/skills/red-main/SKILL.md) — revert the merge that broke it, then fix forward in a new PR.
Humans set direction through Issues and can [stop work](docs/agent-collaboration.md#human-stop)
with `bot:stop` or a stop comment. Agents may carry accepted work end to end.
Claim work before implementation.
Choose one [collaboration skill](.agents/skills/README.md) for the current
step and read the policy sections it calls for.

## Privacy and security

Expand Down
Loading
Loading