Repository navigation
Share workflow table validation - #1923
Conversation
Architecture-Review: unchanged; trusted workflow selection and configuration keys, defaults, validation order and diagnostics are preserved. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
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.
| _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", [])), |
There was a problem hiding this comment.
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.
| ) | ||
| return Config( | ||
| reviewer_ro_paths=_host_paths("delivery.reviewer_ro_paths", delivery.get("reviewer_ro_paths", [])), | ||
| repo=name, |
There was a problem hiding this comment.
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.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Share workflow table validation
Context and goal
Refs #575
Acceptance
Validation
Recorded for
c3d1cf882af8uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Base
main @ c21528b
Base: c21528b
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review