From d955e8beb8e34ff9b6f3e82adb41fd10cd364b70 Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Wed, 14 Oct 2026 15:21:53 +0200 Subject: [PATCH] DUNE-002: add validated patchnote publishing system --- PROJECT-WORKLOG.md | 18 +++++++++++- website/PATCHNOTES.md | 29 +++++++++++++++++++ website/README.md | 2 ++ website/scripts/build-patchnotes.mjs | 13 +++++++++ website/scripts/build.mjs | 1 + website/scripts/changelog.json | 1 + website/scripts/manage-patchnotes.mjs | 4 +++ website/scripts/patchnote-policy.mjs | 26 +++++++++++++++++ website/scripts/pending-patchnotes.json | 8 +++++ website/scripts/task-register.json | 10 +++++++ website/tests/patchnote-policy.test.mjs | 9 ++++++ website/tests/patchnote-render.test.mjs | 2 ++ website/web/admin.html | 2 +- website/web/armoury.html | 2 +- website/web/arrakis.html | 2 +- website/web/assets/bugfix-seal.svg | 1 + website/web/diplomacy.html | 2 +- website/web/discord.html | 2 +- website/web/equipment.html | 2 +- website/web/exchange.html | 2 +- website/web/forums.html | 2 +- website/web/index.html | 2 +- website/web/install.html | 2 +- website/web/lore.css | 5 ++++ website/web/news.html | 2 +- website/web/patch-notes.html | 1 + website/web/patchnotes.css | 1 + website/web/patchnotes.js | 1 + website/web/portal.html | 2 +- website/web/profile.html | 2 +- .../prophecy-prescience-and-the-desert.html | 2 +- website/web/prophecy-the-heir-of-caladan.html | 2 +- .../web/prophecy-the-making-of-muad-dib.html | 2 +- .../web/prophecy-the-path-paul-refused.html | 2 +- .../web/prophecy-the-preacher-returns.html | 2 +- .../prophecy-the-price-of-an-imperium.html | 2 +- website/web/prophecy.html | 2 +- website/web/races.html | 2 +- website/web/smugglers.html | 2 +- website/web/staff.html | 2 +- website/web/tickets.html | 2 +- 41 files changed, 155 insertions(+), 25 deletions(-) create mode 100644 website/PATCHNOTES.md create mode 100644 website/scripts/build-patchnotes.mjs create mode 100644 website/scripts/changelog.json create mode 100644 website/scripts/manage-patchnotes.mjs create mode 100644 website/scripts/patchnote-policy.mjs create mode 100644 website/scripts/pending-patchnotes.json create mode 100644 website/scripts/task-register.json create mode 100644 website/tests/patchnote-policy.test.mjs create mode 100644 website/tests/patchnote-render.test.mjs create mode 100644 website/web/assets/bugfix-seal.svg create mode 100644 website/web/patch-notes.html create mode 100644 website/web/patchnotes.css create mode 100644 website/web/patchnotes.js diff --git a/PROJECT-WORKLOG.md b/PROJECT-WORKLOG.md index 40faeb1a..cf941525 100644 --- a/PROJECT-WORKLOG.md +++ b/PROJECT-WORKLOG.md @@ -19,7 +19,7 @@ | --- | --- | --- | --- | | DUNE-003 | P0 | Persist and follow the priority rules, including the colleague discussion | Completed and pushed to main as `40efbff` | | DUNE-001 | P2 | Create a staff page if needed | Completed — staff.html deployed successfully; AI contributor plaque, support links and empty unconfirmed human roster | -| DUNE-002 | P2 | Introduce a patchnote system; ask colleague how Starfall did it and include ticket ID | In progress — technical response received; next after staff delivery | +| DUNE-002 | P2 | Introduce a patchnote system; ask colleague how Starfall did it and include ticket ID | Completed — published and tested; two completed product tasks await the normal 5–10-task release threshold | | DUNE-004 | P2 | End every colleague message with `einde prompt` | Completed — applied, communicated and recorded; every colleague message ends with einde prompt | P2 receipt order: DUNE-001, then DUNE-002. DUNE-003 was handled first after receipt. This workflow-only task is not a product release entry. @@ -50,3 +50,19 @@ Keep this file current with final commits, confirmed GitHub push status, deploym - Staff HTML links/assets and separation from AI credit checked; 25 website tests pass. No browser-control tool is available in the current tool set, so visual browser QA was not performed. - Local packaging adapter updated to the installed Sites 1.0.2-remix-b.1 validator after its old 1.0.0 path disappeared. - GitHub push is the final source-delivery step for this ticket; see commit history for exact hash. + +## DUNE-002 delivery + +- Public archive: https://project-dune.bonnystoat9.chatgpt.site/patch-notes.html +- Sites source commit: `8ed087eedf421d3ce8a298a8f68f8341339f82f0`. +- Confirmed successful public deployment: `appgdep_6acf8144c27081918b08f7a17169c907` (2026-10-14). +- Permanent task register, completed-product queue, validated 5–10-task batches, separate urgent bugfix reports, generated archive/release pages and news links implemented. +- Two completed product tasks pending; no invented release or bugfix. Workflow agreements do not count toward product batches. +- 32 website tests passed, including batch boundaries, duplicate IDs, urgent bugfix validation and repeated-generation checks. Build and internal links/assets across 26 pages passed. Browser visual QA unavailable in this tool set. +- GitHub main commit/push is the final source-delivery step; exact hash is in Git history. + +## DUNE-005 — P2 — colleague introduction + +- User-authorised new colleague: `01a13a89-b245-7d40-b4b7-41c3e2a030ca`, title `4 of 7 · Starfall continuation`. +- Queued after DUNE-002; introduction will identify 2 of 14 · secondary matrix of unimatrix001, preserve priority agreements and end with einde prompt. +- Workflow-only task; not a product patchnote entry. \ No newline at end of file diff --git a/website/PATCHNOTES.md b/website/PATCHNOTES.md new file mode 100644 index 00000000..9ee8b085 --- /dev/null +++ b/website/PATCHNOTES.md @@ -0,0 +1,29 @@ +# Development patchnote system — DUNE-002 + +This follows the colleague's source-file-and-generator pattern, adapted to Project Dune. It does not share Starfall's source, deployment or task IDs. + +## Source of truth + +- `scripts/task-register.json`: permanent DUNE request IDs, receipt order, priority, product/workflow kind, completion status and optional release assignment. +- `scripts/pending-patchnotes.json`: completed normal product tasks waiting for a bundle. One requested feature is one product task; implementation details are not extra tasks. Workflow agreements do not count. +- `scripts/changelog.json`: published release records, newest first. A normal record embeds the 5–10 product records included in that release. An urgent bugfix record additionally contains the problem, repair and verification. +- `scripts/patchnote-policy.mjs`: validation and transformations. Normal bundles contain 5–10 genuine completed products; urgent fixes bypass that minimum. Duplicate task references, version collisions and mixing workflow/unfinished tasks into releases are rejected. +- `scripts/build-patchnotes.mjs`: generates `web/patch-notes.html`, individual release pages, public footer links and a development-news link from the game-news page. All public views use the same source records. + +The initial archive is intentionally empty. DUNE-001 and DUNE-002 are completed pending product tasks (2/5). DUNE-003 and DUNE-004 are workflow agreements and do not contribute to the release threshold. Earlier work is preserved in Git history and the contributor record; no retroactive releases or invented tickets are created. + +## Operation + +Validate with `node scripts/manage-patchnotes.mjs validate`. The regular build validates data and generates the public pages automatically. + +After 5–10 product tasks have been completed, run `node scripts/manage-patchnotes.mjs publish` and pass a JSON document through stdin with `version`, `date` (YYYY-MM-DD), `title`, `synopsis`, and `taskIds` (the pending product IDs). It moves only those products out of pending, preserves their DUNE IDs and assigns their release in the task register. A queue larger than ten is split into later bundles; one release can never contain eleven tasks. + +For a real urgent fix, first register the complete request as a completed product with priority BUGFIX. Run `node scripts/manage-patchnotes.mjs bugfix` with stdin JSON containing `version`, `date`, `title`, `synopsis`, `problem`, `fix`, `checks`, and `tasks` (each with `id`, `title`, `promptIds`, `priority: BUGFIX`, and `changes`). This creates a separate urgent entry immediately; it is never held in the normal queue. The generator also places the newest urgent bugfix cards on Home and News, linking the full problem/repair/check report. No sample bugfix is published by this implementation. + +Then build/test and publish the exact source/archive through the existing Sites workflow, preserving its public audience. Finish by pushing the same feature changes to the authorised `unimatrixgit/mcdune` main branch. Record the source commit, deployment ID, GitHub commit/push result and completed request IDs in `PROJECT-WORKLOG.md`. + +## Distinctions + +Publishing a feature and publishing a normal patchnote are separate actions. A feature can already be live while its bundle is waiting for five completed tasks. Website build/deployment IDs are not fabricated patchnote versions. Game notifications remain on News; development updates live in Patch Notes. + +The colleague was asked with DUNE-002 explicitly attached and supplied the technical pattern. Outbound colleague messages end with `einde prompt` (DUNE-004). Priorities remain BUGFIX > P0 > P1 > P2 > P3 > PARKEREN, receipt order within the same priority. diff --git a/website/README.md b/website/README.md index 8d56593e..d890a514 100644 --- a/website/README.md +++ b/website/README.md @@ -22,3 +22,5 @@ The standalone [Sietch Armoury](https://project-dune.bonnystoat9.chatgpt.site/ar The top menu links to `prophecy.html`, a book-focused Paul Atreides journal with six illustrated posts covering Dune, Dune Messiah and Children of Dune. Each article has a spoiler gate, source notes and previous/next links. The index supports book filters and search. Original commentary is separated from plot context. Posts live in `web/prophecy-data.json`; the build regenerates their static pages with `scripts/build-prophecy.mjs`. The Prophecy articles are extended essays of at least 3,000 body words each. Reading estimates use 200 words per minute and exclude graphic text. Each essay includes a timeline, relationship map, comparison board and linked contents. Long-form source lives in `content/prophecy/*.md`; `web/prophecy-graphics.json` holds visual-aid labels. The build fails if an essay falls below the minimum length. + +See [Patchnote workflow](PATCHNOTES.md) for the 5–10 product-task bundle policy, permanent DUNE request IDs, pending queue, urgent bugfix reports and source-driven public archive. Staff and contributor records are on `staff.html`; Patch Notes is on `patch-notes.html`. diff --git a/website/scripts/build-patchnotes.mjs b/website/scripts/build-patchnotes.mjs new file mode 100644 index 00000000..a5009fd5 --- /dev/null +++ b/website/scripts/build-patchnotes.mjs @@ -0,0 +1,13 @@ +import {readFileSync,writeFileSync,readdirSync} from 'node:fs';import {validatePatchnotes,releaseFile} from './patchnote-policy.mjs'; +const scripts=new URL('./',import.meta.url),web=new URL('../web/',import.meta.url),read=name=>JSON.parse(readFileSync(new URL(name,scripts),'utf8')),pending=read('pending-patchnotes.json'),releases=read('changelog.json'),register=read('task-register.json');validatePatchnotes(register,pending,releases); +const esc=s=>String(s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); +const urgent=releases.filter(r=>r.kind==='bugfix').slice(0,3);const urgentCards=urgent.length?'

Urgent bugfix reports

'+urgent.map(r=>'').join('')+'
':''; +for(const file of readdirSync(web).filter(x=>x.endsWith('.html'))){let text=readFileSync(new URL(file,web),'utf8');text=text.replace(/
/g,'');if(urgentCards&&['news.html','index.html'].includes(file))text=text.replace(/(