Skip to content

feat(agentrepo): report prose preflight argument blockers - #1068

Open
tbhb-agent wants to merge 1 commit into
mainfrom
feat/327-20261025
Open

tbhb-agent wants to merge 1 commit into
mainfrom
feat/327-20261025

Conversation

@tbhb-agent

Copy link
Copy Markdown
Contributor

Summary

Adds agentrepo prose preflight, which reports the early BLOCKED cases of the fix-prose preflight. The cases are a directory outside Git, a missing target argument and a target that isn't a regular file. Each keeps the shell script's report, streams and exit status, including the root-relative target display. A target that exists stops with a refusal for now.

Why

Moving the fix-prose preflight into Go starts with the cases that run before any probe. Scope probing and lint execution belong to later children of the prose migration. The shell script and its callers remain, which keeps the change within the N-2 compatibility policy.

Verification

  • go test ./internal/agentrepo -run '^TestProse' -count=1 passed.
  • The new tests compare the Go output with the unchanged script where bash is available.
  • The commit gates (lint, leak scan, spelling) passed.

Risk

The new subcommand is additive and nothing calls it yet. Revert the commit to back it out. No gate, allow list, or policy changes.

Related

Fixes #1029

Part of #327

Before any probe, the fix-prose preflight reports whether a run can
start at all. Moving it into agentrepo starts with the three early
BLOCKED reports: a directory outside Git, a missing target argument
and a target that isn't a regular file. Each keeps the shell's report,
streams and exit status, including the root-relative target display.
Tests compare the Go output with the unchanged script where bash is
available.

A target that exists stops with a refusal for now, because scope
probing and lint execution belong to later work. Nothing else
changes: the shell script and its callers remain, which keeps this
within the N-2 compatibility policy.

Fixes #1029

Assisted-by: claude:claude-sonnet-5-5
Signed-off-by: Tony Burns <tony@tonyburns.net>
@tbhb-agent tbhb-agent added change:feat PR adds or changes a feature (Conventional Commit type feat) provenance:agent-assisted PR contains commits authored with AI assistance (see Assisted-by trailers) labels Nov 2, 2026
@tbhb-agent
tbhb-agent requested a review from tbhb as a code owner November 2, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:feat PR adds or changes a feature (Conventional Commit type feat) provenance:agent-assisted PR contains commits authored with AI assistance (see Assisted-by trailers)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report prose preflight argument blockers from Go

1 participant