Friction: us-ecommerce-share draft (2026-11-12)
Friction: us-ecommerce-share draft (2026-11-12)
Where the story skill and harness made this harder. These notes feed DataPressr skill-gap beads.
- No "refreshable story" pattern in the skill. The brief's core requirement (re-run against the Q3 release with one command, and stop if a premise in the prose breaks) exists only as a convention copied from china-co2-peak:
fetch.mjs→source-manifest.json→calculate.mjs→render-readme.mjs --check→ charts → README. The skill's step 3/4 assumes prose is hand-written against fixed numbers. A short "re-runnable story" section with a templaterender-readme.mjs(guard(),--checkbefore charts, template keys, a dynamicstory_check_exempt) would save re-deriving it each time. This is the third story to need it. - Prose generated from code reads worse and is harder to voice-pass. Every sentence that holds a number lives in a JS template literal. A human voice pass must edit
render-readme.mjs, not README.md. The skill's "voice pass is separate" assumption doesn't fit, and the skill should say how a voice pass works on a rendered post. - Release-dependent hook wording. The hook has to say "publishes on 19 Nov" before the release and "published on 19 Nov" plus revisions after it. I branched on the release date and guarded that the page date and data quarter agree. Nothing in the skill covers drafting before an announced release.
- Revisions needed a home. Claim check 7 says to mention revisions only with a cited revision history. The only workable history was to keep the previous release's file when the quarter changes (
previous-release-*.dat), and the skill has no pattern for it. china-co2-peak solved the same problem differently (fetching archived editions). - Trend-window choice for a counterfactual line. Claim check 8 covers a trend break chosen from the data, but not a fitted benchmark line extended forward. That is the core of this story ("back near the pre-pandemic trend"). I reported a start-year sweep (2010–2018 starts give +2.3 to −0.1 points) and chose linear in points over log-linear with a stated reason. The title's "close to" depends on that window, and a claim-check line on extrapolated trends would help reviewers.
- No xlsx reader in the harness. The supplemental table (nonstore vs e-commerce) is only published as xlsx, and Node has no built-in reader. I wrote a 90-line dependency-free reader (
xlsx.mjs) rather than add a package. A shared helper in DataPressr would avoid repeats. - Phone-width checks need a real browser. macOS Quick Look (
qlmanage -t) crops tall SVGs to a square, so it hides mobile-chart bottoms. I used headless Chrome (--screenshot --window-size=360,520). The charting reference says "inspect at ~360px" but names no tool. - Chart text overlaps aren't caught by any check. Five label/line collisions were found only by looking (notes over the plot, a peak label on the line, the trough label on the series, a tick clipped at the edge, a mobile row label over its bar). story-check S7 checks SVG content, not geometry.
- Exempt list for computed but non-chart numbers. Definitional numbers (sample size 10,800, standard error 0.3, day counts to Black Friday) had to go into
story_check_exempt. S3 passed. Number-like tokens such as "Q2 2026" were correctly ignored. - Process deviation, by brief. The skill's outline → outline review → charts → prose sequence (three commits and an outline gate) was not followed: the conductor asked for a refreshable package now and an independent review after the 19 Nov refresh. The argument and chart plan live in
DATA.mdand this package's code, not in a separate outline file. The skill could name this "release-day" variant explicitly. - Census-specific traps worth a note in a sources guide:
- the release page's special notice that the published figures are superseded until the next release;
- the April 2025 removal of nonemployers from the whole series;
- the supplemental table's suppressed (
S) cells; - the PDF says the next release is at "10:00 A.M. EST" while the page says EDT.