Harden firmware recovery and retries

Improve companion BLE delivery and idempotent remote CLI retries, make FPF7 persistence atomic with FPF6 migration, verify staged OTA data on resume, and clarify filter policy wildcard and BlackHole semantics.
This commit is contained in:
mikecarper committed 2026-08-07 16:24:53 -07:00
1 parent 7f56da7a34
commit 11b692abfa
37 files changed
+1666 -307

No files matched your search

+12
View File
@@ -92,6 +92,18 @@ test("builds and parses the BlackHole86 policy definition", () => {
assert.strictEqual(tool.buildDefinition(rule), definition);
});
test("treats channel star as no channel condition", () => {
const rule = tool.parseDefinition(
"policy set everything phase=forward owner=filter priority=1 when route=flood type=any hops=all channel=* do drop"
);
assert.strictEqual(rule.channel, "");
assert.strictEqual(tool.matchRule(rule, packet({ type: "grp_data" })).matched, true);
assert.strictEqual(tool.matchRule(
rule, packet({ type: "ota", channel: "" })
).matched, true);
assert.doesNotMatch(tool.buildDefinition(rule), /channel=/);
});
test("keeps a payload class and path bucket in one rule", () => {
const definition = "policy set other-bucket phase=rewrite owner=scope priority=130 when route=flood type=class:other hops=all path=bucket:2 do scope=#BlackHole86 timing=slow";
const rule = tool.parseDefinition(definition);