R-782: Glance behind the family gate (decision 221); family-gate rule 4 pins the ruled apps
gates / gates (push) Successful in 3s

Glance has no login of its own; new installs are published only behind the
household's family gate (family_gate: true, min_controller 0.287.0, no
exceptions). check-family-gate.py rule 4 refuses a ruled app (metube,
grimmory, glance) whose template drops the key; red-proven by three decoys.
An installed Glance is not re-gated (the controller records the gate at install).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-10-12 14:44:10 +02:00
1 parent 1a642b43e7
commit d308445e87
10 files changed
+85 -15

No files matched your search

+13
View File
@@ -19,6 +19,10 @@ refused here:
Also refused: `family_gate_except:` on a template without `family_gate: true` (an exception list with no gate is a label
without the fact).
4. an app the OPERATOR RULED family-gated (REQUIRED below) whose template does not say `family_gate: true` — the
ruling is the fact; a dropped or commented-out key would publish the app to strangers on every NEW install
(R-782: Glance, decision 221). A template directory that is absent is not refused (nothing is offered).
Line-based on purpose: the catalog's CI has NO PyYAML. Only TOP-LEVEL, uncommented keys count; a key inside a comment, a
README or a tagline is not the field.
@@ -39,6 +43,12 @@ ITEM = re.compile(r'^\s+-\s*(?:"([^"]*)"|\'([^\']*)\'|(\S+))\s*(#.*)?$')
GOLDEN_DIR = re.compile(r"^golden-(\d+)\.(\d+)\.(\d+)-\d{4}-\d{2}-\d{2}$")
GOLDEN_SHA = re.compile(r"GOLDEN_SHA256=[0-9a-f]{64}")
BAKE_LOGS = ("bake.log", "06-bake.log", "bake-clean.log", "06-bake-clean.log")
# Rule 4: the apps the operator ruled family-gated, each with its ruling. Adding an app here is a ruling, not a guess.
REQUIRED = {
"metube": "`09` §3 decisions 63/64 (no login of its own)",
"grimmory": "`09` §3 decisions 63/64 (its 15-minute lock, R-775)",
"glance": "`09` §3 decision 221 (R-782, no login of its own)",
}
def arg(name, default):
@@ -108,6 +118,9 @@ def main():
if not os.path.isfile(fy):
continue
gate, excepts, minc = parse(io.open(fy, encoding="utf-8").read())
if app in REQUIRED and not gate:
fails.append("%s: ruled family-gated by %s, but the template has no top-level `family_gate: true` — "
"every new install would be public" % (app, REQUIRED[app]))
if excepts is not None and not gate:
fails.append("%s: family_gate_except without family_gate: true — an exception list with no gate" % app)
if not gate:
+5 -3
View File
@@ -330,10 +330,12 @@
"description": "Könnyű, saját Git szerver webes felülettel"
},
"glance": {
"app_info.add_people": "A családtagokat a Beállítások, Biztonság oldal Család kártyáján adod hozzá; mindenki a saját nevével és jelszavával lép be.",
"app_info.first_steps[0]": "Nyisd meg a dashboard.DOMAIN címet a böngészőben",
"app_info.first_steps[1]": "Szerkeszd a glance.yml konfigurációs fájlt a kötetben",
"app_info.first_steps[2]": "Add hozzá az RSS feedeket, widgeteket",
"app_info.first_steps[3]": "Személyre szabd az elrendezést",
"app_info.first_steps[1]": "Add hozzá a családtagjaidat a Beállítások, Biztonság oldal Család kártyáján - idegen el sem éri a Glance-ot",
"app_info.first_steps[2]": "Szerkeszd a glance.yml konfigurációs fájlt a kötetben",
"app_info.first_steps[3]": "Add hozzá az RSS feedeket, widgeteket",
"app_info.first_steps[4]": "Személyre szabd az elrendezést",
"app_info.tagline": "Minimalista dashboard - RSS, időjárás, könyvjelzők egy oldalon",
"app_info.use_cases[0]": "RSS hírek, YouTube, Reddit és egyéb tartalmak egy oldalon",
"app_info.use_cases[1]": "Időjárás és rendszer monitorozás widgetekkel",
+5
View File
@@ -687,6 +687,11 @@ def family_gate_cases():
run("FACT: min_controller below the release", lambda: (app(GOOD.replace('0.287.0', '0.286.1')), golden("0.287.0")), 1, ("needs min_controller",))
run("FACT: newest baked golden below the release", lambda: (app(GOOD), golden("0.286.1")), 1, ("publish the app OPEN",))
run("FACT: a golden DIRECTORY 0.287.0 with no bake log (a name is not a bake)", lambda: (app(GOOD), golden("0.286.1"), golden("0.287.0", baked=False)), 1, ("0.286.1",))
# Rule 4 (R-782, decision 221): an app the operator RULED family-gated loses its gate -> refused.
run("FACT: glance (ruled family-gated, decision 221) without family_gate", lambda: (app("min_controller: \"0.287.0\"\n", name="glance"), golden("0.287.0")), 1, ("ruled family-gated",))
run("FACT: glance with family_gate only in a COMMENT (the label without the fact)", lambda: (app("# family_gate: true\nmin_controller: \"0.287.0\"\n", name="glance"), golden("0.287.0")), 1, ("ruled family-gated",))
run("FACT: grimmory (ruled, decisions 63/64) with family_gate: false", lambda: (app('family_gate: false\nmin_controller: "0.287.0"\n', name="grimmory"), golden("0.287.0")), 1, ("ruled family-gated",))
run("GENUINE: glance gated, no exceptions", lambda: (app('family_gate: true\nmin_controller: "0.287.0"\n', name="glance"), golden("0.287.0")), 0, ("family-gate gate OK",))
finally:
shutil.rmtree(ws, ignore_errors=True)