Skip to content
Back to skills

Result

ASecurity

Read a completed detached Codex bridge job's compact result.

  • 31 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentspythonbashgitdocumentation

Works with

  • cli

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Borda/AI-Rig --skill result --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Result?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Result
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borda-result/badge)](https://www.skillsdirectory.com/skills/borda-result)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: result
description: Read a completed detached Codex bridge job's compact result.
argument-hint: '[--workspace PATH] JOB_ID'
allowed-tools: Bash
effort: low
---

<!-- Diagram: ../../assets/images/bridge-request-arch.svg (request lifecycle; documentation only, SKILL.md wins) -->

# Read Bridge Job Result

<objective>
Read a detached Codex bridge job's compact result and report its verified completion limits.
</objective>

<workflow>

Require one job identifier. Run `python -I "${CLAUDE_PLUGIN_ROOT}/bin/bridge_call.py" result --job-id "<job-id>"`; always pass the same `--workspace` value the originating detached call used; a different or omitted value can resolve to another default workspace and report `missing` for a job still running elsewhere. Return compact JSON envelope. Preserve workspace-relative `transcript_path` and `incident` references; never inline the bounded transcript or peer `details`.

<!-- policy-sibling: plugins/bridge_cc-codex/claude-skills/review/SKILL.md, plugins/bridge_cc-codex/claude-skills/advise/SKILL.md, plugins/bridge_cc-codex/claude-skills/implement/SKILL.md, plugins/bridge_cc-codex/codex-skills/review/SKILL.md, plugins/bridge_cc-codex/codex-skills/advise/SKILL.md, plugins/bridge_cc-codex/codex-skills/implement/SKILL.md (confidence reporting) -->

Report confidence from the envelope: `confidence` is a number only when `status=complete`, derived by the bridge as 1.00 minus the deductions in `confidence_gaps`; otherwise it is `null` and `confidence_null_reason` names the exact cause from the closed set in `rules/envelope.md` §Confidence. Report that code beside the status, carry each `confidence_gaps` line as a named gap, and never substitute a number.

<!-- policy-sibling: plugins/bridge_cc-codex/claude-skills/advise/SKILL.md, plugins/bridge_cc-codex/claude-skills/review/SKILL.md, plugins/bridge_cc-codex/claude-skills/implement/SKILL.md (failure handling; preserve verb-specific recovery) -->

If the Bash call fails before producing JSON (missing interpreter, non-zero exit, malformed stdout), stop and report the raw failure; never fabricate a status. Otherwise handle the status:

- `status=blocked`: open the JSON file referenced by `incident` and inspect its `fault`; `incident` may be `null` — then report blocked with no incident detail.
  - **Provider stop** — harness-classified only when `incident` is non-null and its `fault` is `quota-exhausted`, `rate-limited` or `capacity`; verdict or blocker text alone never classifies. A classified `fault` can also arrive under `status=timeout`.
    - Lead the reply with a bold `! BLOCKED` line naming the peer (Codex) and the cause.
    - Say the stop is provider-side and the bridge did not retry.
    - Return the caller's options as text; ask nothing and resend nothing.
    - `quota-exhausted`: add credits or upgrade the plan, wait for the reset when the message states one, or continue without the peer.
    - `rate-limited`: wait for the reset; the caller may retry once.
    - `capacity`: choose another model.
    - Never fall back to another provider automatically.
  - **Write call**: inspect the worktree and `workspace_delta` first; a null or empty delta does not prove that no edit landed.
  - `output-limit`: report incomplete; report `partial_output` only labelled as an unverified fragment and use it to scope the split follow-up, never as findings or a verdict; the follow-up brief must keep commands small with no inline scripts or data. Inspect bounded transcript and, for write-capable work, delta, changed files, and checks, then request verified remaining work as a fresh bounded task.
- `status=timeout`: open the incident first; for a provider-stop `fault` follow the provider stop above, otherwise report the returned `effort` and the incomplete work, then request a fresh call, optionally narrower in scope or with a larger `--timeout-seconds` — never a higher effort against the same budget.
- `status=refused`: report its `fault` (for example `recursion-depth`); never retry.
  - A failed `github-read` preflight is also refused: report it; the caller fetches the data and requests a fresh call through the originating verb (`/bridge:implement`) with `--network none`; never dispatch from here.

Never replay the original task automatically.

Lifecycle states without an envelope:

- `queued`, `running` or `cancel_requested` — not finished; check again once when there is a reason to, subject to the Windows deadline below.
- `failed` — the supervisor errored before writing a result; report its `error`.
- `stalled` — the supervisor died or never started; report no result.
- `missing` — mismatched `--workspace` or unknown job.

For `failed` or `stalled` `implement` jobs, inspect the worktree delta and changed files: the child may have edited files before it stopped.

A `status=error` object (exit 2) is a refused CLI call, such as a malformed job id: report its `error`, never retry unchanged. When the originating call omitted `--workspace`, pass the absolute directory it ran from, never `.`.

On Windows, for `running` without an envelope, the caller must retain the launch budget and dispatch time (`--timeout-seconds`, default 600 seconds for `implement` when the option was omitted). Use the same deadline as `/bridge:status`: `--timeout-seconds` × 1.2 + 9 seconds termination/drain + 120 seconds startup grace, measured from dispatch. At that deadline, stop waiting and report incomplete work if no result exists; do not infer that the child has stopped or release ownership of paths an implement job may still be editing.

</workflow>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.