Skip to content

B-05 Build the grid board and the post pages - #7

Merged
gabchess merged 6 commits into
mainfrom
claude/B-05-build
Nov 16, 2026
Merged

gabchess merged 6 commits into
mainfrom
claude/B-05-build

Conversation

@gabchess

@gabchess gabchess commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

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.py and 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.py is one command. It takes a folder of run records, a file of recorded Notion page states, owners.json and a skill folder, and writes index.html (the board), blog/<source>/index.html, changelog/index.html, faq/index.html and social/index.html.
  • skills/launch-content/site/board.html and post.html are 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.
  • Three tables hold the domain. GATES is the column order. STATUS maps each Notion Status (Drafted, Needs changes, Ready to post, Posted, Rejected) to a stamp style and to whether it publishes. NEXT holds the three greyed roadmap columns with their owner role.
  • Each cell resolves in one place, 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. A status field in run.json is never read.
  • A Notion Status outside the five values stops the build with exit code 1 and names the key.
  • Stamp text is the Notion Status word, in place of the design's older words (In review, Sent back, Approved), because the rewritten ticket takes Status from Notion.

Decisions made without a source, each one easy to change:

  • The gate names are blog, changelog, social and faq. The spec names the formats but not the file names.
  • The roadmap owner roles are Lifecycle (customer email), Video (video script) and Design (site animation). The sources name no owner roles for them.
  • The Notion state file holds status, round and url per <source>/<gate> key. The Notion reader that writes it comes in a later ticket.
  • The blog page says "arrived" with the Source's time in place of the design's "published", because no publish time exists yet.
  • The site nav adds "Social" beside the design's three links, so the social cards have a page.
  • Kept numbers and the word diff are left out. Build ticket B-13 adds them.

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 -q on a clean git archive HEAD export of 227de89 printed 192 passed in 28.76s. The merged Check run on each site fixture passes every record except pr-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 -q printed 106 passed in 11.43s on 93e7830. On the first commit, the same command on a clean git archive HEAD export printed 100 passed in 12.69s, which proves no fixture is git-ignored.

Acceptance criteria and the test for each:

Criterion Test in tests/test_site.py
Grid of Sources by gates in the desk log look test_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_cell
Status from recorded Notion states, run record ignored test_each_cell_status_comes_from_notion_and_never_from_the_run_record, test_an_unknown_notion_status_fails_the_build
Stamp with counts, round, owner and Status, no percentage test_a_cell_shows_counts_round_owner_and_status_and_no_percentage
No page and a failed Check shows held, never Drafted test_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_drafted
Mode line with Autonomous locked and the sandbox line test_board_shows_the_mode_line_and_the_sandbox_line
Three greyed roadmap columns with owner role and "adds one file" test_the_three_roadmap_columns_are_greyed_with_owner_role_and_one_file
Blog lines beside quotes, changelog and FAQ entries, social Copy button test_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_button
Ask and skip rows span the row with the reason and the questions test_ask_and_skip_rows_span_the_gates_with_their_reason
Opened in a browser at desktop width Manual, headless Playwright at 1440 by 900, screenshot kept outside the repo. Console showed one error, a missing favicon.
Merged after a non-author review Open, waits for the reviewer.

Mutation 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 test test_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.

  • Major, a rebuild left a blog page live after its gate stopped publishing. Fixed in a340077, test test_a_rebuild_removes_a_blog_page_whose_gate_is_no_longer_published.
  • Minor, changelog and FAQ refs linked to anchors that did not exist on the page. Fixed in a340077, the ref there is now a span with the quote as its title. Test test_every_reference_on_a_published_page_reaches_a_target_on_that_page.
  • Minor, the test text reader counted <br> as an open element. Fixed in a340077, test test_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.

  • Major, dismissed. It said check cannot be imported. git ls-files skills/launch-content/scripts lists check.py at this head. The reviewer did not see it because the base was the B-01 tip.
  • Minor, a malformed Notion page state crashed with a traceback. Fixed in 93e7830, test 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.

  • High, two round guard mutants survived. Rows for a round of 0 and a round of true now sit in test_a_malformed_notion_page_state_fails_the_build_with_its_key. The reviewer's mutate.py now kills 23 of 23.
  • Medium, an owner claim's quote was labelled as the Snapshot. The blog page and the board slip now say Owner sources for a claim with gate. Test test_an_owner_claim_names_the_owner_sources_on_the_blog_page_and_the_slip.
  • Low, links not checked, owner data only. The Notion url and the source link come 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.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 32 billable files and costs up to $8.00.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 80 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: acee6339-ca96-45ed-a759-ae65900fc0fd
