Skip to content

feat(review): remediate review findings 20260927-040516 and enhance feedback loop (#642) - #643

Merged
dan-petty merged 1 commit into
release/v0.2.23from
feat/642-remediate-review-findings-feedback-loop
Sep 27, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.23from
feat/642-remediate-review-findings-feedback-loop

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Resolves #642.
Remediates verified findings from review session 20260927-040516, fixes subprocess criteria execution environment in bubblewrap, hardens process group termination and GitHub API check-runs parsing, eliminates brittle ad-hoc string constants, and makes review prompts project-agnostic.

Deliverables

  • Bubblewrap Sandbox Environment Isolation:
    • Injected ('HOME', '/tmp') into CONST_HOST_SANDBOX_DEFAULT_ENV so sandboxed Python execution under --clearenv has an isolated home directory without failing on Path.home().
    • Purged ad-hoc blacklist CONST_FORBIDDEN_SANDBOX_ENV_KEYS, relying entirely on bubblewrap's native --clearenv flag and explicit allowlist.
  • Elimination of Brittle Constants:
    • Purged CONST_SCHEMA_FIX_HINT_TEMPLATES and simplified synthesize_fix_hint to directly format Pydantic v2's native, comprehensive error messages.
    • Purged ad-hoc substring matching constants (CONST_TUPLE_EQUALITY_PHRASES).
  • Process Group Termination & API Parsing Resilience:
    • Handled (ProcessLookupError, PermissionError) during process group termination in shell.py.
    • Hardened GitHub check-runs API response parsing against null or malformed payloads.
  • Project-Agnostic Shared Prompts & Settled Claims:
    • Updated shared review and verifier prompts to remain project-agnostic.
    • Recorded repository-specific conventions for roadmap planning docs and structural tuple comparisons in .devops/review.md.
  • Quality Gates:
    • Exported feedback dataset (.data/feedback_dataset.jsonl).
    • Added unit tests in tests/test_pr_check_runs.py.
    • 100% passing across Gated CI validation suite (uv run devops ci).

@dan-petty
dan-petty merged commit 8149d8a into release/v0.2.23 Sep 27, 2026
8 checks passed
@dan-petty
dan-petty deleted the feat/642-remediate-review-findings-feedback-loop branch September 27, 2026 14:48
dan-petty added a commit that referenced this pull request Nov 28, 2026
…7540)

The owner accepted one change to the plan of #7521: CI applies the
GitHub settings, and the owner approves each apply with one click.
GitHub gives required reviewers only to public repositories on the Free,
Pro and Team plans, so the root of the public repositories moves to
dan-petty/infra, and the private repositories get their own root in
dan-petty/homelab, which the same approved job applies. A pull request
gets `tofu plan -refresh=false` as a tfcmt comment. A push to `main`
runs the apply in environment `github-settings`, which alone holds the
writer App key. The jobs run on a runner scale set of infra in the
cluster, because GitHub-hosted runners cannot reach the state in
`tofu-state`. ADR 0041 (still proposed) now also amends ADR 0032 section
8. The build items are dan-petty/infra#240 to #243,
dan-petty/homelab#642 and #643, #7534 and dan-petty/github-workflows#11.

Refs #7497

Plans #7497

Change: `openspec/changes/7497-onboard-settings-opentofu/`
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