@ericrisco/rsc 4.1.10 → 4.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.1.10",
2
+ "version": "4.1.11",
3
3
  "counts": {
4
4
  "skills": 273,
5
5
  "agents": 34,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ericrisco/rsc",
3
- "version": "4.1.10",
3
+ "version": "4.1.11",
4
4
  "description": "A guided harness builder that turns your goal into a minimal, verified AI-agent setup using strict best practices.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -93,6 +93,9 @@ Read the surrounding code, trace the *value*, confirm the path is reachable.
93
93
 
94
94
  If you cannot trace it to a concrete value and a reachable sink, you do not yet have a finding.
95
95
 
96
+ On Codex, pass the catalog ID as `agent_type`. If the router takes a `task_name`, use a unique
97
+ underscore name for the thread, as shown in `../review/SKILL.md`.
98
+
96
99
  When several reviewers looked at the same diff, merge before reporting. Have each one end with a ` ```json findings ` block, run `npx @ericrisco/rsc review consolidate <reports…>`, and send each blocker it marks `verify` to the `finding-verifier` agent. That is the `review` skill's step, and it applies here unchanged.
97
100
 
98
101
  ## The verdict
@@ -115,7 +115,7 @@ review of the task, this first one included. Round 1 is the task's first review,
115
115
  | --- | --- |
116
116
  | 0 | none — the controls (e) still run |
117
117
  | 1 | one fresh-context reviewer; frozen brief in `references/per-task-review.md` |
118
- | 2 | the three refuters (`refuter-correctness` · `refuter-security` · `refuter-tests`) in parallel, as `../review/SKILL.md` runs them; then `review ledger panel <slug>/<task> --lenses correctness,security,tests` — the push gate checks it. Wait for every reviewer inside the turn; never end the turn to ask whether to continue |
118
+ | 2 | the three refuters (`refuter-correctness` · `refuter-security` · `refuter-tests`) in parallel, using the dispatch names in `../review/SKILL.md` (Codex pairs each `agent_type` with a unique underscore `task_name`); then `review ledger panel <slug>/<task> --lenses correctness,security,tests` — the push gate checks it. Wait for every reviewer inside the turn; never end the turn to ask whether to continue |
119
119
 
120
120
  Every reviewer gets the **spec**, the **diff as a file** (`scripts/review-package <BASE> <HEAD>`, BASE
121
121
  = the task's *recorded* base sha, never `HEAD~1`), the **surrounding code** at that sha (not just the
@@ -139,6 +139,18 @@ fresh-context subagents** (`refuter-correctness` · `refuter-security` · `refut
139
139
  told to *refute* readiness, not confirm it. Fresh context is the point: a reviewer who inherits the
140
140
  implementer's context inherits its blind spots. The closing review is always at least tier 1.
141
141
 
142
+ On Codex, select the installed profile with `agent_type`. When the router asks for a
143
+ `task_name`, give the thread a separate name using lowercase letters, digits and underscores.
144
+ For a fresh review, use `fork_turns: "none"` when supported. For repeated calls, append a
145
+ unique suffix to the task name (for example, `finding_verifier_2`).
146
+
147
+ `agent_type` | `task_name`
148
+ --- | ---
149
+ `refuter-correctness` | `refuter_correctness`
150
+ `refuter-security` | `refuter_security`
151
+ `refuter-tests` | `refuter_tests`
152
+ `finding-verifier` | `finding_verifier`
153
+
142
154
  **Give each refuter exactly four inputs — no more, no less.** The diff alone is not enough, and
143
155
  that is not a detail: with only the diff, the one failure class no test suite can structurally
144
156
  catch — *the change is correct and is not what the approved spec asked for* — is invisible to the
package/targets/agents.js CHANGED
@@ -248,10 +248,12 @@ function renderMd(spec, model, agent, toolsFormat = spec.toolsFormat) {
248
248
  return `${fm.join('\n')}${agent.body}\n`;
249
249
  }
250
250
  const renderJson = (model, agent) => `${JSON.stringify({ name: agent.name, description: agent.desc, ...(model ? { model } : {}), ...(agent.tools ? { tools: agent.tools } : {}), prompt: agent.body }, null, 2)}\n`;
251
- function renderToml(model, agent) {
251
+ function renderToml(model, agent, legacyTools = false) {
252
252
  const esc = (s) => s.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
253
253
  // body as a TOML multiline LITERAL string ('''…''') — no escape processing.
254
- const tools = agent.tools ? `tools = [${agent.tools.map((tool) => `"${tool}"`).join(', ')}]\n` : '';
254
+ // Codex tools config describes tool exposure, not RSC capabilities. Rebuild the
255
+ // former field only to recognize untouched profiles when their digest is missing.
256
+ const tools = legacyTools && agent.tools ? `tools = [${agent.tools.map((tool) => `"${tool}"`).join(', ')}]\n` : '';
255
257
  return `name = "${agent.name}"\ndescription = "${esc(agent.desc)}"\n${model ? `model = "${model}"\n` : ''}${tools}developer_instructions = '''\n${agent.body}\n'''\n`;
256
258
  }
257
259
 
@@ -307,6 +309,10 @@ function knownRenderings(target, cwd, agent) {
307
309
  for (const tier of ['balanced', 'heavy']) {
308
310
  out.add(renderAgent(target, spec, resolveModel(target, cwd, tier), agent));
309
311
  out.add(renderAgent(target, spec, spec.model(tier), agent));
312
+ if (target === 'codex' && agent.tools) {
313
+ out.add(renderToml(resolveModel(target, cwd, tier), agent, true));
314
+ out.add(renderToml(spec.model(tier), agent, true));
315
+ }
310
316
  if (target === 'claude') {
311
317
  out.add(renderAgent(target, spec, resolveModel(target, cwd, tier), agent, 'list'));
312
318
  out.add(renderAgent(target, spec, spec.model(tier), agent, 'list'));