Skip to content

Share workflow table validation - #1923

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/575-share-config-validation
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/575-share-config-validation

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Share workflow table validation

Context and goal

Refs #575

Acceptance

  • Keep the existing accepted settings, defaults, error text and ordering.
  • Preserve every test assertion and compare before-and-after coverage on the touched module.
  • Remove at least 10 counted source lines and pass the project checks.

Validation

Recorded for c3d1cf882af8

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0
  • Existing configuration tests and the CLI configuration and workflow cases pass before and after.
  • All 2,246 inputs in the differential matrix produce identical dataclass values or error text. The matrix includes competing invalid fields and permission-related paths.
  • The same 165 unchanged lines and 70 unchanged branch arcs are covered. The shared validator has full line and branch coverage. Existing tests are intact.

Base

main @ c21528b
Base: c21528b


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, c3d1cf8, approve

eowca and others added 2 commits November 26, 2026 15:06
Architecture-Review: unchanged; trusted workflow selection and configuration keys, defaults, validation order and diagnostics are preserved.

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics 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.

loopzero primary review by claude on c3d1cf882af8d2257563bfb29740374d9955b6ef, 28.5s: approve (0 critical, 0 important, 2 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread src/loopzero/config.py
_strings(f"{label}.allowed_efforts", allowed))
table = _check_table(label, table, _REVIEW_SETTINGS, nonempty_strings=True)
review[family] = ReviewConfig(
table.get("model"), table.get("effort"), _strings(f"{label}.allowed_efforts", table.get("allowed_efforts", [])),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion: Line savings partly come from lines longer than the configured 100-character limit

pyproject.toml sets line-length = 100. Lint passes only because ruff selects E4/E7/E9 and not E501, and the checks never run ruff format --check. Even so, several new lines go past the limit: the ReviewConfig(...) argument line here (about 125 chars), the reviewers raise at line 173, the checks.runner walrus line, and the reviewer_ro_paths=_host_paths(...) keyword. Some of the 10 counted lines therefore come from cramming code together, not from sharing logic. Running ruff format would bring the lines back. Smallest fix: wrap these lines within 100 characters, or bind allowed = _strings(...) before ReviewConfig(...). Then confirm the line budget still holds from the real dedupe.

Comment thread src/loopzero/config.py
)
return Config(
reviewer_ro_paths=_host_paths("delivery.reviewer_ro_paths", delivery.get("reviewer_ro_paths", [])),
repo=name,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion: Moving reviewer_ro_paths to the first keyword only works because Python evaluates arguments left to right

The error order is kept because _host_paths is still evaluated before _strings("delivery.review_publishers", ...) inside the Config(...) call. That holds only while the argument stays first. If someone later sorts or regroups the keywords, the order of competing errors changes without any warning. The rest of the call is grouped by field. Consider keeping it as a separate statement, or adding a comment saying the position matters.

@eowca
eowca marked this pull request as ready for review November 26, 2026 14:26
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 0a4cd69 at 14:32 UTC

5 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 14:27 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1935
  • ✅ Merged 14:32 · 0a4cd69 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 0a4cd69 into main Nov 26, 2026
18 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/575-share-config-validation branch November 26, 2026 14:33
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