Round 1 build notes, developer instance A
Rendered at build time from team/rounds/1/build/NOTES-A.md. Written by the team as a working file; facts in it are as the role found them at the time.
By developer.weather-demo@AgentiCCells.dinis (instance A), 18 November 2026, round 1 build step. Text CC BY 4.0. Built from team/rounds/1/design/PROPOSAL.md sections 1, 2 and 4, with the conductor's decisions D1 to D6 (team/rounds/1.md) and the analyst's notes (team/rounds/1/data/NOTES.md). Figures quoted below are from the live files read between about 16:30 and 16:45 UTC on 18 November and are examples, not values in the pages.
What I built
| File | What |
|---|---|
src/assets/js/data.js (appended; existing exports unchanged) | sourceState(), publisherShort(), provLine() (proposal 4.1: publisher (id), via data.promptugal.news · read D Mon, HH:MM UTC, age · state word when not fresh · terms · card · latest.json; states fresh, stale, old, missing, reading, slow, unknown, archive), statusBand() (2.1), termsBlock() (one paragraph when the cards' terms.summary agree, else one per source, plus "card not read"), STATE_WORDS. |
src/place/index.html | The static picker: 35 links /place/?id=<globalIdLocal> in three groups (mainland in map.js ORDER of warning areas then by name, Madeira, Azores), working without JavaScript; <noscript> with the six file links. Share image /assets/share/place.png (present). |
src/assets/js/pages/place.js | Filter (accent-free via slug(), live count, Down arrow to the first link, Escape clears), pushState/popstate, aria-current, swatch and "yellow warning now" on each link once warnings are read, <details> picker below 900 px, document.title "<Town>: weather from our data", focus to the card's h1, Copy link (Clipboard API, else a selected read-only field), last town in localStorage (try/catch). The card: heading and area line, status band, summary sentence (from card values only; "Stations not read." when missing), then six blocks, each loading, failing and going stale on its own with its own provLine(): warnings (four windows from warningWindows(), spells in Portugal time, IPMA's text in a <details lang="pt">, ended spells counted, green as a calm result, old-file sentence, MeteoAlarm fallback line per D4), forecast (shared scale over all 35 places, rows below 520 px, run time, run over 14 h warned, past days dropped and counted), nearest station (distance, hour, nearest reporting when the nearest is silent, "no value" per null, hour lag over 3 h warned), sea (within 25 km labelled as this site's choice per D2; beyond: the nearest named, no values), UV (distance when matched by nearest; two values shown when IPMA gives two), fire risk (DICO, distance of the municipality point; islands: the D5 sentence), Storm Charles link for Lisboa and Funchal, "How this card was put together" (join table for this town, a fetch() snippet, by-place "see also" read only when opened), and Terms (#terms) from each source's own card.json (D6). A changed file shape gives "the shape has changed", never a value. |
src/index.html, src/assets/js/pages/home.js | Status band for the seven current sources; h1 "What the data says now"; "Your town" as a GET form with a <select> of the 35 towns (works without JavaScript) and "Your last town"; warningsBlock() with the folded warnings table; one row per source with state word, our own headline, and provLine() (storm archive as "archived", no staleness; MeteoAlarm with its disclaimer and meteoalarm.org links); Terms; links to How it was made, Use the data, Behind the scenes, Use with AI. |
src/assets/site.css (appended section, marked) | Provenance line, band, place layout (17 rem picker column, sticky, from 900 px), blocks, warning strip, forecast rows and columns, UV and fire tiles from the existing tokens, home rows. No new colour tokens. |
Reused: map.js (warningsBlock, warningTable, levelsFor, warningWindows, swatch, lvl, fmtPT, fmtSpan, lisbonNow), places.js (all joins), codes.js. The warnings part of home.js and the forecast/UV drawing ideas follow the IPMA-Data cell (AgentiCCells/AgentiCCells__Site__IPMA-Data, src/assets/js/pages/home.js and uv.js, Apache-2.0, same organisation), named in each file's header.
What I checked, and how
node scripts/build.mjs,node scripts/validate.mjs(OK),node scripts/leak-scan.mjs(OK, 174 files),node --test tests/*.test.mjs(23 pass, 0 fail).- Headless Chromium (Playwright) against
python3 -m http.serveron_site/: the place view for Faro, Bragança, Funchal and Lisboa, and home, at 390 and 1366 px, light and dark: no console or page errors, no horizontal overflow, title set per town. - Failure test on Faro:
ipma-observations/latest.jsonaborted,ipma-sea/latest.jsonrewritten with aread_at5 h old,ipma-uv/card.jsonanswering 404. Only the station block showed the failure; sea showed the stale word and left rule; UV's line said "terms: card not read"; the band read "Not current: Stations could not be read (the network request failed) · Sea read 5 h ago (stale)"; the summary said "Stations not read." Home with warnings answering HTTP 500: only the map and table failed, the other seven rows drew. - Unknown id (
?id=123) shows the picker and "Choose a town: no town has the id 123."; filter "loule" gives 1 of 35, Down arrow and Enter open Loulé without reload, focus on its h1, Back works; without JavaScript the 35 links and the 35-option select are there. - Screenshots:
team/rounds/1/build/shots-a/(home, picker, Faro, Funchal at 390 and 1366 px, and the Faro failure test), taken withscripts/shots.mjs --max-height=2400.
Open
- No
scripts/place-picker.mjs: team/scopes.json does not list it for the developer, so a developer commit with it would fail role-scope. The static picker and select are written into the two HTML files fromPLACESonce (generated by a throwaway script, same order as above). If PLACES changes, they must be regenerated; a test comparing them with PLACES (tests/ is outside this instance's brief) or a scope change for a build step is for the conductor. build.mjs was not changed. - D4 read as "the fallback line only": the card shows one line pointing to the warnings page and meteoalarm.org, with no MeteoAlarm panel.
- The status band's 4 s "slow" state and the per-block slow text are wired to
getJSON()'sonSlowbut were not tested with a delayed route. - The storm row's "10 to 12 November 2026" comes from the analyst's notes and the storm page, not from the archive file.
- Links to /warnings/, /forecasts/, /observations/, /fire-risk/, /sea/, /uv/ depend on instance B's pages; validate passed at the time of the check.
- Not done: "Use my location" (D3: no), per-town static pages (D1: not this round).
Fixes after review
By developer.weather-demo@AgentiCCells.dinis (instance A), 18 November 2026, about 16:55 to 17:04 UTC (corrected by the conductor after the re-check: these fixes were committed as d9d3718 at 17:04 UTC), from the reviewer's findings in team/rounds/1/review/BUILD.md and the conductor's brief for the fixes. Committed by the conductor as d9d3718.
What changed
- M1, warnings clause (
src/assets/js/pages/place.js, newwarningClause()). Built from the spells in IPMA's file only. Each type in force now gets its own level and end. When a later spell of that type has a higher level, it is named: "then orange until ..." when it follows on with no gap (the yellow end is then given as the orange start), or "and orange from ... to ..." when there is a gap. A type not in force now is named only when its highest later level is above every level in force now. Nothing in force: the first and highest later spells per type. Times as IPMA gives them (Portugal time). - M2, stale and old files in the summary (
finish(), newaged()). A clause from a file whosesourceState()is stale or old keeps its figures but carries the file's age and the same state word as its block, for example "Today 12.4 to 20.7 °C, rain 6%, from a forecast file read 31 h ago (old)." Applies to warnings, forecast, stations, UV and fire risk. Failed files keep "... not read." data.js is unchanged. - S1, UV label. The place card says "Low (IPMA: below 3)" (bands from codes.js, min inclusive, max exclusive), not a WHO range. /uv/: legend "Low (IPMA: below 3)" to "Extreme (IPMA: 11 and above)", the caption, legend label and note now speak of the bands as IPMA applies them, and the page's meta description no longer says "WHO bands". codes.js is unchanged.
- S2, /storm-charles/ "What is in it". The static table is gone from
src/storm-charles/index.html.storm.js(groupTable()) draws it fromstorm-charles-archive/latest.jsonas read (datasets, files, bytes per group, and the archive's read time in the caption). If the read fails, the table area shows the failure message and nothing else. The writer's per-group descriptions are kept word for word in a<template id="storm-group-notes">and fill the last column; a group with no note says so. Inindex.mdthe table keeps the writer's descriptions but drops the copied counts and points tofiles[]in latest.json. Only the table was changed in src/storm-charles/; the writer's other words (including the "How much" bullet's totals) are untouched, for the writer to judge. - S4, home sea headline. Names every coast at the maximum, separated by semicolons, or "N coasts" when more than three.
- S7, home MeteoAlarm row. Prints "MeteoAlarm's disclaimer: " and the
attribution.disclaimertext from meteoalarm-pt latest.json as given (two sentences), or says it was not in the file; the link to the warnings page stays.
How it was checked
node scripts/build.mjs,node scripts/validate.mjs(OK),node scripts/leak-scan.mjs(OK),node --test tests/*.test.mjs(25 pass, 0 fail).- Headless Chromium (Playwright) on
python3 -m http.serverserving_site/, at about 17:00 UTC, against the live files (ipma-warnings read_at 2026-11-18T16:32:26Z):- Aveiro: "Warnings in force: yellow for rough sea until 18:00 today, then orange until Fri 20 Nov 00:00 (Portugal time)." The file has AVR yellow rough sea 13:15 to 18:00, orange 18:00 to 20 Nov 00:00.
- Lisboa: "Warnings in force: yellow for rough sea until Thu 19 Nov 06:00, then orange until Thu 19 Nov 12:00; yellow for rain until 18:00 today (Portugal time)." The file has LSB yellow rough sea to 19 Nov 06:00, yellow rain to 18:00, orange rough sea 19 Nov 06:00 to 12:00.
- Bragança: "No yellow, orange or red warning in IPMA's file." Faro: one type, one end.
- M2 via
page.route: Faro and Aveiro with ipma-city-forecasts and ipma-fire-riskread_atmoved 30 h back and their dates one day back: both clauses carry "from a ... file read 31 h ago (old)", matching the two blocks marked old. Warnings and UV 30 h old: same for those two clauses. Observations 5 h old: "(stale)". - UV: Lisboa, Faro and Bragança show "Low (IPMA: below 3)"; /uv/ legend as above.
- Home: "12 coasts; highest total sea today up to 5 m (Figueira da Foz, Costa; Porto, costa; Viana do Castelo, costa)." (ipma-sea read_at 16:32:14Z: those three at 5 m). MeteoAlarm row shows the disclaimer as the file gives it.
- /storm-charles/: live, the table matches the file (weather 12 datasets, 12 files, 796,181 bytes; flights 6, 91, 3,557,635). With latest.json aborted: the failure message in the table's place and no table on the page.
- No page errors in any run.
Open
scripts/cards.mjs(the /uv/ share card text) still says "in the WHO bands"; it is outside this brief's paths (src/** only), so it is left for the conductor.- The storm page's "How much" bullet and its index.md twin still give the archive's totals as text; that is the writer's copy, outside the table.