Skip to content

docs: fetch_pr_checks/fetch_failed_run_logs plugin tools and /uf.fix-ci re-route (extend-fetch-pr-review-context) #873

Open

Description

@jflowers

Documentation impact — extend-fetch-pr-review-context

The extend-fetch-pr-review-context OpenSpec change adds two new
review-dispatch plugin tools (fetch_pr_checks,
fetch_failed_run_logs) and extends fetch_pr_review_context
with PR-repair output fields. New plugin tools are user-facing
capability surface shipped to every uf-init consumer via the
scaffold mirror, so this issue tracks the change's documentation
impact per the AGENTS.md documentation gate.

Change summary

  • fetch_pr_review_context (review-dispatch plugin) gains five
    PR-repair output fields — state, mergeable,
    merge_state_status, head_repository, base_repository
    (base_repository derived from the PR url; gh rejects
    baseRepository as a JSON field) — and pr_number becomes
    optional with current-branch resolution
  • Two new tools join the same intent-level path:
    • fetch_pr_checks: the check-suite fetch
      (gh pr checks <N> --json name,state,bucket,link) with
      exit-code-tolerant parsing and a derived eligibility
      classification (failing / pending / passing)
    • fetch_failed_run_logs: the failure-log fetch (gh run view <run-id> --log-failed), persisted 0o600 with O_EXCL
      semantics under $TMPDIR/opencode/, returned as log_path
      plus byte/line counts — never inline
  • /uf.fix-ci Phase 1 and Phase 2.1 fetches re-route through
    the three tools with observable behavior preserved (STOP
    messages, gates, eligibility outcomes, never-merge rule
    unchanged); the canonical command and its scaffold mirror stay
    byte-identical
  • Plugin suite extended: new suites fetch-pr-checks.test.ts
    and fetch-failed-run-logs.test.ts plus the shared
    test/helpers/gh-spawn-mock.ts harness; 1263 tests passing
    under the unchanged 94% statements / 85% branches floors

Website-target resolution

Search-first pass over open unbound-force/website issues
(verified this session, 2026-10-29) for fix-ci,
fetch_pr_checks, fetch_failed_run_logs, and plugin tools:

  • On-point open trackers: unbound-force/website#342 ("docs:
    sync /uf.fix-ci command reference (uf-fix-ci)" — covers the
    command file this change rewrites) and
    unbound-force/website#310 ("docs: sync uf-workflow/uf-finale
    plugin tool parameter behavior" — covers plugin tool parameter
    behavior)
  • Other search hits (unbound-force/website#306 plugin terminal
    hygiene, unbound-force/website#312 dispatch data flows,
    unbound-force/website#336, unbound-force/website#339,
    unbound-force/website#142) are off-point for this change
  • Conclusion: reference and consolidate on
    unbound-force/website#342 and unbound-force/website#310
    rather than filing duplicates, per the repo precedent
    (fetch-pr-review-context → repo docs docs: document fetch_pr_review_context tool in review-dispatch plugin #696 with no website
    issue; uf-fix-ci → repo docs docs: /uf.fix-ci new command (uf-fix-ci) #862 +
    unbound-force/website#342)

Dispositions

  • Blog declined: evaluated against the divisor-curator's blog
    significance thresholds — new agent added, new CLI command or
    subcommand, architectural migration, new hero capability —
    none apply. This is an internal extraction of fetch mechanics
    into tested plugin tools; no new user-facing capability debuts
    and the command surface is unchanged. Note the distinction
    from the documentation gate, which does fire: new plugin tools
    are user-facing capability surface shipped to every uf-init
    consumer via the scaffold mirror, so this documentation issue
    is filed even though the blog threshold does not trip.
  • Tutorial declined: evaluated against the divisor-curator's
    tutorial significance thresholds — new slash command with
    multi-step workflow, new tool integration requiring setup
    steps, new workflow pattern — none apply. No new user workflow
    ships; /uf.fix-ci's observable workflow is unchanged and the
    tools require no setup (they ship in the already-bundled
    review-dispatch plugin).
  • CHANGELOG entry (Unreleased/Added with the spec and docs
    footers): follows in task 5.2 of the change's tasks.md; the
    entry and its footers will be recorded on this issue.
  • Remaining docs-surface assessment (AGENTS.md, README.md,
    QUICKSTART.md, docs/ tree): lands as a follow-up comment on
    this issue from task 5.3.

Related: #861 (originating issue)

Website tracking: unbound-force/website#342, unbound-force/website#310

Activity

  1. added
    docs
    documentation
    on Oct 29, 2026
  2. jflowers commented on Oct 29, 2026

    @jflowers
    ContributorAuthor

    Documentation-impact assessment (task 5.3): no-change disposition

    Task 5.3 of the extend-fetch-pr-review-context change
    (originating issue #861), recording the disposition this
    issue's Dispositions section reserved for a follow-up comment.

    Scope note (spec-review advisory): the task text names five
    files (AGENTS.md, docs/usage.md, docs/architecture.md,
    README.md, QUICKSTART.md). The LOW spec-review advisory flagged
    that list as incomplete, so this assessment covers the complete
    documentation surface — the three root files plus the entire
    docs/ tree, including both learnings reviews and the
    docs/decisions/ ADRs.

    Verification basis (spot-checked this session on
    opsx/extend-fetch-pr-review-context):

    • Grep sweep for fetch_pr_review_context, fetch_pr_checks,
      fetch_failed_run_logs, and review-dispatch across docs/,
      README.md, QUICKSTART.md, and AGENTS.md: none of the three
      tool names appears anywhere on the documentation surface. No
      docs surface enumerates the review-dispatch plugin's tools.
    • Branch diff vs merge-base: .opencode/commands/uf.fix-ci.md
      and .opencode/plugins/review-dispatch/index.ts are modified
      in place (command file 1262 → 1256 lines); zero files added
      or removed under .opencode/commands/ (34 files at base and
      head) and .opencode/agents/ (16 at both).
    • Both scaffold assets were already listed in
      expectedAssetPaths (internal/scaffold/scaffold_test.go),
      so no manifest or asset-count changes and no scaffold-surface
      count moves.
    • The /uf.fix-ci re-route preserves observable behavior (STOP
      messages, gates, eligibility outcomes, never-merge rule);
      only the fetch mechanics moved from prose to tested tools.

    Surface-by-surface disposition

    • AGENTS.md — no change required. The /uf.fix-ci row in
      the PR Review Commands table ("Diagnose + fix failing
      checks") describes behavior the re-route preserves. The
      Project Structure counts ("Slash commands (33 files)", "Hero
      persona agents (16 active)") are untouched — this change adds
      and removes no command or agent files. The structure map's
      .opencode/plugins/ line names the review-dispatch plugin at
      directory level (alongside invoke-agent, uf-workflow,
      uf-finale) — pre-existing and accurate; this change adds
      tools inside the existing plugin, not a new plugin.
    • README.md — no change required. No mention of
      /uf.fix-ci, the review-dispatch plugin, or any plugin tool
      (grep-verified). The "uf init scaffolds 65+ files" claim
      describes the scaffold surface, which ships no new asset in
      this change.
    • QUICKSTART.md — no change required. The "What Gets
      Scaffolded" counts (65+ files, 12 commands, 11 agents, 15
      convention packs, 5 OpenSpec templates) describe the
      uf init scaffold surface; no new command ships and no new
      scaffold asset is added, so no count moves.
    • docs/architecture.md — no change required. The Scaffolded
      Files section ("8 core files scaffolded by uf init", "a
      full scaffold produces ~47 command files total", "16 active
      agents") describes the scaffold surface — unchanged. The
      Review Commands table's /uf.fix-ci row ("Diagnose and fix
      failing CI checks with a gated fix loop (rebase only, never
      merge)") describes behavior, preserved by the re-route.
    • docs/usage.md — no change required. The "Fix Failing CI
      Checks" section and Quick Reference row document observable
      behavior — root-cause classification (code failure, stale
      branch, conflict, flaky/infra), rebase-only repair, the gated
      fix loop, the rerun path, and the never-merge rule. No fetch
      mechanics (gh invocations, bucket-categorization tables,
      temp-file handling) are documented, so the re-route changes
      nothing the page claims.
    • docs/cli-reference.md — no change required. Documents the
      uf Go CLI (init, setup, doctor, sandbox, gateway, config),
      not plugin tools.
    • docs/configuration.md — no change required. Documents
      .uf/config.yaml; this change adds no configuration.
    • docs/fullsend-setup.md — no change required. No overlap
      with plugin tooling or /uf.fix-ci (grep-verified).
    • docs/heroes.md — no change required. Covers hero roles
      and routing; no overlap with the changed surface.
    • docs/RELEASE_PROCESS.md — no change required. Covers
      release mechanics; no overlap with the changed surface.
    • docs/learnings-review-2026-08.md — no change required.
      Historical record of the August 2026 learning review; no
      mention of the review-dispatch plugin or its tools.
    • docs/learnings-review-2026-10.md — no change required.
      The only tool-surface-adjacent matches in the docs tree: its
      "review-dispatch" mentions are retrospective records of the
      2026-10 learning review (Dewey learning-topic cluster counts,
      learning IDs, conflict families), not references to the
      plugin's tools. Historical records are not updated by later
      changes.
    • docs/decisions/ (ADR-001 opencode-over-claude-cli,
      ADR-002 uf-refs-source-of-truth-layer) — no change required,
      and no new ADR warranted: the design decisions (D1–D8) live
      in the change's design.md, and this change is an internal
      extraction within the existing review-dispatch plugin, not an
      architectural migration.

    Observed, out of scope

    AGENTS.md's structure map reads "Slash commands (33 files)"
    while the tree holds 34 command files. The discrepancy is
    pre-existing at this branch's merge-base and is neither
    introduced nor worsened by this change (zero command files
    added or removed). Noted for the record only; it belongs to
    whatever change last touched the commands directory.

    Summary

    No documentation file requires modification from this change.
    The CHANGELOG.md entry (task 5.2) is the only documentation
    artifact the change produces, plus this issue's own record (the
    5.1 filing, the content-pipeline dispositions, and this 5.3
    disposition). This assessment modified no repository files and
    made no commits.

  3. added
    enhancement
    on Nov 1, 2026
  4. jflowers commented on Nov 1, 2026

    @jflowers
    ContributorAuthor

    Divisor triage: VALID — enhancement

    The panel classifies this issue as a valid enhancement: the task-5.1 documentation-gate tracking artifact for the extend-fetch-pr-review-context change (#861), covering the two new review-dispatch plugin tools (fetch_pr_checks, fetch_failed_run_logs), five PR-repair output fields on fetch_pr_review_context, and the /uf.fix-ci fetch re-route.

    Panel result: 6/6 personas vote VALID (adversary, architect, curator, guard, sre, testing); category enhancement, objective. The verdict rests on four verified lines of evidence:

    • Gate applicability holds. The change ships new plugin tools to every uf-init consumer via the scaffold mirror — user-facing capability surface — so the AGENTS.md documentation gate fires and the internal-refactoring exemption does not apply. The blog and tutorial declines follow the divisor-curator significance thresholds, which stay cold for an internal extraction with unchanged observable /uf.fix-ci behavior; the issue records both evaluations separately, keeping each disposition auditable.
    • Claims match committed artifacts. The change summary's specifics — 1263 tests passing under unchanged 94% statements / 85% branches floors, command file 1262 → 1256 lines, and the tools' exact gh invocations with 0o600/O_EXCL/never-inline log handling — match the change's OpenSpec artifacts (FR-014, FR-015), the landed CHANGELOG entry, and the currently registered tool surface.
    • Not a duplicate. The in-repo open-issue search returns only docs: fetch_pr_checks/fetch_failed_run_logs plugin tools and /uf.fix-ci re-route (extend-fetch-pr-review-context) #873 itself, and the body's search-first pass consolidates website tracking on the on-point open trackers docs: sync /uf.fix-ci command reference (uf-fix-ci) website#342 and feat(commands): migrate /review-council to consume review-context skill #310 instead of filing duplicates, consistent with the zero-waste mandate.
    • The task-5.3 follow-up is evidence-based. Its no-change disposition rests on grep sweeps (none of the three tool names appears on any documentation surface), a merge-base diff (zero command/agent file-count movement), and expectedAssetPaths checks. The AGENTS.md 33-vs-34 command-count discrepancy is correctly scoped out as pre-existing, and the agents-count drift ("16 active" quoted vs "17 active, model-matrix-classifier hidden" now) traces to the later model-matrix-delegation change, not this disposition.

    Next steps: apply the enhancement label (the issue currently carries docs and documentation), and record the landed task-5.2 CHANGELOG entry here — that entry keeps this issue the live gate record until the change merges. No split is warranted: one change, one documentation surface, one cohesive tracker.

    This triage was performed by the Divisor review panel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsdocumentationenhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions