Skip to content

Release blockers for #191: Table Topics tags and test, and the agenda reader's lost speakers - #192

Merged
ShuhaoZQGG merged 29 commits into
devfrom
fix/pre-master-blockers
Dec 3, 2026
Merged

ShuhaoZQGG merged 29 commits into
devfrom
fix/pre-master-blockers

Conversation

@ShuhaoZQGG

Copy link
Copy Markdown
Contributor

No issue: found by the release check for #191 (dev → master).

Why

#191's CI is red, and its production build would fail the same way: two Table Topics tests fail once master's questions meet dev's theme search (validate.test.js: 60 questions with no theme tags; themeMatch.test.js: a master question says "second chance"). Dev alone is green because it does not have master's 300 weekly questions.

The release review also found that the agenda paste box loses speakers without saying so. Reproduced with readAgendaText:

  • 1st Speaker - Sarah Chen and three more lines like it gave one garbled row.
  • A role on its own line followed by two names kept only the first.

What changes

  • Merge master into dev: the five weekly question batches (2026-11-02 to 11-30). No conflict; the two factory workflow files were already identical.
  • Tags for the 60 questions of 2026-11-30 (content/tags.json, 7 each, 299 of 304 distinct tags reused). Every question is tagged again.
  • Theme test: instead of "no keyword match at all for second chances", it checks that text alone cannot fill a list and that tags find more than text does.
  • Agenda reader (packages/shared/agendaReader.js): a hyphen beside a space sets a label and a name apart, as a colon does, so 1st Speaker - Sarah Chen reads as 1st Speaker: Sarah Chen already did. A hyphen inside a word (Table-Topics) is still the role's own. Roles are still assigned only by the user's own role names.
  • Lines not used: the reader counts the lines it took nothing from (unused). The line under the box ends "N lines not used." and "Add each line as a speaker" is offered there too, not only for a text the reader cannot read (packages/ui/AgendaImport.jsx; both apps pass the count on).
  • A role on its own line still takes one name. A second name under it cannot be told from a speech's title (1st Speaker / Sarah Chen / My Journey must give only Sarah Chen), so that case is now reported, not guessed.

Security

None.

Production impact

No flag: this reaches everyone with the next release.

  • Table Topics: the 60 newest questions can be found by theme. Nothing else on the page changes.
  • Agenda import: label - name lines now import. A paste with lines the reader passes over shows "N lines not used." and the add-each-line link. The demo EasySpeak agenda reads as before (10 rows, 4 left out, none unused).
  • No migration. Rollback is a revert.

Testing

  • npm test: 167 files, 3,422 passed
  • npm run test:e2e: 264 passed, 1 skipped
  • npm run test:specs: 18 specs valid
  • Oracle: none (not a factory issue)

Evidence (real Zoom client)

No real-Zoom run for this change: it is reader logic and one status line, with nothing on the Zoom-only surface. e2e/zoom-client/agenda-import.md carries a dated review note; no step moves. Stand-ins: agendaReader.test.js ("a counted role and a name set apart by a spaced hyphen", "lines it takes nothing from") and AgendaImport.test.jsx ("says how many lines it did not use…"); the Playwright pastes in e2e/zoom.agenda-import.spec.js and e2e/web.agenda-import.spec.js assert unchanged lines.

Not verified

  • The new "Add each line as a speaker" link under a recognised text has unit tests but no Playwright case.
  • The new tests were written before the fix but were not seen failing first.
  • agenda-import stays stale in the spec index, as before this PR.

Look here first

  • packages/shared/agendaReader.js: SPACED_HYPHEN in roleBook's slot checks, and the unused count in readTable.
  • packages/ui/AgendaImport.jsx: the status suffix and the second place the add-each-line link shows.
  • apps/table-topics/test/themeMatch.test.js: the rewritten assertion.

ShuhaoZQGG and others added 29 commits November 2, 2026 05:20
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015maz8YTBwvhmWVjoUsEcwP
…11-02

content(tabletopics): +60 questions for 2026-11-02
master is the default branch. GitHub runs issue-label workflows and reads issue and PR templates from it, and claude-code-action only runs a workflow identical to the default branch's copy. These files are byte-identical to dev's (chore/factory-workflows-sync), so merging dev into master later adds nothing new for them.
…ster

ci(factory): add the factory workflows and templates to master
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015maz8YW6L6EGogUaVtouqa
…11-09

content(tabletopics): +60 questions for 2026-11-09
Without --model the action used its default, Sonnet 5.5 (#90's build). Pin plan and build to claude-opus-5-5 with --effort high, matching interactive sessions. Byte-identical to dev's copies.
ci(factory): run the cloud stations on Opus 5.5 at high effort
… PRs

claude-code-action 3fd0895 (2026-11-12, anthropics/claude-code-action#2001)
denies code-running commands on PRs whose author lacks write access, and
counts bots as untrusted. Factory PRs are opened by the Claude bot, so the
#80 build (run 43660639722) had node, npm and vitest denied and stopped
before doing anything.

Set restrict_untrusted_prs: "false" on the plan and build stations. Their
trust check is the gate: state.mjs only lets a station run after a factory
actor opened the human gate, and fork PRs get no secrets. Both files stay
identical on dev and master.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015maz8Xciv6oYnHyf4fybNu
… hour (master)

Same change as the dev PR; the file stays identical on dev and master. The Claude App token expires after 60 minutes, so builds that ran longer ended silently (#80, #167). The job's GITHUB_TOKEN lasts the whole job.
…ken-master

Factory: give the build station the job token, which outlives the hour (master)
Same change as the dev PR; factory-build.yml stays identical on dev and master.
…essage-master

Factory: print how Claude ended when a build runs (master)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015maz8azuz21VNC3UfqvDjA
…11-23

content(tabletopics): +60 questions for 2026-11-23
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015maz8bYARws75DiViwPksZ
…11-30

content(tabletopics): +60 questions for 2026-11-30
The same factory-build.yml line as #189 on dev, so the file stays
byte-identical on both branches (blob 341daa0). The build station's verify
step runs `npm run test:e2e`, which #189 extends with the zoom-webkit
Playwright project; without WebKit installed, that project can't launch.
…-master

Factory: install WebKit in the build station (master)
Master's newest weekly batch arrived after the tags were written (#166), so
the merged tree had 60 questions with no entry in tags.json and
validate.test.js failed. 7 tags each, 299 of the 304 distinct tags reused.
…s "second chance"

It expected no keyword match at all for "second chances", which held on dev's
919 questions and broke on master's contest-style-048. It now checks that text
alone cannot fill a list and that tags find more than text does.
Two layouts dropped people on import, and the dialog only said "Found N
speakers":

- "1st Speaker - Sarah Chen" (a counted role, a spaced hyphen, a name) was
  taken for a role line with no name, so four such lines gave one garbled row.
  A hyphen beside a space now sets the two parts apart, as a colon does. A
  hyphen inside a word ("Table-Topics") is still the role's own.
- A role alone on its line still takes one name: a second name under it cannot
  be told from a speech's title. The reader now counts the lines it took
  nothing from, the line under the box ends "N lines not used.", and "Add each
  line as a speaker" is offered there too, not only for a text it cannot read.

agenda-import.md: reviewed, no step moves; unit tests stand in (no Zoom-only
surface).
@ShuhaoZQGG
ShuhaoZQGG marked this pull request as ready for review December 3, 2026 04:05
@ShuhaoZQGG
ShuhaoZQGG merged commit 7538e48 into dev Dec 3, 2026
1 check 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.

2 participants