Skip to content

Agenda import: one reader for every layout, and a role only by its own name - #187

Merged
ShuhaoZQGG merged 34 commits into
devfrom
feat/agenda-one-reader
Dec 2, 2026
Merged

ShuhaoZQGG merged 34 commits into
devfrom
feat/agenda-one-reader

Conversation

@ShuhaoZQGG

@ShuhaoZQGG ShuhaoZQGG commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

No issue: the owner's direction on 2026-12-01, after #186.

Stacked on #186 (fix/easyspeak-humor-empty-role), which is stacked on #185 and #184. Until they merge, the diff here also shows their commits. This change on its own (7 commits, 39 files): fix/easyspeak-humor-empty-role...feat/agenda-one-reader

It replaces the parser #185 and #186 fixed: easySpeakParser.js and simpleFormatParser.js are deleted here. Their structural cases live on in the new reader's tests.

Why

The import dialog had one box and two parsers behind it, one for EasySpeak and one for "Name (Role)", with a matcher that chose between them. They read the same things differently, and each fix made one of them a little more special. The owner set three rules instead:

  1. No EasySpeak and no simple format. One heuristic reader takes whatever is pasted, whether role and name are set apart by brackets, a dash, spaces or anything else. The only other reader is the AI one, for what the heuristic cannot read.
  2. A row is matched against the roles the user has now, whether those are the default roles, more or fewer.
  3. A role's name matches however it is written: "a role separated with blank" is also a-role-separated-with-blank, a+role+separated+with+blank, AROLESEPARATEDWITHBLANK.

