Skip to content

Record the placement table and check its passes - #7304

Merged
Koudai Aono (koxudaxi) merged 1 commit into
mainfrom
e4-placement-records
Nov 21, 2026
Merged

Koudai Aono (koxudaxi) merged 1 commit into
mainfrom
e4-placement-records

Conversation

@koxudaxi

@koxudaxi Koudai Aono (koxudaxi) commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Documentation
    • Updated the architecture guide with a placement table describing which facts decisions use, where they belong in the pass sequence, and any required prior facts or passes. The table is included in the generated documentation, with clear markers for its beginning and end.
    • Added guidance on how placement records are maintained and checked for consistency.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T13:37:38.234538Z 8690ecd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds an ordered placement table, validation for its fact and pass declarations, and documentation generation that records the table in the architecture guide.

Changes: Placement guide

Layer / File(s) Summary
Placement records and validation
scripts/decision_homes.py, tests/test_decision_homes.py
Adds Placement and PLACEMENTS. Tests validate fact membership, pass declarations and placement names, and duplicate reads values.
Generated architecture table
scripts/build_architecture_docs.py, docs/architecture.md, tests/test_decision_homes.py
Generates the placement table from PLACEMENTS, adds its documentation markers and description, and checks that the generated table appears between the markers.

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Other

Possibly related issues

  • Issue 4914 — Requests a placement guide and pass fact-finality table in docs/architecture.md; this change adds placement-table documentation.
  • Issue 7289 — Proposes recording builder homes as data and checking them in tests; this change adds placement records and validation in the same files.

Possibly related PRs

Merge Risk: Minimal · up to 8690e

This change records the placement table as data, validates its fact and pass declarations, and generates the matching section of the architecture guide. It affects development scripts, tests, and documentation, not runtime behavior, and no actionable merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Record the placement table and check its passes" matches the main change. The PR adds a public PLACEMENTS table and Placement record in scripts/decision_homes.py, generates a documentation …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Record the placement table and check its passes" matches the main change. The PR adds a public PLACEMENTS table and Placement record in scripts/decision_homes.py, generates a documentation table from it, and adds placement_problems checks for declared passes, facts, and duplicate reads. The title names the core change, though it omits the generated documentation and the fact-type checks.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 78c0c39 and 8690ecd.

Files selected for processing: 4

  • docs/architecture.md
  • scripts/build_architecture_docs.py
  • scripts/decision_homes.py
  • tests/test_decision_homes.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

@codspeed

codspeed Bot commented Nov 21, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 51.21%

2 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ 53 benchmarks with a significant change ran on different hardware

Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

❌ 53 regressed benchmarks
⏩ 98 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_perf_client_calls[sync] 18.6 ms 45 ms -58.6%
❌ test_perf_client_calls[async] 20.6 ms 49.2 ms -58.21%
❌ test_perf_load_pyproject_config[mapping-multiple] 126.1 µs 291.2 µs -56.68%
❌ test_perf_load_pyproject_config[config-multiple] 127.1 µs 291.9 µs -56.45%
❌ test_perf_load_pyproject_config[mapping-None] 120.4 µs 274.4 µs -56.12%
❌ test_perf_load_pyproject_config[config-None] 119.6 µs 271.4 µs -55.93%
❌ test_perf_kubernetes_style_pydantic_v2 1.4 s 3 s -55.12%
❌ test_perf_simple_msgspec_unset_field_rendering 280.1 ms 612.8 ms -54.29%
❌ test_perf_duplicate_names 536.3 ms 1,171.2 ms -54.21%
❌ test_perf_all_options_enabled 3.2 s 7 s -53.89%
❌ test_perf_unique_items_schema_validators 200.5 ms 430.1 ms -53.38%
❌ test_perf_multiple_files_input 2.2 s 4.7 s -52.79%
❌ test_perf_extreme_large_schema 8.2 s 17.2 s -52.56%
❌ test_perf_inherited_required_fields[required-base-first] 442.9 ms 933.5 ms -52.55%
❌ test_perf_large_models_pydantic_v2_noformat 840 ms 1,767.3 ms -52.47%
❌ test_perf_stripe_style_pydantic_v2 1.2 s 2.5 s -52.4%
❌ test_perf_graphql_style_pydantic_v2 451.5 ms 940.7 ms -52%
❌ test_perf_complex_refs 1.2 s 2.4 s -51.95%
❌ test_perf_openapi_large_pydantic_v2_builtin 831.9 ms 1,728.3 ms -51.87%
❌ test_perf_openapi_large 1.8 s 3.6 s -51.86%
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing e4-placement-records (8690ecd) with main (78c0c39)

Open in CodSpeed

Footnotes

  1. 98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@koxudaxi
Koudai Aono (koxudaxi) merged commit 0c1c13a into main Nov 21, 2026
113 of 114 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the e4-placement-records branch November 21, 2026 15:05
@github-actions

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: The PR only touches developer tooling and documentation: it adds auto-generated markers around the placement table in docs/architecture.md, adds a generate_placement_table function and markers to scripts/build_architecture_docs.py, adds a Placement record type and PLACEMENTS tuple to scripts/decision_homes.py, and adds tests in tests/test_decision_homes.py. Nothing under the src package changes, so generated code, templates, CLI options, the public Python API, default behaviour, supported Python versions and error handling are all unaffected; the behaviour diff gate did not run, which fits a PR with no source changes.


This analysis was produced by the release draft workflow

@github-actions

Copy link
Copy Markdown
Contributor

🎉 Released in 0.100.0

This PR is now available in the latest release. See the release notes for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant