Repository navigation
Align CLI documentation and audit validation - #78840
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review. Caution agentic threat detected DetailsPotential security threats were detected in the agent output. Detected threat types: prompt injection. Review the workflow run logs for details. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
🟡 Changes recommended
The changes break existing CLI documentation and audit tests, and the submit-graph documentation lists unsupported flags that cause unknown-flag errors.
3 open issues
What changed in this PR
This PR aligns gh-aw’s CLI help and reference documentation with implemented options and enforces the documented repository requirement for numeric audit run IDs.
Changes:
- Require
--repo owner/repofor bare audit run IDs and update help, examples, and validation tests. - Expand documentation for timeout formats and defaults, retained deliveries, and work-queue options.
- Remove the unsupported
project new -lalias from the reference.
| File | Description |
|---|---|
pkg/cli/audit_command.go |
Enforces the audit repository requirement and updates command help. |
pkg/cli/audit_command_test.go |
Tests the missing-repository validation error. |
docs/src/content/docs/setup/cli.md |
Updates flag documentation, timeout details, and audit examples. |
Review effort: Balanced (adaptive)
| | `audit` | Go duration | `0` | `--timeout 5m` | No additional deadline | | ||
| | `health` | Go duration | `2m` | `--timeout 5m` | Disables its collection deadline | | ||
| | `connector test` | Go duration greater than zero and at most `20s` | `20s` | `--timeout 10s` | Rejected | | ||
| | `logs episode` | Go duration | `5m` | `--timeout 10m` | Rejected | | ||
| | `logs`, `forecast` | Integer minutes | `0` | `--timeout 5` | No timeout | |
| if repoFlag == "" { | ||
| return errors.New("--repo is required for bare run IDs; use --repo owner/repo") |
| | `explain` | `--pool` predicts live eligibility; `--work-id` inspects one Work, `--before-claim ID` explains the exact predecessor state of a committed Claim, and `--request-id` selects a committed request. | | ||
| | `trace` | Exactly one of `--request-id` or `--claim-id` selects history; `--offset` and `--limit` paginate events. | | ||
| | `submit-work` | `--graph-id` sets a nonempty graph namespace (default: canonical payload SHA-256); `--node-key` sets a nonempty node identity within the graph (default: `root`). `--fairness-key` selects an entitled accounting key (default: one shared bucket). `--pool` selects an approved pool; `--priority` sets the entitled priority (1–5); `--worker-profile` selects an approved profile; `--execution-ref` pins an immutable worker SHA; `--expires-at` sets a Unix-millisecond deadline. | | ||
| | `submit-graph` | `--pool`, `--max-claims`, and `--max-dispatches` set the pool and logical-Claim/native-dispatch budgets for an atomically admitted graph. | |
|
🎉 This pull request is included in a new release. Release: |


CLI help and reference docs diverged from implemented flags, and
auditdid not enforce its documented repository requirement for bare run IDs.--repo owner/repofor numeric run IDs; update help and examples. Run URLs continue to use their repository context.project new -lalias; document timeout formats and defaults,logs --retained, and work-queue options and selector cardinality.