Skip to content

feat(marketing): home 06 — an interactive audit film: decide the gray zone, unmerge, the rule holds (#1297) - #1298

Merged
athvin merged 7 commits into
mainfrom
issue/1297-marketing-audit-film
Nov 27, 2026
Merged

athvin merged 7 commits into
mainfrom
issue/1297-marketing-audit-film

Conversation

@athvin

@athvin athvin commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Closes #1297

🚧 Claimed by an agent session — 2026-11-27T03:28:17Z, session Claude Code:30a1182e-8c7e-47e3-92ac-cda64c13fcfc on brians-MacBook-Pro.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

Home section 06, "Keep the last word", becomes an interactive film about Meridian Supply. A visitor decides a pair in the gray zone between the two thresholds, unmerges a record that joined by mistake, and watches the rules hold on the next run.

Why

The owner asked for visitors to understand how to unmerge an already merged record and how to choose in the gray zone. The old section was an SVG diagram that could only play, and its packets sampled 60 WAAPI keyframes each, the #1220 WebKit cost.

Proof

  • make frontend: exit 0 on the rebased branch. Lint, Prettier, types, authz, vitest with coverage, build, and Playwright on desktop-chromium, mobile-chrome and mobile-safari: 1091 passed.
  • New tests: 12 unit and 5 component tests (17 in all), the three rewritten audit specs, and three new marketing-scenes specs. Three unit mutants were all caught: a second never rule, time making the decision, and unmerge without a selection. The height spec was seen failing (87px, then 56px) before the fixes.
  • Baselines: regenerated in mcr.microsoft.com/playwright:v1.63.0-jammy. Committed: marketing-audit x3 and marketing-cta on phones, whose sub-pixel shift comes from the section above it changing height. Not committed: reviews-mobile-chrome and two top rows of marketing-hero-mobile-chrome (0.24%), which this diff does not explain.
  • Skills: make skills-check passed. make check: n/a — no Rust, entities or workflow changes.

Risk & rollback

Risk: front-end only. One client island replaces another; no API or data changes. Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:30a1182e-8c7e-47e3-92ac-cda64c13fcfc on Mac · 2026-11-27T05:11:55Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: 5da7b63d — frontend 45943422574 ✓, rust 45943422438 ✓, marketing preview 45943422426 ✓, infra ✓, devcontainer ✓ (all 7 runs on the merge SHA succeeded).
  • images built, or correctly never ran because nothing that goes into
    an image changed: built — run 45943422642 success.
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: deploy run 45943603770 success (05:04Z). The running er-web Next server at dupezero.com serves the film: / carries audit-desk, the new lede (“Decide the close calls in the gray zone…”) and the poster's “Kept apart by your never-match rule”, and the old diagram's REG-01 is gone (x-nextjs-cache: HIT from Next). /docs still carries fix: restore the 78 files #1286's stale tree reverted — the cinematic epic and #1279's duplicates Parquet export (#1299) #1300's restored walkthrough. A pod-level check was not possible: the AWS SSO session had expired.
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: deploy green above. drift and kind are nightly and were already red before this change (kind probe red since 2026-11-10: KeyError 'token_hash' after the credential-omission fix #1106), so they are knowingly red and not caused by it.
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: n/a — the 2026-11-26 board prune closed Home 06: an interactive audit film — decide the gray zone, unmerge a wrong match, see the rule hold #1297 as not planned at 04:44Z and removed it from board 2 while this PR was open, so Closes #1297 had nothing left to close. Re-closed by hand as completed, with a comment, and the pruned label removed; it stays off board 2 as the prune intended.
  • follow-ups are open for everything deferred here — numbers: n/a — nothing deferred. CI: flag a pull request whose files revert to an older main version (the #1286 stale-tree class) #1307 (the stale-tree guard) came from fix: restore the 78 files #1286's stale tree reverted — the cinematic epic and #1279's duplicates Parquet export (#1299) #1300, not from this change.
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: landing-page skill: the audit film, its verified mechanics, never swapping an in-flow element at hydration (WebKit moves a reader at the page foot), every state reserving its height, and the poster held until the film is near. demo/REHEARSAL.md: four rounds. Memory: cinematic-marketing-epic.

Specific to this change

  • the owner's preview — :3303 serves this branch's build: the film, with the phone layout that puts the call on the first screen.
Context — plan, discoveries, measurements, files

Plan

  • Data: Meridian Supply Ltd and its pair in scene/meridian.ts, plus E-1043.
  • Model: scene/audit-model.ts holds states, decisions, rules, entities, history, the next run and status copy.
  • Stage: scene/audit-desk.tsx + .css, with four shots in one grid cell and a compact phone layout.
  • Shell: demo/audit-story.tsx adds the WAAPI clock, the 40%-seen start, off-screen pausing, "Play it for me", the rail and the controls.
  • Tests: unit, component, the three rewritten audit specs, and a new marketing-scenes block.
  • Skill: a landing-page note, plus REHEARSAL.md.
  • make frontend, the full tier, and baselines regenerated in the Linux container.
  • Preview on :3303 for the owner, then land-pr.

Discoveries

Measurements

Files

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

The marketing preview was removed because this PR is closed or merged.

bmoore813 and others added 7 commits November 26, 2026 20:58
…the unmerge, the rule holding

Section 06 was an SVG diagram a visitor could only play. It never showed
how to decide a close call or how to undo a merge, and its packets
sampled 60 WAAPI keyframes each, which is the WebKit scroll-cost trap
from #1220.

It becomes a short film about Meridian Supply with two decisions the
visitor makes. Each step is one the product verifiably takes:

1. The gray zone. The run's pairs settle onto the threshold scale, and
   three wait between 0.80 and 0.95.
2. Your call, on Salesforce ↔ API at 0.93.
   - Match writes an always-match rule, and the API card folds under
     the Salesforce card into E-1042.
   - Not a match writes a never-match rule, and the API record stays
     E-2077 (resolve_review in the er-cli drain).
3. Unmerge. A week later Meridian Supply Ltd (London) joins on its own
   at 0.99: it carries the parent's account number and orders@ mailbox.
   The visitor selects it and presses "Unmerge 1 selected". One
   never-match rule is written against a kept member, as
   unmerge_entity does, and the split lands with the reconcile job.
4. It holds. The next run scores both pairs the same, and the rules
   decide.

The record's history fills in beside the window.

- Playback. The film starts once 40% of it is on screen and waits at
  each decision. "Play it for me" makes the usual choices. Pause,
  Replay and a step rail are there too.
- Timing. One WAAPI clock times each moment, so pausing, scrolling
  away and hiding the tab all hold it.
- Fallbacks. Reduced motion and the page without JavaScript show step
  4 as the poster, the whole story in one frame.
- Layout. The four shots share one grid cell, so the window never
  changes height as it cuts. A container query gives phones their own
  layout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… never change the page's height

- Unit (marketing-audit-model): the film's numbers agree with score.ts
  (0.93 in review, 0.99 over auto-join), and three pairs wait in the
  band. A match writes always and Not a match writes never. Unmerge
  needs a selection and writes exactly one never rule against a member
  that stays. Both branches hold on the next run. A jump fills in the
  usual choices. The narration never claims an automatic flag, and the
  records are fictional (Ofcom's drama range, .example mail).
- Component: the server render is the poster with no dead controls,
  both branches can be driven through the rail, the AI recommendation
  is opt-in, and only the current shot is reachable.
- Functional: the three audit specs are rewritten for the film. This is
  a deliberate behaviour change, because it now waits at a decision, so
  its clock test plays on with "Play it for me". A new marketing-scenes
  block covers starting when seen, waiting for the call, both branches,
  and one window height across every cut.

That last spec failed first, on both phone profiles (87px). The record
view and the next run drew some rows only in some states, and the same
87px broke the footer spec on WebKit through the status bar growing at
hydration.

- Every shot now draws one structure in every state.
- The status line reserves its longest sentence: all of them sit in its
  cell, invisible.
- The controls row reserves one button.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… included

The footer spec failed on mobile-safari: with the reader already parked
at the foot of the page, hydration moved the scroll by 104px. The page
height did not change, no script scrolled, and `overflow-anchor: none`
did nothing. Bisecting with injected styles found two element swaps:

- 56px from the step rail, where a <span> became a <button>;
- 48px from the London row, where a <span> became a <label>.

WebKit clamps a reader at the maximum scroll when an in-flow element is
replaced. Pure insertions into reserved space did nothing.

- The rail keeps its words, and a transparent button is laid over them
  once hydrated.
- The row is a <label> from the server render on, and only its 18px box
  becomes the checkbox.
- The film stays the still poster until it comes within a screen of
  the viewport, so it does not change state at hydration either.
- The member list always keeps four slots, and the history card
  reserves both branches' full records, so no step changes the
  window's height on any phone (it varied by 56px).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eserved space

The history card reserves the height of the longest full record. The real
list shared that grid cell, stretched to it, and spread its entries down
the card (a filmed desktop frame showed "YOU" floating far above its
sentence). Each list now sits at the top at its own height.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…phones

Regenerated in the pinned Linux image (mcr.microsoft.com/playwright:v1.63.0-jammy).

- marketing-audit x3: the new poster, step 4 of the film.
- marketing-cta, mobile-chrome and mobile-safari: the section moved up
  by a fraction of a pixel, because the audit section above it changed
  height. Its antialiasing shifts by a row (4.8-6.2% of pixels), over
  the comparison's 1% tolerance.

The run also rewrote reviews-mobile-chrome and marketing-hero-mobile-chrome
(two rows at the top, 0.24%). This diff does not explain either, so they
are not committed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Filmed in WebKit on the iPhone 15 profile (659px tall): with the stage at
the top of the screen, Match and Not a match sat at the very bottom, under
the floating next-chapter button. On narrow stages the score, its sentence
and the decision now come first and the evidence bars follow as the
reasons, so the call is on the first screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin force-pushed the issue/1297-marketing-audit-film branch from fb9efbe to 3d4c6a9 Compare November 27, 2026 04:58
@athvin
athvin merged commit 5da7b63 into main Nov 27, 2026
39 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 27, 2026 05:02 — with GitHub Actions Inactive
athvin pushed a commit that referenced this pull request Nov 27, 2026
…sion

#1286 was one commit whose parent was a fresh main but whose tree came from
an old worktree. It undid seven merged pull requests, and every gate was
green: the squash was CLEAN and the old code was self-consistent. #1310
nearly did the same that day. The diff reads as a feature that also deletes
things. What gives it away is that each file's new content is a version
main already had and moved past.

`stale tree guard` (stale-tree-guard.yml) walks each changed file's history
on main and names the commits a return would undo. A file brought back
with the content it had before main deleted it is the same finding.
Deletions alone are not findings. It is graded on main's own history:
- three or more source files returning fails;
- fewer warn (#1302 deliberately took back two lines of #877);
- screenshot baselines are reported and never counted (#1298's CTA
  baseline landed on old bytes).

Replayed against #1286's commit and main's last 40 merges, each on its true
parent:
- #1286 fails, on 33 source files;
- so does #1300, the restore, its mirror image, a revert that would
  carry `revert-ok`;
- three merges warn;
- the other 35 are silent.

The self-test runs first in the job. It covers the #1286 shape, a partial
revert, a baseline on old bytes, a genuine change, both exemptions (a
`Revert…` title and the `revert-ok` label) and a shallow clone, which is
refused rather than passed. The check is not required yet, by the order the
ci-and-supply-chain skill gives.

Closes #1307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin added a commit that referenced this pull request Nov 27, 2026
…sion (#1315)

* wip: claim #1307 — flag a pull request whose files revert to an older main version

* feat(ci): flag a pull request whose files return to an older main version

#1286 was one commit whose parent was a fresh main but whose tree came from
an old worktree. It undid seven merged pull requests, and every gate was
green: the squash was CLEAN and the old code was self-consistent. #1310
nearly did the same that day. The diff reads as a feature that also deletes
things. What gives it away is that each file's new content is a version
main already had and moved past.

`stale tree guard` (stale-tree-guard.yml) walks each changed file's history
on main and names the commits a return would undo. A file brought back
with the content it had before main deleted it is the same finding.
Deletions alone are not findings. It is graded on main's own history:
- three or more source files returning fails;
- fewer warn (#1302 deliberately took back two lines of #877);
- screenshot baselines are reported and never counted (#1298's CTA
  baseline landed on old bytes).

Replayed against #1286's commit and main's last 40 merges, each on its true
parent:
- #1286 fails, on 33 source files;
- so does #1300, the restore, its mirror image, a revert that would
  carry `revert-ok`;
- three merges warn;
- the other 35 are silent.

The self-test runs first in the job. It covers the #1286 shape, a partial
revert, a baseline on old bytes, a genuine change, both exemptions (a
`Revert…` title and the `revert-ok` label) and a shallow clone, which is
refused rather than passed. The check is not required yet, by the order the
ci-and-supply-chain skill gives.

Closes #1307

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
marketing-preview — 3d4c6a9d Deployed Nov 27, 2026 by athvin via remove closed PR previews #94
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.

Home 06: an interactive audit film — decide the gray zone, unmerge a wrong match, see the rule hold

2 participants