drop new-skill legacy fallbacks; make the simplex-chat pin per-arch

- scheduler: remove the creation_approval and locks.new_skill backward-compat
  reads (and the locks cleanup in set_category_mode). The tri-state
  new_skill_creation mode is now the only source of truth.
- pins.json: simplex_chat now carries an assets map (x86_64 + aarch64) with
  per-arch bin_url/sha256; bootstrap selects by uname -m (arm64 -> aarch64).
  Fixes the Pi (aarch64) fetching the x86_64 binary.
- docs/tests updated.
This commit is contained in:
gabby committed 2026-10-10 01:50:28 +00:00
1 parent c5ee87875f
commit 9ba14fdab0
7 files changed
+32 -58

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
"""Pure-stdlib tests for the housekeeping meta skills and per-category locks.
"""Pure-stdlib tests for the housekeeping meta skills and per-category modes.
These cover the deterministic mechanics: name resolution, registry/store
deletion, tombstones, the lock gate, and the scheduler operations the meta
@@ -250,7 +250,7 @@ def test_delete_seed_is_durable(tmp_path):
assert all(s.name != "probe" for s in reloaded.tree.get("nextcloud", []))
# ---- locks ----
# ---- new-skill modes ----
def test_housekeeping_and_response_are_hard_locked(tmp_path):
-26
View File
@@ -1314,32 +1314,6 @@ def test_creation_mode_allow_proceeds(tmp_path):
assert scheduler.pending_approvals() == []
def test_creation_approval_legacy_boolean_fallback(tmp_path):
"""The retired `creation_approval` boolean still maps to ask/allow when the
new `new_skill_creation` key is absent."""
def build(config):
return Scheduler(
engine=ScriptedEngine(default="success"),
llm=LLMClient(base_url="http://localhost:1/v1", model="test"),
log=DecisionLog(str(tmp_path / "decisions.jsonl")),
config={
"skills": {},
"category_registry": str(tmp_path / "categories.json"),
"skill_bodies": str(tmp_path / "skills"),
"skill_seeds": str(tmp_path / "seeds"),
**config,
},
trace=TraceLog(str(tmp_path / "runs.jsonl")),
)
assert build({"creation_approval": True}).new_skill_mode == "ask"
assert build({"creation_approval": False}).new_skill_mode == "allow"
# The new key wins when both are present.
assert build(
{"creation_approval": True, "new_skill_creation": "deny"}
).new_skill_mode == "deny"
def test_creation_mode_deny_aborts_without_prompting(tmp_path):
"""Global `deny` blocks authoring outright; no approval is posted."""
scheduler = _scheduler(tmp_path)