Four calls the owner made on the way:

  • Role names only. The reader maps nothing onto a role. "1st Speaker" is not Standard Speech; it is a role only if the user has one called that. (Asked twice, the second time with the site's promise in view.)
  • Roles the timer does not time (Toastmaster, Chairperson, Timer, Table Topics Master, Sergeant at Arms) land on the user's role of that name, else the row is left out in every layout and the line under the box says how many were.
  • Separators and case only. A misspelt role is another name.
  • The site says what is true. The pages that promised "the right role and time limits" for every speaker are reworded.

What changes

What a paste reads as, on the default role list unless said:

Paste Before (#186) After
demo-agenda-easyspeak.txt "EasySpeak agenda: 9 speakers found." Nine rows on default roles (Standard Speech, Ice Breaker, Speech Evaluation, General Evaluation, Short Roles) "Found 9 speakers. 9 need a role: you pick it after import. 5 left out: the timer does not time those roles." Nine rows in the agenda's words: "(1st Speaker) is not one of your roles"
the same, with roles named Grammarian and General Evaluator those two rows on the user's roles, the rest on default roles those two rows ready, seven ask for a role
Bob - Ice Breaker, Ice Breaker: Bob, Bob | Ice Breaker one row named "Bob - Ice Breaker", no role Bob, Ice Breaker
Bob (ICEBREAKER), Bob (IceBreaker) Bob, "(ICEBREAKER) is not one of your roles": the words had to be written apart Bob, Ice Breaker
Role<TAB>Name / Speaker 1<TAB>Bob / Hark Master<TAB>Grace "We don't recognise this format." every row read, each asks for a role
Joke Master<TAB>Sam Lee in a table, no role of that name row dropped without a word Sam Lee, asks for a role
Rachel (Toastmaster) Rachel, asks for a role left out and counted
Toastmaster<TAB>Rachel, user has a role "Toastmaster" left out Rachel, Toastmaster
1st Speaker<TAB>Alice … Joke Master, blank line, Sam Lee (role "Joke Master") line says 3 speakers, import adds 2 one reading: 2 and 2
a schedule with clock times, a four-column table, prose "We don't recognise this format." the same

The reader (packages/shared/agendaReader.js, readAgendaText) looks for rows in whatever way a text sets role and name apart:

It knows a few words for roles (General Evaluator, Grammarian, the five untimed roles and so on) so it can tell a role line from a name. Those words find rows; they never give a row a role.

Role names (packages/shared/roleNames.js, roleKey): the same letters and digits in the same order, whatever the case, the spaces and the marks, written apart or together. One thing is kept: two numbers written apart stay apart, so "1-2min Role" is not "12min Role".

The dialog (packages/ui/AgendaImport.jsx): one line for every layout, "Found N speakers.", then how many need a role and how many were left out. The count and the rows added come from the same reading. The intro no longer names two formats.

The Worker (worker/agenda-import.js): an uploaded file's text goes through the same reader, and its rows count only when at least half got a role and no line has a clock time. Anything else goes to the model, which can say which role a "1st Speaker" is. The answer's via is reader where it was easyspeak or simple.

Removed: easySpeakParser.js, simpleFormatParser.js, matchAgendaFormat, importEasySpeakSpeakers, the mapping of EasySpeak's words onto default roles, the Ice Breaker read from speech details, and originalShortRole on pasted rows.

Site text: the landing page, the demo page, tutorial 3's description, the documentation and the privacy page say what the import does now.

Security

None new. No route, no stored data. The reader runs on the device for a paste and in the Worker for an uploaded file's text; every helper is one pass over a line, lines over 2,000 characters are refused, and the cost tests of #184 hold (400 ms budgets on 20,000-character worst cases, 66,000 lines with 60 roles).

Production impact

  • A user on the default roles who pastes an EasySpeak page now picks every role by hand (nine picks for the demo agenda), where the rows came in on default roles. This is the owner's call. The AI read (Pro) still assigns roles by judgement.
  • A user whose roles are named as the agenda names them gets more: any spelling of the name matches, in any layout.
  • Rows that used to vanish are read (a table row with a role of no one's), and rows for untimed roles in "Name (Role)" lines are now left out, with a count.
  • An uploaded EasySpeak document on the default roles now goes to the model, and counts against the daily read limit, where the format read it for free.
  • Analytics: agenda_imported no longer sends import_type: "easyspeak"; every paste is "bulk", with a new left_out_count. The Worker's agenda_ai_read sends via: "reader". Any insight filtered on the old values stops moving.
  • Tutorial 3's video still shows the old import. Its transcript is left as spoken, with a line under it on what changed. The video is the owner's to redo.
  • .factory/oracles/90.json still names simpleFormatParser.test.js, which is gone. Left alone on purpose: touching an oracle file trips the oracle check.
  • No flag, no migration. Rows already in an agenda are untouched. Rollback is a revert.

Testing

  • npm test: pass, 167 files, 3,414 tests
  • npm run test:e2e: pass, 163 tests locally on cadeb1c. 162 passed on 438e811 locally and in CI (its Web e2e step); the 163rd is IM-15's paste in the Zoom app, added after
  • npm run test:specs: pass, 18 specs valid
  • Oracle: none, not a factory issue. The reader's tests were written before the reader (154 in agendaReader.test.js and roleNames.test.js, ported from the three files they replace, with the new expectations).
  • Each rule of the reader was then broken on purpose, one at a time: 36 changes, each fails at least one test. The first pass let 9 of 38 through: tests were added for 7, one showed a piece of state that did nothing (removed), and one was a change no text could reach (dropped from the list).
  • 200,000 generated role tables whose right reading is known (roles with and without a name, tabs, wide spaces, role and name on separate lines, blank lines, the user's own roles, names with role words in them): all read right, and with the same rows as the parser this replaces.
  • Mixed generated texts against the old matcher (150,000, then 100,000 after three rules were tightened), to see where the two differ. Each class of difference was read through: new layouts read, spellings matched, untimed rows left out, and tables of three or more columns now refused where they were half read. The three rules tightened came out of this: a counted label with a mark in it ("1st Speaker: Alice") is not a role line; a row of three or more cells needs a line that names the columns; a line that is only a length is no speaker.
  • Seen by hand in the web app in a plain browser, on a clean origin: the demo table gives "Found 9 speakers. 9 need a role: you pick it after import. 5 left out: the timer does not time those roles.", the toast "Imported 9 speaker(s). 9 need a role" and nine highlighted rows. Six lines with a dash, a colon, brackets and a bar give "Found 4 speakers. 2 left out: the timer does not time those roles." and four rows with their roles' timings.

Evidence (real Zoom client)

None, by the owner's decision on 2026-12-02: the change touches no Zoom client API, so the Playwright suite stands in for a real-Zoom run. Why it touches none is the first item under Not verified.

Not verified

  • Not run in the real Zoom client, and nothing deployed to dev, on the owner's call. The change touches no Zoom client API:

    • no added or removed line of the PR calls the Zoom Apps SDK or its wrapper (apps/zoom-app/src/utils/zoomSdk.js). In the Zoom app it changes only the import functions in TimerContext.jsx and the dialog's count in useAgendaEditor.js;
    • the rows those functions write have the shape they had, less originalShortRole, which is panel text and is never drawn on the video. A row's colours still come from its role's rules, through code this PR leaves alone;
    • the one Zoom-specific step in the flow, a paste into the webview's text box, is code this PR does not touch (IM-07 and IM-14 proved it at 88a2845), and the reader uses no JavaScript the old parsers did not already run in that webview (Unicode classes in a regex, matchAll).

    So the moved steps (agenda-import IM-02, IM-07, IM-14, IM-15; new-look NL-13) are checked by Playwright with the SDK mocked: e2e/zoom.agenda-import.spec.js (IM-07's and IM-14's tables, and IM-15's paste, added for this), e2e/zoom.timer-flow.spec.js (IM-02's six lines) and e2e/zoom.new-look.spec.js (NL-13). Both specs stay status: stale (also for Agenda import: one paste box for every format, with an AI read and an upload for Pro (#111) #184's reads), and verified_at is untouched: the next real-client run of them, which the release check lists, covers these steps. The needs:zoom-test label is removed.

  • agenda-import IM-09 to IM-11 and IM-13 (the AI reads) were already owed a rerun by Agenda import: one paste box for every format, with an AI read and an upload for Pro (#111) #184. Their steps do not move here.

  • timer-core (covers TimerContext.jsx) and zoom-deeplink (covers Landing.jsx): reviewed, no step moves, not rerun. Notes added.

  • PostHog events were not read anywhere: the payloads are asserted in unit tests only.

  • The model's reading of a document that the reader now passes on was not tried against the real models.

  • What the reader still reads wrongly is listed in the spec's Not covered: a role with nobody in it takes the line below as its name when it cannot know that line for a role ("Jokemaster" with no role of that name, "Grammarian:"); a line whose two parts are both roles, or neither, stays whole; a longer wording of an untimed role ("Toastmaster of the Evening") is not left out.

Look here first

  1. tableOf and readLines in packages/shared/agendaReader.js: when the reader takes a text for a table, for a list, or for neither. A wrong claim here is what brings a paste back with people missing.
  2. roleKey in packages/shared/roleNames.js: the one place a role's name is compared, and the mark it keeps between two numbers.
  3. cellRow and splitAtMark: which part of a row is the role. A tab-separated row with no role either side knows follows the side the rest of the table has its roles on; wide spaces alone do not.
  4. The untimed roles are matched by their whole name, with or without a number. "Sergeant-at-Arms" and "Toast Master" are left out now; "Toastmaster of the Evening" is not, and asks for a role.
  5. apps/web/src/pages/Landing.jsx and apps/web/public/tutorials.html: the reworded promise, and the note under tutorial 3's transcript.

…upload for Pro (#111)

The import dialog had two tabs, EasySpeak Format and Simple Format, and the
user had to pick one before pasting. It now has one text box. matchAgendaFormat
(packages/shared/agendaImport.js) works out which format a text is in and reads
it with that format's own parser, so a paste lands as it did under its tab.
A plain list of short lines is still taken one name per line. Text in no known
format adds nothing: the dialog says so and offers "Add each line as a
speaker", which is what Simple Format used to do with it.

Behind the new agenda_ai flag, and for Pro:
- "Read with AI" sends a text no format matched to POST /api/agenda/import.
- "Upload a photo or file" sends a PDF, a Word or Excel file, a CSV, a text
  file or a picture. A tall picture is cut into two or three overlapping
  bands first, because a vision model sees a whole page too coarsely and
  mixed up its rows. A screenshot pasted into the box, or a file dropped on
  the dialog, is read the same way.
- What comes back is listed for review, each role beside the slot as the
  agenda worded it, and is added only on confirm. A row whose role is not one
  of the user's roles is added highlighted, as for Simple Format (#91).
A free plan sees both controls locked, opening the upgrade. With agenda_ai or
pro off, nothing of them shows.

The dialog's body is one component in packages/ui, used by the Zoom app's
modal, design B's paste sheet and the web app's modal.
…ext, a document or a photo (#111)

Pro, behind the agenda_ai flag. Takes a pasted text no format matched, or an
upload:
- a photo (one picture, or the bands of a tall one) goes to a vision model;
- a PDF, Word or Excel file is converted to text by Workers AI toMarkdown,
  tried against the formats the dialog reads (only a match on structure
  counts), and read by the model when none fits; a .csv or .txt is read as it
  is.
The model picks each role by its number in the list the client sent, so it
cannot invent one, and the slots the timer does not time (Toastmaster, Timer,
Table Topics Master, Sergeant at Arms, chair) are dropped even when it lists
them.

Workers AI first (Gemma 4 26B through a new AI binding; no retention, no
training, 10,000 free neurons a day), then OpenRouter's free models, the
Table Topics setup, when it errors or answers nothing usable.

Limits: session, flag and Pro entitlement in that order; AGENDA_AI_LIMITER at
10 a minute and a KV counter at 50 model reads a day, both per account;
20,000 characters, 5 MB, 60 rows. Nothing of an agenda is stored or logged.
…e paste box and AI import (#111)

- Privacy page: what AI Agenda Import sends and where (Cloudflare Workers AI,
  OpenRouter as the backup), and that an agenda the app reads by itself is
  never sent. Four service providers, no longer three.
- Documentation page: one box for both formats.
- FEATURE_FLAGS.md: agenda_ai.
- agenda-import spec: IM-02, IM-05 and IM-06 no longer pick a tab; IM-07 to
  IM-13 added (EasySpeak in the same box, an unknown format, Read with AI,
  the file dialog with a PDF and a picture, the free-plan lock, a pasted
  screenshot), with a sample agenda under fixtures/. Not run yet.
- timer-core and new-look reworded where they opened the Simple Format tab;
  new-look gains NL-24. pro-launch and club-membership note the Upgrade
  dialog's new line.
- The Worker reads a request body chunk by chunk and stops at the limit, so a
  body with no Content-Length, or a false one, is not held in memory whole.
- Only the first 80,000 characters of a document's text are looked at before
  it is cut to the 20,000 the reader takes.
- The format matcher claims nothing for text with a line over 2,000
  characters: the parsers scan a line more than once, and no agenda row is
  that long.
…ocked screen (#111)

The run on 2026-11-30 stopped before the first click: the Mac's screen was
locked. No step has run on the one-box dialog yet.
…is locked

A locked screen let screencapture write a black file and Zoom launch with no
window, so a run deployed and announced itself before it found out. preflight
now reports it as a blocker and zoom-up exits 2 before launching Zoom.
#111)

The read is meant never to reject. If it ever does, the dialog showed "Reading…" for good; it now shows "That could not be read." and keeps the text.
…ds it in one pass (#111)

From the code review of this change:
- EasySpeak is known by its own header, by one "1st Speaker" row, or by its
  other role rows in numbers with no foreign table row beside them. One speaker
  pasted with the speech details, and speakers with six lines of details each,
  are EasySpeak again (they had become "Name (Role)" and nothing). A club's
  own "Speaker 1 <tab> Bob" table is no longer read for its Grammarian alone,
  and "Role  Name" is not EasySpeak's header.
- A format that reads nobody claims nothing, so the dialog is never left with
  a greyed-out Import and no way on.
- A schedule whose lines end in "(5-7 min)" is not "Name (Role)".
- `strict`, for a file's text in the Worker: only EasySpeak's own header, or
  "Name (Role)" lines where most roles are the user's, count.
- The EasySpeak parser's project-reference pattern backtracked cubically (2 s
  on 18 KB). hasProjectRef answers the same in one pass; 300,000 random
  strings agree with the old pattern. Trailing whitespace is trimmed with
  trimEnd for the same reason.
- A text over 20,000 characters is refused before it is sent, as too long, not
  as "a file over 5 MB". A decoded photo is released on every path.
…#111)

From the code review of this change:
- An uploaded file's text is matched strictly. A club's own role table and a
  schedule came back as "Found N speakers" with people missing or junk rows,
  and a file had no way to the model. `mode=ai` in the form skips the match:
  the dialog sends it when the user asks for the AI's reading after all.
- markdownToPlain and csvToTabbed no longer use patterns that rescan a run
  from every start (3.2 s and 2.4 s on 80,000 characters; now under 3 ms).
- The day's count is written before the model is asked, and the limiter is 6
  a minute. The count is still approximate, as KV must be; the comments now
  say what it can and cannot hold.
- Failure logs never carry a raw error, including one with no name.
- A paste over the limit answers `text_too_long`.
…s Tab and Escape (#111)

From the code review of this change:
- A format that claims a paste and reads nobody gets the same ways out as an
  unknown format: the AI read, or each line as a speaker.
- A file a format read offers "Read it with AI" in its review, and sends the
  same file again.
- A 402 shows its message and locks the controls. It no longer opens the
  upgrade by itself, and on the web the upgrade opens in a new tab: going to
  /account in the same one unmounted the timer, a running speech included.
- A row the reader gave no role never borrows one from its wording ("Custom",
  "Ice Breaker"), which let it pass for that role with no rules behind it.
- Design B: the paste sheet is not drawn while the Upgrade dialog it opened is
  up, so Escape there cannot close it and wipe the text; and the sheet's Tab
  loop no longer ends on a hidden file input (the Cards sheet had that too).
- The classic dialogs no longer claim aria-modal without moving focus.
- Tests state their expected rows instead of reading them back from the
  matcher under test.
A read is normally 5 s. On the final code's live check one stalled past 35 s and OpenRouter then answered it in 2 s; 20 s keeps the slow-but-working reads (15 to 18 s seen) and halves the wait for a stalled one.
…in the real Zoom client (#111)

agenda-import is current on 8ca49d0: IM-01 to IM-11 and IM-13 passed on
FLAGS_FORCE "1,new_look=0", IM-08 with agenda_ai off; IM-12 (human) not run.
new-look: NL-13 and NL-24 passed on FLAGS_FORCE "1"; the spec stays stale
for its other steps. The skill's gotchas gain what the run taught: check
each dialog click, pbcopy needs a UTF-8 locale, the file dialog over Zoom.
…between roles by length (#111)

A read now sends each listed role's green, yellow and red times beside the
role names. Workers AI's model sees them as "1min Role (runs 30 sec to
1 min)": a role a user made had only its name to go by, so one-minute
reports landed on "1-2min Role", and a list of names that say nothing
got no role at all.

Measured on a remote preview against the real models (2026-12-01), same
agenda, five reads each way: with a club's own list the three one-minute
reports go to "1min Role" (5 of 5; "1-2min Role" before); with names that
say nothing 10 of 10 rows get the role of their length (0 of 10 before);
with the built-in list nothing changes.

The OpenRouter fallback keeps reading by names: its free models took the
times as a reason to give every slot a role ("Awards and close" on an
evaluation role of the same length). Take a Break's times are left out:
they count a break down and say nothing of a slot's length.

The privacy page says the role names and times are sent.
… read; stale until rerun (#111)

No step's Do or Expect moves. IM-09 gains what to read in the request with
the inspector on. The spec is stale again: the change was measured against
the real models on a remote preview, and the Zoom rerun is put off.
…nd the Ah Counter

parseEasySpeakText read 7 of the 9 timed rows of demo-agenda-easyspeak.txt
and said nothing about the other two.

- With speech details shown, the row after a tab-separated role row was taken
  as that row's speech details whenever it was over 20 characters long.
  "General Evaluator<TAB>Michael Lee" became the details of the 3rd Evaluator
  above it. A line that is itself a role row is never speech details now.
- "Ah Counter" and "Public Speaking Tip" were in the list that maps a short
  role, but in neither list that recognises a role row, so their rows were
  never read. Both are recognised now, tab-separated and with the name on the
  next line, and "Ah-Counter" with its hyphen too. They match as the whole
  cell or line: a speech called "Public Speaking Tips for Beginners" and a
  speaker called Sarah Counter are not roles.
- A role with nobody in it yet took the role row below it as its name.
  Reading "Ah Counter" would have made that visible for one more role, so
  the name look-ahead leaves a role row alone as well.

The roles the timer skips (Toastmaster, Chairperson, Timer, Table Topics
Master, Sergeant at Arms) are unchanged.
…for one

EasySpeak import was the one way onto the agenda that did not look at the
user's role list. Its parser gave every row one of five built-in role names,
and the import stored that name with Standard Speech's rules when the user had
removed the role. A club running only its own roles got every row highlighted
as "(Short Roles) is not one of your roles", whatever the agenda called it.

A row now gets its role from the roles the user can pick, as "Name (Role)"
lines and AI reads already do:

1. the user's own role with the name the agenda uses ("Grammarian",
   "Ah Counter"), ahead of the built-in mapping. Same words, case and
   punctuation aside, and nothing looser: "1st Speaker" is not "Speaker";
2. else the built-in the row maps to, while the user still has it;
3. else no role. The row keeps the agenda's wording and no rules, and the
   Agenda tab asks, as it does for any other row (#91). An Ice Breaker speech
   is not put on Standard Speech when only that one is left.

A row whose role the parser has no word for ("Joke Master") is read when a
role the user added has exactly that name, and is left out otherwise, as
before. The roles the timer skips stay out whatever the user has.

The line under the paste box and the toast now say how many EasySpeak rows
need a role, in the words they use for "Name (Role)" lines, and the
agenda_imported event carries needs_role_count and custom_role_count for
EasySpeak too. On a device with the built-in roles nothing changes but the
rows the previous commit stopped dropping.

parseEasySpeakText takes the role list as a second argument (the built-in
roles when left out) and returns `roleText`, the role as the agenda words it.
matchAgendaFormat passes its list on, so the Worker's read of an uploaded
EasySpeak document follows the same rule.
…g on the device's own role

agenda-import: IM-07's count goes from seven to nine (the General Evaluator
and the Ah Counter), and it says what a device with no built-in role left
shows now: rows ready only on a role of that name, the others highlighted in
the agenda's words, the count of rows that need a role in the line under the
box and in the toast. IM-14 is new: a Grammarian row lands on the device's
own Grammarian instead of Short Roles, a Joke Master row is read because the
device has that role, and a Word of the Day row is not. The note about the
two rows the parser dropped comes out of Not covered; what EasySpeak import
still leaves out goes in.

new-look: NL-13's EasySpeak count is nine.
timer-core: reviewed against importEasySpeakSpeakers; no step moves.

Not run yet: verified_at is unchanged.
…n the real client

The run was blocked on 2026-12-01: the Mac was in use. verified_at stays at
the last real run (8ca49d0), which predates the rewritten IM-07 and the new
IM-14.
…h the list each time

The EasySpeak parser asked findRoleByName about every line, and that splits
every role name into words again on each call. With 60 roles of the user's
own, a 20,000-character text in the shortest lines it can have took 110 to
130 ms, against 5 ms with the built-in roles alone. The Worker runs this on
the text of an uploaded file.

roleFinder (simpleFormatParser.js) works out each name's words once and
answers as findRoleByName does; the parser builds one per parse. The same
text now takes about 3 ms, and a test holds it there on a text ten times as
long.
Brings in 7ec6ec8 (the AI read is told how long each role runs) and 5e3e5a9
(its spec review). Two conflicts, both resolved by keeping both sides:

- e2e/zoom-client/agenda-import.md: #111's "Stale since 2026-12-01" note,
  then this branch's own stale note and IM-14.
- e2e/zoom-client/INDEX.md: one agenda-import row carrying both reasons the
  spec is stale.
…l Zoom client

2026-12-01, this branch at 88a2845 on dev bbefa644 (FLAGS_FORCE "0"), with
IM-04 before and between them:

- IM-07: "EasySpeak agenda: 9 speakers found." and nine rows, the General
  Evaluator and the Ah Counter among them. The test device has no built-in
  role and none named as the agenda names one, so all nine were highlighted
  in the agenda's words and counted as needing a role.
- IM-14: with Grammarian and Joke Master added, a Grammarian row landed on
  the device's own Grammarian (15/30/45 s in the Live tab), a Joke Master
  row was read, a Word of the Day row was not, and the 1st Speaker was
  highlighted.

PostHog was not read: a dev build from a worktree carries no key. The spec
stays stale for #111's pending reads, so verified_at is unchanged. IM-14's
cleanup line now says what the client needs (Remove applies at once).

Log: test-runs/2026-12-01-easyspeak-import-roles/run.md
…h nobody in it no longer takes the role line below as its name

Two rows the EasySpeak parser still dropped or misread, left out of the
last change on purpose.

"Moment of Humor" in the American spelling was not read at all: the word
was missing from the short roles, from both copies of the role pattern
for a table row, and from the test for a role alone on its line. Both
spellings now give a Short Roles row that keeps the agenda's spelling.
In the line test "humor" counts as a word of its own, so a speech title
with "humorous" and "moment" in it is still not taken for the role.

A role with nobody in it yet, pasted with the role on one line and the
name on the next, took the role line below it as its name:
"Grammarian / General Evaluator / Michael Lee" came back as a Grammarian
called "General Evaluator". The next line is now refused as a name when
the whole line is a role the parser knows, with or without a number, or
names one of the roles the user added. Never by a word in the line: a
name can hold a role word ("Tim Timer", "Sarah Counter").

One of the user's roles is read only with a name right under it, so with
nobody in it, it reached the second place a name is taken, further down.
There it now ends the role above instead: that role has nobody either,
and a name after a blank line is put on neither.

The roles the timer skips are the same as before.
…ows now read; no step moves

Not covered no longer lists "Moment of Humor" or a role with nobody in it
taking the role line below as its name: 87ccc2e reads both. What is left
of the second is said there: a line the parser cannot know for a role (a
role it has no word for, or one worded another way) is still taken as the
name.

Reviewed against 87ccc2e: no step pastes either, and the parser reads
every text a step pastes as it did before. IM-07 and IM-14 were not
rerun. status, verified_at and verified_on are unchanged.
…its own name

The import dialog had two parsers behind its one box, an EasySpeak one and
a "Name (Role)" one, and a matcher that chose between them. They read the
same things differently: one mapped the agenda's words onto the default
roles, the other took exact role names; one dropped the roles the timer
does not time, the other kept them; the count under the box and the rows
added came from two readings of the text.

Now one reader (packages/shared/agendaReader.js) reads whatever is pasted:
 - a table of roles and names: two cells by a tab or wide spaces, role
   first or name first, or the role on one line and the name on the next;
 - one speaker per line, the role in brackets or set off by a dash, a
   colon, a bar, a comma or any other mark, or, when most lines have it,
   by a space alone.
What it cannot tell the rows of (a schedule with clock times, a table of
more columns, prose) it claims nothing of, and the AI reader or "Add each
line as a speaker" takes over, as before.

A row gets a role only when the agenda names one of the roles the user has
now (packages/shared/roleNames.js): the same letters and digits, whatever
the case, the spaces and the marks, written apart or together. "Ah
Counter", "ah-counter", "AH+COUNTER" and "AHCOUNTER" are one name; a
misspelling is another, and so is "12min" beside "1-2min". Nothing else is
mapped: "1st Speaker" is no longer Standard Speech, and a default role is
treated like any other. A row with no role keeps the agenda's wording and
asks for one.

A row for a role the timer does not time (Toastmaster, Chairperson, Timer,
Table Topics Master, Sergeant at Arms) lands on the user's role of that
name, or is left out, in every layout, and the line under the box says how
many were left out.

For an uploaded file the Worker takes the reader's rows only when at least
half of them got a role and no line has a clock time; any other file goes
to the model, which can say which role a "1st Speaker" is.

The two parsers, their tests and the matcher are gone. Their cases are in
agendaReader.test.js and roleNames.test.js with the new expectations.
The landing page, the demo page and tutorial 3 said every speaker comes in
with the right role and time limits. Since the reader matches a role by
its own name only, that holds for a role that is in the user's role list;
the role of any other speaker is picked by hand. The pages say so.

Tutorial 3's transcript is left as spoken, with a line under it on what
has changed since. The video itself still shows the old import.

The documentation and the privacy page no longer name two formats.
… one reader; stale until run

agenda-import: covers the reader and the role-name module in place of the
two parsers. IM-02's line under the box loses ", one per line". IM-07 is
rewritten: the demo table's nine rows each ask for a role in the agenda's
words, and five rows are left out and counted. IM-14 is rewritten: the row
for a role the device does not have is read and asks for one. IM-15 is
new: a role after a dash, before a colon and in brackets, in three
spellings, and two untimed roles left out. Not covered says what the
reader still reads wrongly and what it claims nothing of.

new-look NL-13: the counts are reworded, and "NL Two (Table Topics
Master)" becomes "(Table Topics)", since a row for that untimed role is
now left out. timer-core: review note, no step moves.

No step ID is renumbered. verified_at and verified_on are untouched.
@ShuhaoZQGG ShuhaoZQGG added the needs:zoom-test Factory: waiting for the real-Zoom station label Dec 1, 2026
A role after a dash, before a colon and in brackets, written in lower
case, run together and with a plus sign, lands on the device's own role
with its rules; the Toastmaster's and the Timer's rows are left out and
counted. The Playwright stand-in for agenda-import IM-15, which is not run
in the real client for this change.
… the owner's call

The owner asked whether the change touches any Zoom client API and, as it
does not, had the e2e suite stand in for a real-Zoom run. agenda-import,
new-look NL-13 and INDEX.md say so, and name the Playwright tests that
cover IM-02, IM-07, IM-14, IM-15 and NL-13 with the SDK mocked.

status, verified_at and verified_on are unchanged.
@ShuhaoZQGG ShuhaoZQGG removed the needs:zoom-test Factory: waiting for the real-Zoom station label Dec 2, 2026
@ShuhaoZQGG
ShuhaoZQGG marked this pull request as ready for review December 2, 2026 15:51
@ShuhaoZQGG
ShuhaoZQGG merged commit d18bc18 into dev Dec 2, 2026
1 check passed
@ShuhaoZQGG ShuhaoZQGG mentioned this pull request Dec 3, 2026
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