fix(releases): quarantine par14 hardware packages and make ADD the primary edition

This commit is contained in:
JUAN JIANT committed 2026-10-28 17:24:29 -03:00
1 parent ee75e89526
commit 61a132e3ea
11 files changed
+132 -2062

No files matched your search

+7 -5
View File
@@ -3,7 +3,7 @@
# main. Needs Settings > Pages > Source: "GitHub Actions" once. The emulator needs only the generated headers; the
# installer (webapp/installer) and the editor (webapp/editor) need the package, built with JieLi's toolchain (downloaded).
# Two installers: preview/webapp/installer follows web/PREVIEW when set (otherwise main); webapp/installer follows
# the approved web/STABLE commit. The browser emulator follows web/PREVIEW too (main without a pin).
# the approved web/STABLE commit. web/EMULATOR independently freezes the browser-only SAMPLE source.
name: emulator
on:
push:
@@ -29,16 +29,17 @@ jobs:
- run: pip install Pillow==12.3.0 numpy==2.3.5 fonttools==4.61.1
- name: generated headers (fonts, icons, palettes, shapes, tables, samples)
run: python3 -c "import sys; sys.path.insert(0, 'tools'); import build; build.generate()"
- name: Installer quarantine and edition ordering
run: python3 tests/test_installer_channels.py
- name: Stock sample provisioning tests
run: node web/test_samples.mjs
- uses: mymindstorm/setup-emsdk@v14
with:
version: 6.0.11 # (the version the emulator is tested with)
- name: the emulator
# (0.9.9-seq2) the emulator runs the beta's firmware (web/PREVIEW's commit, as the beta installer), main's if
# no pin is set or the pinned tree's emulator does not build
# The frozen browser SAMPLE source is separate from the ADD hardware beta pin.
run: |
P=$(tr -d ' \n' < web/PREVIEW 2>/dev/null || true)
P=$(tr -d ' \n' < web/EMULATOR 2>/dev/null || tr -d ' \n' < web/PREVIEW)
if [ -n "$P" ] && git cat-file -e "$P^{commit}" 2>/dev/null; then
rm -rf /tmp/emusrc; git worktree add -f --detach /tmp/emusrc "$P"
cp web/emu/sample-kit-api.h /tmp/emusrc/web/emu/sample-kit-api.h
@@ -46,7 +47,7 @@ jobs:
if (cd /tmp/emusrc && python3 -c "import sys; sys.path.insert(0, 'tools'); import build; build.generate()" \
&& sh web/emu/build.sh); then
rm -rf build/emu; mkdir -p build; cp -r /tmp/emusrc/build/emu build/emu
echo "emulator: web/PREVIEW ${P::7}"
echo "emulator: web/EMULATOR ${P::7}"
else
echo "emulator: ${P::7} did not build, main's instead"; sh web/emu/build.sh
fi
@@ -234,3 +235,4 @@ jobs:
- id: deployment
uses: actions/deploy-pages@v4
+20 -2043
View File
File diff suppressed because it is too large. Load diff
+31
View File
@@ -0,0 +1,31 @@
# par14 incident — 2026-10-28
Status: **reported non-booting FM-1; root cause not confirmed**. The owner relayed a tester report. The exact par14 revision, installation path, prior firmware, USB enumeration and power-on symptoms have been requested. “Brick” is the tester's reported outcome, not a diagnosis of permanent bootloader damage.
## Containment
- Hardware installers reject every `0.9.9-par14-*` revision, even if its edition metadata is missing or incorrectly labels it public. Withdrawn package files are not copied to the generated firmware directory.
- Public default is the existing ADDITIVE par10 (`30f05b3`); SAMPLE par13b (`3641c02`) remains unchanged as an alternative.
- Beta default is the already published ADDITIVE par10d-beta2 (`42947e9`), still explicitly beta. This is not evidence that it cannot share a defect with par14: REC and whole-sequence clipboard code are shared.
- SAMPLE development is paused. The browser emulator remains separately pinned to `4d3156d` through `web/EMULATOR`; that pin is not a hardware recommendation.
## Checks completed on the published par14-beta4 package
Package SHA-256: `01883f0f4b16a1d182a0a00de816001893b8cf35b0c22208268bcfd093675208`.
- Published package matched the successful target-CI artifact byte for byte.
- UFW header, entry list, flash header, flash payload and decoded application CRC checks passed.
- Product identity is `FM-1_909`; `flash.bin` is `0x93000` bytes; encrypted content ends at `0x92ffe`, inside that image.
- Application slot is 584336 bytes. The linked application is 584308 bytes: **28 bytes free**. This is very little room, but no overflow was observed. It does not establish runtime safety.
- Target `.data`/`.bss` span is 91788 / 98304 bytes; pool is 305972 bytes, with 4288 bytes spare after core-1 stacks according to the build check. No linker-region overlap was observed. Stack usage at runtime has not been measured on the reported unit.
- OTA loader is 7124 bytes, SHA-256 `ce8721ed1624b36c1b08f160b9d89a591ae42c7f23f9ce82ab963faeefa6a056`, identical to published SAMPLE par13b. The first `0x120` flash bytes also match par13b. Identical loader bytes do not rule out an interrupted update or a runtime/flash failure.
- Sample bank storage is separate, at `0xda000..0xdbfff`. Beta4 added automatic provisioning of an empty bank after firmware installation. Whether the tester reached that stage is unknown; this path has not been confirmed on the reported physical unit.
- Host sequence/undo/bounds tests, the target linker/build budgets, and Chromium audio/screen-refresh tests passed. A timing test retains the same one pre-existing failure as its exact baseline; the comparison is not a claim that all timing tests pass.
## Open investigation
The endpoint overread fixed in beta4 was a confirmed sampler defect, **not a proven explanation of this report**. The screen-only freeze reported earlier is also not yet linked to the non-booting device.
Next evidence: exact ABOUT/build label or installer selection, prior firmware, whether installation completed and stock samples were sent, screen/photo after power-on, and the USB device name/identity. Preserve projects and flash contents. Do not prescribe flash erasure, boot pins, or a blind recovery image without identifying the device's actual state.
Depending on that evidence, review boot initialization/persisted project compatibility, runtime stack guards and crash records, both-core flash/cache synchronization, the post-install sample transfer, and interrupted-update recovery. No specific cause is established by the package checks above.
+33
View File
@@ -0,0 +1,33 @@
import importlib.util
from pathlib import Path
import unittest
root = Path(__file__).resolve().parents[1]
spec = importlib.util.spec_from_file_location('make_site', root/'web/make_site.py')
site = importlib.util.module_from_spec(spec)
spec.loader.exec_module(site)
class InstallerChannels(unittest.TestCase):
def test_public_add_first_sample_retained(self):
entries = [{'version':'v0.9.9-par13b-3641c02-preview','edition':'SAMPLE','status':'public'},
{'version':'v0.9.9-par10-30f05b3','edition':'ADDITIVE','status':'public'}]
result = site.installable_versions(entries, False)
self.assertEqual([e['edition'] for e in result], ['ADDITIVE','SAMPLE'])
self.assertEqual(result[1], entries[0])
def test_all_par14_variants_blocked_even_if_mislabeled(self):
add = {'version':'v0.9.9-par10d-beta2-42947e9-preview','edition':'ADDITIVE + CONTROLS','status':'beta'}
for suffix in ['beta1-86b85ad-preview','beta2-4be8592-preview','beta4-4d3156d-preview','future-1234567']:
bad = {'version':'v0.9.9-par14-'+suffix,'edition':'SAMPLE','status':'public'}
self.assertEqual(site.installable_versions([bad,add], True), [add])
def test_withdrawn_only_fails_closed(self):
with self.assertRaises(SystemExit):
site.installable_versions([{'version':'v0.9.9-par14-beta4','edition':'SAMPLE'}],True)
def test_beta_still_forbidden_in_public(self):
with self.assertRaises(SystemExit):
site.installable_versions([{'version':'v0.9.9-par10d-beta2','edition':'ADDITIVE','status':'beta'}],False)
if __name__ == '__main__':
unittest.main()
+1 -1
View File
@@ -1 +1 @@
42947e9b4aff0a6ca5ff0874f729033fb19f5a65 ADDITIVE beta: controls and COPY SEQ / PASTE SEQ
# ADDITIVE is supplied by web/PREVIEW. SAMPLE par14 is withdrawn from hardware installation.
+8 -4
View File
@@ -21,7 +21,7 @@
},
"v0.9.9-par14-beta1-86b85ad": {
"edition": "STEP COMPONENTS (SAMPLE)",
"status": "beta"
"status": "withdrawn"
},
"v0.9.9-par13c-b932605": {
"edition": "SAMPLE (REC controls)",
@@ -29,11 +29,11 @@
},
"v0.9.9-par14-beta1-86b85ad-preview": {
"edition": "SAMPLE + STEP COMPONENTS",
"status": "beta"
"status": "withdrawn"
},
"v0.9.9-par14-beta2-4be8592-preview": {
"edition": "SAMPLE + CONTROLS + STEP COMPONENTS",
"status": "beta"
"status": "withdrawn"
},
"v0.9.9-par10c-beta1-67cab79": {
"edition": "ADDITIVE + CONTROLS",
@@ -41,10 +41,14 @@
},
"v0.9.9-par14-beta4-4d3156d-preview": {
"edition": "SAMPLE + CONTROLS + STEP COMPONENTS + COPY SEQ",
"status": "beta"
"status": "withdrawn"
},
"v0.9.9-par10d-beta2-42947e9": {
"edition": "ADDITIVE + CONTROLS + COPY SEQ",
"status": "beta"
},
"v0.9.9-par10d-beta2-42947e9-preview": {
"edition": "ADDITIVE + CONTROLS + COPY SEQ",
"status": "beta"
}
}
+1
View File
@@ -0,0 +1 @@
4d3156ddb7ed428909b09e0e6d2b6b483d46a9bc
+1 -1
View File
@@ -1 +1 @@
4d3156ddb7ed428909b09e0e6d2b6b483d46a9bc
42947e9b4aff0a6ca5ff0874f729033fb19f5a65
+4
View File
@@ -1,2 +1,6 @@
# versions taken back: the installers no longer offer them (web/fetch_prev.py)
0.6.59 # the organic boxes, reverted in 0.6.60
0.9.9-par14-beta1 # tester report of non-booting FM-1; root cause unconfirmed
0.9.9-par14-beta2 # par14 hardware line quarantined
0.9.9-par14-beta4 # par14 hardware line quarantined
+5
View File
@@ -90,6 +90,7 @@
<pre id="log"></pre>
</div>
<p class="small" id="channel"></p>
<p class="small" data-t="par14Notice"></p>
<p><a href="../editor/" style="color:inherit" data-t="editor"></a></p>
<p><span data-t="manual"></span>
<a href="https://github.com/juanjiant-bit/JIANT/blob/main/docs/MANUAL.md" target="_blank" rel="noopener" style="color:inherit">English</a> ·
@@ -457,6 +458,9 @@ for (const L of Object.values(TEXT)) {
L.tip_badpkg = L.tip_loadfail;
L.tip_stockError = L.tip_stockZip = L.tip_stockNotV15 = L.tip_stockOtherVer = L.tip_stockCustom = L.tip_stockModified = L.tip_stock;
}
Object.assign(TEXT.es, {par14Notice:"ADD es la edición principal. Par14 fue retirada tras un reporte de un FM-1 que no arranca; la causa está en investigación. SAMPLE par13b se conserva sin cambios."});
Object.assign(TEXT.en, {par14Notice:"ADD is the primary edition. Par14 was withdrawn after a report of a non-booting FM-1; the cause is under investigation. SAMPLE par13b remains unchanged."});
Object.assign(TEXT.ja, {par14Notice:"ADD がメイン版です。FM-1 が起動しなくなった報告を受け、par14 の配布を停止しました。原因は調査中です。SAMPLE par13b は変更しません。"});
const LANGS = ["es", "en", "ja"];
const navLang = (navigator.language || "en").toLowerCase();
let lang = navLang.startsWith("ja") ? "ja" : navLang.startsWith("es") ? "es" : "en";
@@ -717,3 +721,4 @@ $("stock-go").addEventListener("click", async () => {
</html>
+21 -8
View File
@@ -104,6 +104,20 @@ def manual(out):
print(f"site: {dst}: the manual, {len(names)} screens")
def installable_versions(versions, preview):
"""ADD is primary. par14 is quarantined after a tester reported a non-booting FM-1."""
versions = [e for e in versions if e.get("status") != "withdrawn" and
not re.match(r"^v?0\.9\.9-par14(?:-|$)", e["version"])]
if not versions:
raise SystemExit("no installable firmware remains")
if not preview and any(e.get("status") == "beta" for e in versions):
raise SystemExit("beta firmware is forbidden in the public installer")
def priority(e):
edition = e.get("edition", "")
return 0 if edition.startswith("ADDITIVE") else 1 if edition.startswith("SAMPLE") else 2
return sorted(versions, key=priority)
def main(pkg, version, out, prev=None):
pkg, out = Path(pkg), Path(out)
raw = pkg.read_bytes()
@@ -126,12 +140,7 @@ def main(pkg, version, out, prev=None):
editions = json.loads((HERE / "EDITIONS.json").read_text(encoding="utf-8"))
for entry in versions:
entry.update(editions.get(entry["version"], {}))
# Public installer: SAMPLE first, ADDITIVE second, then stable/history.
if not version.endswith("-preview"):
if any(e.get("status") == "beta" for e in versions):
raise SystemExit("beta firmware is forbidden in the public installer")
priority = {"SAMPLE": 0, "ADDITIVE": 1}
versions.sort(key=lambda e: priority.get(e.get("edition"), 2))
versions = installable_versions(versions, version.endswith("-preview"))
selected = versions[0]
meta = json.dumps({"version": selected["version"], "product": selected["product"],
"pkg": "../../firmware/" + selected["file"],
@@ -151,9 +160,12 @@ def main(pkg, version, out, prev=None):
f.unlink()
brand = (HERE / "jiant-ui.css").read_text(encoding="utf-8")
(inst / "index.html").write_text(html.replace("/*JIANT_UI*/", brand), encoding="utf-8")
shutil.copy(pkg, fw / name)
allowed = {e["file"] for e in versions}
if name in allowed:
shutil.copy(pkg, fw / name)
for e, src in old:
shutil.copy(src, fw / e["file"])
if e["file"] in allowed:
shutil.copy(src, fw / e["file"])
(fw / "versions.json").write_text(json.dumps(versions, indent=1) + "\n", encoding="utf-8")
lic = HERE.parent / "LICENSES" # the package holds JieLi SDK files (Apache-2.0): their
(fw / "LICENSES").mkdir(exist_ok=True) # licence travels next to it, with Felucca's own
@@ -190,3 +202,4 @@ if __name__ == "__main__":
main(*sys.argv[1:5])