Commits

Reviewing files that changed from the base of the PR and between 7157461 and 1763c44.

Files selected for processing: 32

  • skills/launch-content/scripts/build_site.py
  • skills/launch-content/site/board.html
  • skills/launch-content/site/post.html
  • tests/fixtures/site/notion.json
  • tests/fixtures/site/owners.json
  • tests/fixtures/site/records/brief-dashboards/run.json
  • tests/fixtures/site/records/brief-dashboards/snapshot.md
  • tests/fixtures/site/records/brief-seats/gates/blog/draft.md
  • tests/fixtures/site/records/brief-seats/gates/changelog/draft.md
  • tests/fixtures/site/records/brief-seats/gates/faq/draft.md
  • tests/fixtures/site/records/brief-seats/gates/social/draft.md
  • tests/fixtures/site/records/brief-seats/run.json
  • tests/fixtures/site/records/brief-seats/snapshot.md
  • tests/fixtures/site/records/pr-csv/gates/blog/draft.md
  • tests/fixtures/site/records/pr-csv/gates/changelog/draft.md
  • tests/fixtures/site/records/pr-csv/gates/faq/draft.md
  • tests/fixtures/site/records/pr-csv/gates/social/draft.md
  • tests/fixtures/site/records/pr-csv/run.json
  • tests/fixtures/site/records/pr-csv/snapshot.md
  • tests/fixtures/site/records/pr-pdf/gates/changelog/draft.md
  • tests/fixtures/site/records/pr-pdf/run.json
  • tests/fixtures/site/records/pr-pdf/snapshot.md
  • tests/fixtures/site/records/pr-refactor/run.json
  • tests/fixtures/site/records/pr-refactor/snapshot.md
  • tests/fixtures/site/records/pr-rounding/gates/changelog/draft.md
  • tests/fixtures/site/records/pr-rounding/run.json
  • tests/fixtures/site/records/pr-rounding/snapshot.md
  • tests/fixtures/site/skill/gates/blog.md
  • tests/fixtures/site/skill/gates/changelog.md
  • tests/fixtures/site/skill/gates/faq.md
  • tests/fixtures/site/skill/gates/social.md
  • tests/test_site.py

…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.
@gabchess
gabchess marked this pull request as ready for review November 16, 2026 18:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 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-16T18:23:56.843141Z 1763c44 New commits
🔒 Security Review ✅ Completed 2026-11-16T18:26:37.413833Z 1763c44 New commits
ℹ️ 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" or "@codex security review".

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

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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 gabchess left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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

  1. 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 < 1 leaves every test green. A Notion round of 0 then renders "round 0" on the cell (line 168).
    • Dropping isinstance(rounds, bool) or leaves every test green. A round of true then 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'),
  2. The chatgpt-codex-connector thread at build_site.py:303 is correct, so it cannot be dismissed. check.py:266 to check.py:272 checks a claim that carries gate against that gate's owner_sources, not the Snapshot. quote_where (build_site.py:225 to build_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 has gate, label it "Owner sources" and skip the Snapshot search. Add one fixture claim with gate and one assertion.

Not blocking

  • LOW build_site.py:264 and build_site.py:298. The Notion url and the source link go into href after HTML escaping only, so a javascript: 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 gabchess left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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

  1. HIGH, round guard. Fixed. tests/test_site.py:310 and tests/test_site.py:311 add the rows for round 0 and round true. Mutant M3b (or rounds < 1 dropped) is now killed by the round "0" row, and M3c (bool clause dropped) is killed by the round "True" row.
  2. MEDIUM, owner quotes labeled as Snapshot (chatgpt-codex-connector thread). Fixed. build_site.py:227 to build_site.py:228 return "Owner sources" for a claim that has gate, which matches check.py:266 to check.py:272. The slip uses it at build_site.py:239 and the blog page at build_site.py:304. Those are the only two places that render a quote location (grep for quote_where and Snapshot in build_site.py), so no second form of the flaw exists. The new test test_an_owner_claim_names_the_owner_sources_on_the_blog_page_and_the_slip covers both surfaces. The builder's reply on the thread names this fix and the thread is resolved.
  3. 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 c test appears both here and inside quote_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.

@gabchess
gabchess merged commit f8487a7 into main Nov 16, 2026
7 checks passed
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