Skip to content

docs: fix Phase 1 subphase ordering and update sweep invocation#70

Merged
pruiz merged 1 commit into
masterfrom
docs/sweep-and-phase1-readme-updates
Jul 17, 2026
Merged

docs: fix Phase 1 subphase ordering and update sweep invocation#70
pruiz merged 1 commit into
masterfrom
docs/sweep-and-phase1-readme-updates

Conversation

@pruiz

@pruiz pruiz commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes documentation gaps in README.md and Makefile help text that didn't reflect recent feature additions and had incorrect details.

Changes

README.md

  1. Phase 1 subphase ordering — The prompts and code use 1a=profiling, 1b=sandbox bootstrap, 1c=reconnaissance, but the README had them inconsistently swapped. Fixed the overview description, workflow section, and prompts list.

  2. Phase 1 workflow section — Rewrote from outdated "Two things happen together" to three clearly named subphases with the correct ordering and a note about CodeQL running between 1b and 1c.

  3. Deep sweep section — Added missing features from recent commits:

    • FILES= for comma-separated multi-pattern selection
    • EXCLUDE= for exclusion globs
    • RESET=1 / RESTART=1 for clearing sweep state
    • Auto-resume tracking via tmp/sweep-state.txt
    • Aggregate sweep summary rollup after all per-file sweeps

Makefile

  1. make help — Added make sweep RESET=1 line missing from the sweep section.

Verification

  • All 922 tests pass (make tests)

Summary by CodeRabbit

  • New Features

    • Added an optional reset control for Deep Sweep to clear progress and restart from the beginning.
    • Expanded Deep Sweep guidance with risk-based file selection, preview, filtering, resume, and summary workflows.
  • Documentation

    • Clarified Phase 1 workflow ordering: sandbox bootstrap now precedes CodeQL-assisted reconnaissance.
    • Updated reusable prompt references to match the revised workflow sequence.

…ADME

- Fix Phase 1 subphase ordering: 1b=sandbox bootstrap, 1c=reconnaissance
  (prompts and code follow this order; README had them swapped)
- Rewrite Phase 1 workflow section with three named subphases and
  CodeQL placement explanation
- Update deep sweep section: document FILES=, EXCLUDE=, RESET=,
  auto-resume via tmp/sweep-state.txt, and aggregate sweep summary
- Fix prompt filenames in prompts list (1b-recon→1b-sandbox, 1c-sandbox→1c-recon)
- Add RESET=1 line to make help sweep section
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Updates README workflow documentation and the Makefile help output to reflect Phase 1 sequencing, prompt names, and Deep Sweep controls.

Changes

Workflow documentation

Layer / File(s) Summary
Phase 1 sequencing and prompts
README.md
Documents sandbox bootstrap before CodeQL-assisted reconnaissance and updates the Phase 1b/1c reusable prompt references.
Deep Sweep controls and workflow
README.md, Makefile
Describes Deep Sweep selection, execution, resume, reset, and summary behavior, and adds the sweep RESET=1 help entry.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the README ordering fix and the updated sweep invocation help text.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/sweep-and-phase1-readme-updates

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.

@greptile-apps

greptile-apps Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR aligns the documentation with the current Phase 1 and sweep workflows.

  • Corrects Phase 1 subphase names and order.
  • Documents CodeQL placement and generated artifacts.
  • Adds deep-sweep selection, reset, resume, and summary details.
  • Adds the reset command to make help.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
README.md Updates Phase 1 and deep-sweep documentation to match the implemented workflow.
Makefile Adds an accurate sweep reset command to the help text.

Reviews (1): Last reviewed commit: "docs: fix Phase 1 subphase ordering and ..." | Re-trigger Greptile

@github-actions

Copy link
Copy Markdown

Coverage Report

Metric Value
Line Coverage 76.9%
Lines Covered 0 / 0

Download detailed HTML coverage reports per OS/Python from the workflow artifacts.

Generated by pytest-cov on 2026-07-17T15:11:39.972Z

@pruiz
pruiz merged commit 3fcfe1b into master Jul 17, 2026
7 of 8 checks passed

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Line 140: The README’s Phase 1 documentation incorrectly places sandbox
bootstrap in Phase 1; update README.md lines 140-140 and 309-315 to match the
Makefile, describing Phase 1 as reconnaissance only and Phase 2 as the phase
that gates or performs sandbox bootstrap. Ensure both documented subphase
sequences are consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: dab14e25-5734-4ae9-951f-0675dcb23b8d

📥 Commits

Reviewing files that changed from the base of the PR and between b02b843 and b43c324.

📒 Files selected for processing (2)
  • Makefile
  • README.md

Comment thread README.md
Six phases. Each one is a `make` target. Each one writes to disk.

1. **Recon (`make phase-1`)** — runs as three subphases: (1a) target profiling and CodeQL plan generation, (1b) CodeQL-assisted reconnaissance using static analysis signals, and (1c) sandbox bootstrap. Writes notes under `itemdb/notes/` including a file-risk-index informed by CodeQL findings.
1. **Recon (`make phase-1`)** — runs as three subphases: (1a) target profiling and CodeQL plan generation, (1b) sandbox bootstrap (Docker-based sandbox setup), and (1c) CodeQL-assisted reconnaissance using static analysis signals. Writes notes under `itemdb/notes/` including a file-risk-index informed by CodeQL findings.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Correct the documented Phase 1 sequencing.

The README claims sandbox bootstrap runs within make phase-1, but the supplied Makefile runs reconnaissance in Phase 1 and performs sandbox bootstrap gating in Phase 2.

  • README.md#L140-L140: remove or correct the claim that make phase-1 includes sandbox bootstrap.
  • README.md#L309-L315: align the subphase sequence with the actual targets, or update the implementation to match this documentation.
📍 Affects 1 file
  • README.md#L140-L140 (this comment)
  • README.md#L309-L315
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 140, The README’s Phase 1 documentation incorrectly places
sandbox bootstrap in Phase 1; update README.md lines 140-140 and 309-315 to
match the Makefile, describing Phase 1 as reconnaissance only and Phase 2 as the
phase that gates or performs sandbox bootstrap. Ensure both documented subphase
sequences are consistent.

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.

1 participant