Skip to content

feat(cli): inspect latest public guide setup - #517

Merged
abiorh-claw merged 4 commits into
mainfrom
codex/ws-cli-001-11-guide-setup-inspection
Oct 9, 2026
Merged

abiorh-claw merged 4 commits into
mainfrom
codex/ws-cli-001-11-guide-setup-inspection

Conversation

@Abiorh001

@Abiorh001 Abiorh001 commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Change

WS-CLI-001-11 — inspect current guide setup through the existing public API.

Goal and planning context

Add workstream project guide setup PROJECT_ID GUIDE_ID so humans and agents
can inspect the latest setup after declaring/uploading a guide. Change record
owns intent, bounded design, acceptance and future boundary.

What changed and scope

One public GET …/projects/{project_id}/guides/{guide_id}/setup-runs/latest.
Closed typed response validation, exact project/guide UUID identity, required
versus nullable fields, arbitrary-precision generation, unchanged API JSON and
complete terminal-safe text. Reuses existing transport/decoder/rendering.
CLI process tests extend the existing real public-API journey; root/CLI README,
capability ledger and initiative navigation reflect the intended merge outcome.

No backend, MCP, workflow, dependency or permission change. No hidden route,
polling, provider dispatch, local readiness engine, policy approval or activation.
Files outside the stated scope: none. Workstream product behavior unchanged.

Evidence

Candidate: 23fac61a3e5653d8e3afa6772ea6135a26deb288, base 3b9fbf64.
Runtime proof retains its original 36810b5a SHA; only one current-overview
sentence changed afterward. Exact path comparison confirms CLI, backend,
workflow and CI bytes are identical.

  • Go 1.27.1 build/vet/module verification/tidy-diff passed; clean-head CGO-disabled binary.
  • Six exact-head process tests passed. Ruff/format, gofmt, diff, Markdown links,
    stale Workstream/AUTH/ART scans and Commitrail checks passed.
  • Deliberately defective source overlay retained UUID syntax checks but removed
    project/guide identity binding: the unchanged regression failed on a valid
    foreign-project response at its success-versus-failure assertion.
  • Hosted CLI/Public API/PostgreSQL: all 97 tests passed in 130.77s on the current
    PR's checked-out merge tree. Source and real-service job checks passed.
  • Initial local full run: 96 passed, one retained storage fixture setup error.
    Disk was below ART's unmodified scratch reservation/free-space floor. Clearing
    only regenerable Go cache recovered space; the unchanged storage case passed
    with database cleanup confirmed. Full current-head local rerun passed all
    97 tests in 594.85s, with database and overall cleanup confirmed.
  • Required full hosted Backend
    passed. Independently inspected its completeness artifact: 8,802 collected,
    8,802 unique completed, zero skips/deselections, all nine database cleanups
    complete. Merge tree 6ff5b958 has parents current main 3b9fbf64 and head
    23fac61a; no unverified tree or missing lane is counted.
  • Hosted backend evidence reports 23m16s wall time; its timing target is unmet.
    This change does not alter CI or hide that existing performance limitation.

Test delta

Six process tests protect transport selection, exact response/text, nullable
fields/range, malformed/substituted replies, local selector rejection and safe
denials/redirects/bounds. Extend the existing bootstrap/Flow-token real API
journey for response parity and fresh scoped manager, outsider/foreign project,
revocation and suspension. No tests removed, skipped or weakened; no unit-test
proliferation or coverage quota.

Impact-routed reviewer results

Plan feasibility PASS at clean e37dbbeb; it does not attest runtime execution.
Final scoped reviews PASS at clean 23fac61a: architecture, documentation,
reuse, security, QA and test delta, through three related assignments.
DOC-CLI11-001 (Low stale overview sentence) is corrected and replayed closed.
Security and QA independently verified the executed real setup journey and
source equivalence; no behavior atom remains unproven. Runs include
security-cli11-36810b5a-20261008 (freshness replay at 23fac61a) and
cli11-qa-testdelta-23fac61a.
Proof combines executed built-process/service behavior, real PostgreSQL stored
setup/foreign resources/current grants and contract/negative-structure inspection.
The guard mutant fails the intended substitution assertion. Original executions
retain their exact SHA; the documentation-only repair does not relabel evidence.
All required hosted checks and the complete local rerun passed. Summaries are advisory mirrors of
private session reviews, not repository authority.

External review

CodeRabbit: fresh substantive review completed through 23fac61a, no actionable
comments. The earlier rate limit is historical, not reviewer approval.
Review run c70f5013-a1a6-4350-8e67-7706ab8f7a98 covered the full current diff.
Its default 80% docstring advisory is not a repository gate; no quota-driven
comments, tests or CI changes were introduced.
All hosted checks, including Backend's real API drill and aggregate, passed.
Final head re-fetched: 23fac61a; clean worktree, unchanged main, mergeable,
non-draft, zero unresolved review threads. Ready for eligible human approval
and merge; GitHub still reports REVIEW_REQUIRED. The agent has not merged.

