Repository navigation
B-05 Build the grid board and the post pages - #7
Conversation
|
Warning Review limit reached
This review includes 32 billable files and costs up to $8.00.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 12 minutes for your next included review. View limit details
|
…ion page states The site builder turns run records and recorded Notion page states into the desk log board (Sources by the four gates) and the blog, changelog, FAQ and social pages. Status comes only from Notion. A gate whose Draft fails the Check is held with its failing line and is never published.
…on the page, close keyed elements after a line break
…rammar The merged Check replaced MARK and words with HEADING, plain_words and source_words. The builder now uses them, so a heading mark, a quote and a Snapshot line are read the way the Check reads them.
2082248 to
227de89
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 227de89f2b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
gabchess
left a comment
There was a problem hiding this comment.
Agent review (code-reviewer, not the author): REQUEST CHANGES 227de89
Tests: pytest -q in a scratch venv on this head printed "192 passed in 29.23s". CI test and test-windows are green.
Blocking
- Two guard mutations survive in
skills/launch-content/scripts/build_site.py:110, the round guard of the malformed Notion page state check.- Dropping
or rounds < 1leaves every test green. A Notion round of 0 then renders "round 0" on the cell (line 168). - Dropping
isinstance(rounds, bool) orleaves every test green. A round oftruethen renders "round True". - Neither mutant is equivalent. The simplest fix adds two rows to the parametrize list at
tests/test_site.py:287, with no code change:
({"status": "Drafted", "round": 0}, 'pr-csv/blog has the round "0", expected a whole number'),
({"status": "Drafted", "round": True}, 'pr-csv/blog has the round "True", expected a whole number'),
- Dropping
- The chatgpt-codex-connector thread at
build_site.py:303is correct, so it cannot be dismissed.check.py:266tocheck.py:272checks a claim that carriesgateagainst that gate'sowner_sources, not the Snapshot.quote_where(build_site.py:225tobuild_site.py:229) always searches the Snapshot. The blog page (line 303) and the board slip (line 239) therefore label an owner quote as "Pull request, snapshot". Simplest fix: when the claim hasgate, label it "Owner sources" and skip the Snapshot search. Add one fixture claim withgateand one assertion.
Not blocking
- LOW
build_site.py:264andbuild_site.py:298. The Notionurland the sourcelinkgo intohrefafter HTML escaping only, so ajavascript:value would pass. Both come from Gabe's own data, so this needs no change for the prototype.
Guard mutations (11 guards, 23 mutants, 21 killed)
| Mutant | Result | Killed by |
|---|---|---|
| Status taken from run.json when present | killed | test_each_cell_status_comes_from_notion_and_never_from_the_run_record |
| Unknown Status coerced to Drafted | killed | test_an_unknown_notion_status_fails_the_build |
| Round check removed | killed | test_a_malformed_notion_page_state_fails_the_build_with_its_key |
rounds < 1 removed |
SURVIVED | none |
| bool clause removed | SURVIVED | none |
| Non-object check removed | killed | test_a_malformed_notion_page_state_fails_the_build_with_its_key |
| Notion state wins over a failed Check | killed | test_a_failed_check_holds_the_gate_even_when_notion_says_ready_to_post |
| Held cell published | killed | same |
| Held cell shown as Drafted | killed | test_a_gate_with_no_page_and_a_failed_check_is_held_by_the_check |
| Percentage on cells | killed | test_a_cell_shows_counts_round_owner_and_status_and_no_percentage |
| "adds one file" changed, a roadmap column dropped, its owner dropped, moved out of the next block | 4 killed | test_the_three_roadmap_columns_are_greyed_with_owner_role_and_one_file |
| Button reads "Approve"; undo line put back | 2 killed | test_the_open_slip_sends_the_reader_to_notion_and_makes_no_undo_claim |
| Blog sentence without ref; empty quote list; ref to the wrong claim | 3 killed | test_a_blog_page_shows_each_line_next_to_its_quote |
| Rebuild keeps stale blog pages | killed | test_a_rebuild_removes_a_blog_page_whose_gate_is_no_longer_published |
| Drafted published | killed | test_only_a_ready_to_post_or_posted_blog_gate_gets_a_page |
| Sandbox line removed; "Autonomous locked" dropped | 2 killed | test_board_shows_the_mode_line_and_the_sandbox_line |
CodeRabbit and bots
- CodeRabbit App: rate limited on 227de89, head 227de89. Comment 6923881191 reads "Review limit reached". The CodeRabbit check ended
skipping. This does not block the merge. - Threads: 0 coderabbitai threads total; fixed 0, dismissed 0, unresolved 0.
- Local CLI: "Local CLI on 93e7830: not run" is the last line in the PR body. Earlier runs on 3a20708 and a340077 are recorded with their fixes.
- Other bots: chatgpt-codex-connector 1 total; fixed 0, dismissed 0, unresolved 1 (blocking item 2).
- Board: cr-review rows today 4 of 8; this event's row at 2026-11-16T15:08:20-03:00.
- Paid review: none. --use-credits was not passed and the on-demand box was not ticked. spendCents was 300 before and 300 after.
The panel decisions on the "Review in Notion" label, the removed undo line and the 68s headline are kept as decided. The look is unchanged.
An owner claim's quote lives in its gate's owner_sources, as check.py checks it, so the blog page and the board slip now say Owner sources for it and skip the Snapshot search. Two malformed-state rows cover a round of 0 and a round of true.
gabchess
left a comment
There was a problem hiding this comment.
Agent review (code-reviewer, not the author): APPROVE 1763c44
Tests: pytest -q in a scratch venv outside the repo on this head printed "195 passed in 41.18s". CI test and test-windows are green on this head, and the merge state is CLEAN.
Round 1 findings
- HIGH, round guard. Fixed.
tests/test_site.py:310andtests/test_site.py:311add the rows for round 0 and roundtrue. Mutant M3b (or rounds < 1dropped) is now killed by theround "0"row, and M3c (bool clause dropped) is killed by theround "True"row. - MEDIUM, owner quotes labeled as Snapshot (chatgpt-codex-connector thread). Fixed.
build_site.py:227tobuild_site.py:228return "Owner sources" for a claim that hasgate, which matchescheck.py:266tocheck.py:272. The slip uses it atbuild_site.py:239and the blog page atbuild_site.py:304. Those are the only two places that render a quote location (grep forquote_whereandSnapshotin build_site.py), so no second form of the flaw exists. The new testtest_an_owner_claim_names_the_owner_sources_on_the_blog_page_and_the_slipcovers both surfaces. The builder's reply on the thread names this fix and the thread is resolved. - LOW, links unchecked. Accepted in round 1 for the prototype. No change.
Not blocking
- LOW
build_site.py:232. Mutant N6 (return "Snapshot"in place of"Snapshot, line {number}") survives. The line number is a display detail from round 1, not a guard this PR adds, so it does not block. One assertion on "snapshot, line" in the blog test would cover it later. - LOW
build_site.py:304. The"gate" in ctest appears both here and insidequote_where. It is two lines and readable, so no change is needed for the prototype.
Guard mutations (29 mutants, 28 killed, 1 non-guard survivor)
| Mutant | Result | Killed by |
|---|---|---|
| M1 to M12, the 23 round 1 mutants | 23 killed | same tests as round 1 |
M3b rounds < 1 removed |
killed | test_a_malformed_notion_page_state_fails_the_build_with_its_key[round "0"] |
| M3c bool clause removed | killed | test_a_malformed_notion_page_state_fails_the_build_with_its_key[round "True"] |
| N1 owner branch removed from quote_where | killed | test_an_owner_claim_names_the_owner_sources_on_the_blog_page_and_the_slip |
N2 blog ignores gate |
killed | same |
N3 slip ignores gate |
killed | same |
| N4 blog prefixes the source kind on an owner quote | killed | same |
| N5 label text changed to "Owner source" | killed | same |
| N6 Snapshot line number dropped | survived | none (not a guard, LOW above) |
CodeRabbit and bots
- CodeRabbit App: rate limited on 227de89, head 227de89. Comment 6923881191 reads "Review limit reached". The CodeRabbit check ended
skipping. This does not block the merge. - CodeRabbit App on head 1763c44: no App event. A push to a ready PR is not an event on this repo, so no board row was added.
- Threads: 0 coderabbitai threads total; fixed 0, dismissed 0, unresolved 0.
- Local CLI: not recorded by the builder for 227de89 or 1763c44. The last PR body line is "Local CLI on 93e7830: not run". This is a finding for the next builder and does not block.
- Other bots: chatgpt-codex-connector 1 total; fixed 1 (1763c44, confirmed at build_site.py:227), dismissed 0, unresolved 0.
- Board: cr-review rows today 4 of 8; this event's row at 2026-11-16T15:08:20-03:00.
- Paid review: none, --use-credits not passed, spendCents 300 before and 300 after.
The panel decisions on the "Review in Notion" label, the removed undo line and the 68s headline are kept as decided. The look is unchanged.
Why
Loop goal: build the first working version of the Launch Factory gate loop from its spec and build tickets, test first, each code change through a merged pull request. The demo is Friday 2026-11-20, and the blog gate is the one that must work end to end.
This pull request is build ticket B-05, the board and the post pages. A marketer opens one page and sees every Source as a row and every gate as a column, with the Status each owner set in Notion. A reader opens a published blog post and sees the quote behind each sentence.
This branch is rebased onto main at 7157461, the B-01 merge, because the builder calls the Check from B-01. It touches no B-01 file (
check.py,test_check.pyand the Check fixtures are unchanged). After the rebase, commit 227de89 reads Draft lines and quotes with the merged Check's plain text grammar (HEADING,plain_words,source_words), which replaced the names the builder used before (MARK,words).Summary
skills/launch-content/scripts/build_site.pyis one command. It takes a folder of run records, a file of recorded Notion page states,owners.jsonand a skill folder, and writesindex.html(the board),blog/<source>/index.html,changelog/index.html,faq/index.htmlandsocial/index.html.skills/launch-content/site/board.htmlandpost.htmlare the two chosen design files turned into templates. Their CSS was copied line for line by a script. Each template adds one short block of CSS for the round and owner under a stamp, the Check's failing line, the ask questions, the roadmap owner and the changelog, FAQ and social entries.GATESis the column order.STATUSmaps each Notion Status (Drafted, Needs changes, Ready to post, Posted, Rejected) to a stamp style and to whether it publishes.NEXTholds the three greyed roadmap columns with their owner role.resolve(). A gate whose Draft fails the Check is held with the first failing line, whatever Notion says. A passing gate with no Notion page shows "No page yet". Otherwise the cell shows the Notion Status. Astatusfield inrun.jsonis never read.Decisions made without a source, each one easy to change:
blog,changelog,socialandfaq. The spec names the formats but not the file names.status,roundandurlper<source>/<gate>key. The Notion reader that writes it comes in a later ticket.Evidence
Before. The branch had the Check and its 87 tests and no site builder.
After the rebase onto main.
python -I -X utf8 -m pytest -qon a cleangit archive HEADexport of 227de89 printed192 passed in 28.76s. The merged Check run on each site fixture passes every record exceptpr-rounding, which fails on purpose (FAIL changelog line 3 cites no claim) so the board can show it held.After.
python -I -X utf8 -m pytest -qprinted106 passed in 11.43son 93e7830. On the first commit, the same command on a cleangit archive HEADexport printed100 passed in 12.69s, which proves no fixture is git-ignored.Acceptance criteria and the test for each:
tests/test_site.pytest_board_is_a_grid_of_sources_by_the_four_gates,test_board_keeps_the_desk_log_look,test_a_gate_the_verdict_did_not_open_is_an_empty_celltest_each_cell_status_comes_from_notion_and_never_from_the_run_record,test_an_unknown_notion_status_fails_the_buildtest_a_cell_shows_counts_round_owner_and_status_and_no_percentagetest_a_gate_with_no_page_and_a_failed_check_is_held_by_the_check,test_a_failed_check_holds_the_gate_even_when_notion_says_ready_to_post,test_a_passing_gate_with_no_notion_page_is_not_shown_as_draftedtest_board_shows_the_mode_line_and_the_sandbox_linetest_the_three_roadmap_columns_are_greyed_with_owner_role_and_one_filetest_a_blog_page_shows_each_line_next_to_its_quote,test_only_a_ready_to_post_or_posted_blog_gate_gets_a_page,test_the_changelog_lists_published_entries_newest_first,test_the_faq_lists_each_question_with_its_answer,test_a_social_card_has_its_text_and_a_copy_buttontest_ask_and_skip_rows_span_the_gates_with_their_reasonMutation sweep. 17 mutants over the guards this pull request adds, run with the tdd skill's
mutate.sh. 16 were red at once. The survivor (a passing gate with no Notion page shown as Drafted) got the testtest_a_passing_gate_with_no_notion_page_is_not_shown_as_drafted, and the rerun was red. Final count 17 of 17 red.CodeRabbit local layer. Both runs used
--committed --base-commit 6e6f74c, the B-01 tip, so only the B-05 commits were reviewed. The procedure says to use the merge base with main, but that would review the seven unmerged B-01 commits too. gitleaks printed "no leaks found" before each run.Local CLI on 3a20708: critical 0, major 1, minor 2, trivial 0, info 0, none 0; fixed 3, deferred 0.
test_a_rebuild_removes_a_blog_page_whose_gate_is_no_longer_published.test_every_reference_on_a_published_page_reaches_a_target_on_that_page.<br>as an open element. Fixed in a340077, testtest_the_text_reader_closes_a_keyed_element_that_holds_a_line_break.Local CLI on a340077: critical 0, major 1, minor 1, trivial 0, info 0, none 0; fixed 1, dismissed 1.
checkcannot be imported.git ls-files skills/launch-content/scriptslistscheck.pyat this head. The reviewer did not see it because the base was the B-01 tip.test_a_malformed_notion_page_state_fails_the_build_with_its_key(three cases).Local CLI on 93e7830: not run. The change since a340077 is the nine-line guard above with its three tests.
Each review fix was undone once by a mutant, and its test turned red.
Round 1 review fixes on 1763c44.
test_a_malformed_notion_page_state_fails_the_build_with_its_key. The reviewer's mutate.py now kills 23 of 23.gate. Testtest_an_owner_claim_names_the_owner_sources_on_the_blog_page_and_the_slip.urland the sourcelinkcome from the owner's own data and stay as they are for the prototype.Merge danger
Door. Two-way. The pull request adds one command, two templates and tests. Nothing calls the command yet, and it writes only to the folder given as
--out.Blast radius. None outside this pull request. No existing file changes. CI runs the same pytest job on Ubuntu and Windows.