Skip to content

Address promotion-review findings: docstring precision, bare --issue title, schema minLength - #403

Merged
ptr727 merged 1 commit into
developfrom
promotion-review-fixes
Jul 23, 2026
Merged

Address promotion-review findings: docstring precision, bare --issue title, schema minLength#403
ptr727 merged 1 commit into
developfrom
promotion-review-fixes

Conversation

@ptr727

@ptr727 ptr727 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Three findings from Copilot's review of the #402 promotion, fixed on develop so the promotion folds them in: the extract_section docstring overclaimed whitespace folding (internal heading-text whitespace must match exactly), --issue now prints the bare title on line 1 (pipe-friendly, no TITLE: prefix), and the section-name schema gains minLength 1 to match validate.py's non-empty check.

🤖 Generated with Claude Code

…title, schema minLength

- extract_section docstring no longer overclaims "whitespace-folded": the locate folds case and
  surrounding/marker-gap whitespace, and internal heading-text whitespace must match exactly.
  Also recast the first-line semicolon.
- --issue prints the bare title on line 1 (no "TITLE: " prefix), so the output pipes cleanly
  (head -1 for the title, tail -n +2 for the body).
- files.schema.json: a section object's name now requires minLength 1, matching validate.py's
  non-empty check so schema and validator reject the same data.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 23, 2026 14:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Aligns the spec audit tooling and schema with prior promotion-review feedback so the next develop -> main promotion includes the fixes and produces more precise, automation-friendly outputs.

Changes:

  • Tighten extract_section() docstring to reflect actual heading matching behavior (case-fold + surrounding-whitespace strip; no internal whitespace folding).
  • Make spec/audit.py --issue emit the bare issue title on stdout line 1 (no TITLE: prefix) for easier piping.
  • Add minLength: 1 to section name in spec/files.schema.json to match spec/validate.py's non-empty check.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
spec/audit.py Corrects extract_section() documentation and adjusts --issue stdout format to be pipe-friendly (title-only first line).
spec/files.schema.json Enforces non-empty section object name values at the schema level via minLength: 1.

@ptr727
ptr727 merged commit 577d90a into develop Jul 23, 2026
7 checks passed
@ptr727
ptr727 deleted the promotion-review-fixes branch July 23, 2026 14:30
ptr727 added a commit that referenced this pull request Jul 23, 2026
…rconfig fix, PhotoCleaner audit (#402)

Merge-commit promotion of #396-#401 + #403: per-section verbatim fidelity, the fleet section burn-down, the audit.py --issue convergence-issue generator, the .editorconfig analyzer-relaxation removal (#353 hub fix), the PhotoCleaner audit + registry refresh, and the promotion-review fixes. Human merge, no release fires. Makes main's canonicals current for the PhotoCleaner convergence agent.
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