CI and gate integrity

No workflow, runner, test-selection, package-script or dependency changes.
Coverage remains diagnostic. Full-suite completeness and real integration checks
remain blocking. No tests were skipped/deleted/weakened.

Remaining risks and human review focus

Setup is an observation, not readiness/approval/activation or permission for a
later operation. Pending or failed setup can be inspected with exit 0; invalid
or denied reads leave stdout empty. Normal 12-second/64KiB bounds apply. Tests
use locally issued Flow tokens and real API/PostgreSQL, not deployed Flow or
live model-provider certification. Approval/activation commands and binary
distribution remain separate work.

Human merge ownership

  • I can explain the change, why it is needed and its remaining risks.
  • The user explicitly approved this specific PR for merge.

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 53e18b48-c57a-45ac-8ccc-cf3babc2b79b

📥 Commits

Reviewing files that changed from the base of the PR and between 23fac61 and 23581ca.


📒 Files selected for processing (10)
  • .commitrail/INDEX.md
  • .commitrail/initiatives/WS-CLI-001/OVERVIEW.md
  • .commitrail/initiatives/WS-CLI-001/WS-CLI-001-11.md
  • README.md
  • cli/README.md
  • cli/internal/api/guide_setup.go
  • cli/internal/command/guide_create.go
  • cli/tests/integration/guide_create_journey.py
  • cli/tests/integration/test_guide_setup_http.py
  • docs/roadmap_status.md


No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c70f5013-a1a6-4350-8e67-7706ab8f7a98

📥 Commits

Reviewing files that changed from the base of the PR and between 3b9fbf6 and 23fac61.


📒 Files selected for processing (10)
  • .commitrail/INDEX.md
  • .commitrail/initiatives/WS-CLI-001/OVERVIEW.md
  • .commitrail/initiatives/WS-CLI-001/WS-CLI-001-11.md
  • README.md
  • cli/README.md
  • cli/internal/api/guide_setup.go
  • cli/internal/command/guide_create.go
  • cli/tests/integration/guide_create_journey.py
  • cli/tests/integration/test_guide_setup_http.py
  • docs/roadmap_status.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

The CLI adds a command to read the latest setup status and compilation lineage for a project guide. It makes one public GET, validates the response, and prints JSON or text. Documentation and integration tests describe and verify its scope, response handling, and authorization behavior.

Changes

Guide setup diagnostics

Layer / File(s) Summary
Setup response contract
.commitrail/initiatives/WS-CLI-001/WS-CLI-001-11.md, cli/internal/api/guide_setup.go
The initiative record specifies the read and validation scope. The API adds the GuideSetup response type and Client.GuideSetup, which validates response fields and resource identities.
CLI command and HTTP validation
cli/internal/command/guide_create.go, cli/README.md, cli/tests/integration/test_guide_setup_http.py
The guide setup command calls GuideSetup and prints JSON or text. Documentation and HTTP integration tests cover request count, output handling, response validation, and errors.
Authorization journey and documented scope
cli/tests/integration/guide_create_journey.py, .commitrail/INDEX.md, .commitrail/initiatives/WS-CLI-001/OVERVIEW.md, README.md, docs/roadmap_status.md
Journey tests check setup inspection access before and after revocation or suspension. The initiative overview, index, README, and roadmap describe the delivered command and its stated boundaries.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant TerminalCLI
  participant GuideCommand
  participant APIClient
  participant PublicAPI
  TerminalCLI->>GuideCommand: project guide setup with project and guide IDs
  GuideCommand->>APIClient: GuideSetup request
  APIClient->>PublicAPI: GET latest setup for project and guide
  PublicAPI-->>APIClient: Setup response
  APIClient-->>GuideCommand: Validated result or error
  GuideCommand-->>TerminalCLI: JSON or text output
Loading

Merge Risk: ⚪ Minimal · up to 23fac

No code defect has been identified in guide-setup inspection. Required hosted Backend verification remains pending before merge.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 4 files. (6 skipped: 6… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: adding CLI inspection for the latest public guide setup.
Description check ✅ Passed The description is detailed and covers the change, intent, scope, design, evidence, tests, review results, CI integrity, risks, and human merge ownership. Some template headings and explicit acceptanc…

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 4 files. (6 skipped: 6 unsupported.)



✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR


  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Abiorh001

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@abiorh-claw
abiorh-claw self-requested a review October 9, 2026 13:44
@abiorh-claw
abiorh-claw merged commit baa7ae7 into main Oct 9, 2026
17 checks passed
@abiorh-claw
abiorh-claw deleted the codex/ws-cli-001-11-guide-setup-inspection branch October 9, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants