diff --git a/.opencode/skills/packgen/SKILL.md b/.opencode/skills/packgen/SKILL.md index f0070a9..cd4bf5a 100644 --- a/.opencode/skills/packgen/SKILL.md +++ b/.opencode/skills/packgen/SKILL.md @@ -1,6 +1,6 @@ --- name: Pack Generation -description: Author a new semif-agent skill pack (packs//) — the pack.json manifest, its skill leaves, its bridge reference, and its config schema. Use when adding a new concern/product bundle under packs/, or when adding a new bridge service to back one. +description: Author a new semif-agent skill pack (its own packs// repository) — the pack.json manifest, its skill leaves, its bridge reference, and its config schema. Use when adding a new concern/product bundle as its own pack repo, or when adding a new bridge service to back one. --- # Pack Generation @@ -12,10 +12,10 @@ truth and this skill is only the workflow. ## When to use -- The user wants a new concern/product bundle under `packs//`. +- The user wants a new concern/product bundle (its own `packs//` repo). - The user wants a new third-party service backed by a bridge in `semif_agent/bridges/`. -- The user is adding skills that should ship as committed seeds rather than be +- The user is adding skills that should ship as a pack rather than be authored at runtime. ## Workflow @@ -27,9 +27,10 @@ truth and this skill is only the workflow. already fronts it in `semif_agent/bridges/registry.py` `CATALOG`. If not, author the bridge first (see the "Authoring a new bridge" section of `PACKGEN.md`), register it in `CATALOG`, and give it a pack config block. -4. **Create `packs//pack.json`** with `name`, `title`, `concern`, - `categories`, `bridges`, `requires`, `enabled_by_default`, and the `config` - schema. Model it on `packs/essentials/pack.json` (bridge-less) or +4. **Create the pack** (its own repository, `pack.`): + `packs//pack.json` with `name`, `title`, `concern`, `categories`, + `bridges`, `requires`, `enabled_by_default`, and the `config` schema. Model + it on `packs/essentials/pack.json` (bridge-less) or `packs/simplex/pack.json` (bridge-backed). 5. **Add each leaf** under `skills///` — `skill.py`, `manifest.json`, `contract.json`, `skill.test.py` — following `CODEGEN.md` @@ -44,11 +45,14 @@ truth and this skill is only the workflow. pack). 9. **Verify a real run** against the user's actual service — a passing hermetic test proves mechanics only, never the live integration. +10. **Register and publish:** add the pack's name to the committed `packs.json` + in the agent repo, then commit and push the pack's own repository + (`pack.`). `scripts/bootstrap.sh` clones it into `packs/`. ## Guardrails -- A pack is declarative and committed; never put a credential in it (secrets - live in the gitignored `secrets.json`). +- A pack is declarative, committed in its own repository; never put a credential + in it (secrets live in the gitignored `secrets.json`). - Bridge *code* stays in `semif_agent/bridges/`; a pack only references a bridge by name. Never widen the gateway. - `concern` and `categories` are required; every category needs a description. diff --git a/AGENTS.md b/AGENTS.md index 0c3c297..229dc60 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -78,7 +78,7 @@ config.py layered per-machine config: config.json is a thin index pack's `config` schema, GENERATES config.example.json (check-config --write-example) and validates a live config packs.py SkillPack + PackRegistry: discovers packs/ (a `pack.json` - manifest + skills///), binds a concern to its + manifest + skills///; each pack is cloned from its own repo — see packs.json), binds a concern to its categories, bridge(s), requirements, and config schema; merge_packs loads every enabled pack into the tree scheduler.py no up-front gate: every input is dispatched @@ -139,8 +139,8 @@ skills.py tree + registry (hardcoded built-ins: the closed `response` canned (skill.py, skill.test.py, contract.json, config.json) and materialize_skill / merge_skill_store hot-load runnable skills from data/skills/; - merge_packs (semif_agent/packs.py) loads committed pack skills - from packs//skills/ with their recorded config read from + merge_packs (semif_agent/packs.py) loads each pack's skills + from packs//skills/ (each cloned from its own repo) with their recorded config read from data/skills/ (each pack bundles its concern, category scope, bridge, and config schema); ActionResult.needs_input pauses a run for human input; @@ -518,7 +518,7 @@ CLI, unit tests (24) + integration tests (2). deny-by-default Oct 2026): one setting governs whether the agent may author new skills/categories, as a three-way mode. **Global default** is the top-level `new_skill_creation` — **`"deny"` by default** (the agent leans on the - committed packs, the primary way to extend functionality), with `"allow"` an + shipped packs, the primary way to extend functionality), with `"allow"` an explicit opt-in for a host with the resources, or `"ask"`; a category overrides it with its own `new_skill_creation` in `data/skills//config.json` (absent = inherit the global). `allow` authors immediately; `deny` blocks authoring @@ -989,7 +989,9 @@ CLI, unit tests (24) + integration tests (2). check** (inline fixtures, loopback `http.server` for HTTP bodies, no external network) that never certifies the live integration — only a real run does. The body owns no data; everything comes from the runner via `ctx.config`. -- **Skill packs.** `packs//` bundles a concern with its skills: a +- **Skill packs.** Each pack lives in its own repository (`pack.`, listed + in the committed `packs.json`); `scripts/bootstrap.sh` clones them into the + gitignored `packs//`. A pack bundles a concern with its skills: a `pack.json` manifest (name, concern, `categories` → descriptions, `bridges` referenced by name, `requires`, and a `config` schema) plus `skills///` in the exact generated-skill folder format @@ -1001,7 +1003,7 @@ CLI, unit tests (24) + integration tests (2). pack follows `bridges..enabled`, else `enabled_by_default`. Disabling a pack drops its categories entirely (including generated bodies authored into one) and stops its bridge. Recorded config (credentials collected at first - fire) is written to the runtime store `data/skills/`, so the committed pack + fire) is written to the runtime store `data/skills/`, so a pack repo never holds secrets, and a generated body with the same name replaces the pack skill. The shipped packs: `nextcloud`, `simplex`, `outlook`, `browser` (each owning its bridge), and `essentials` (the built-in local utilities `time` + @@ -1481,10 +1483,12 @@ CLI, unit tests (24) + integration tests (2). - **The contract.** `PACKGEN.md` is the authoritative spec for a new pack — `pack.json`, its `config` schema, its bridge reference, and how to author a new bridge to back one. It is the sibling of `CODEGEN.md`/`TESTGEN.md`; read it - before adding anything under `packs/`. + before adding a pack (each pack is its own repository). - **What they are.** A pack bundles a concern/product with the skills that serve it, in `packs//`: a `pack.json` manifest plus - `skills///` folders (the exact generated-skill format). The + `skills///` folders (the exact generated-skill format). Each + pack is its own repository (`pack.`, listed in `packs.json`), cloned by + `scripts/bootstrap.sh` into the gitignored `packs//`. The manifest binds the pieces that used to be scattered by convention: `concern`/`title`, `categories` (id -> scope description, feeding `CATEGORY_DESCRIPTIONS`), `bridges` (names referencing `bridges/registry.py` @@ -1508,8 +1512,8 @@ CLI, unit tests (24) + integration tests (2). `semif_agent/config.py` `SHARED_BRIDGE_SCHEMA`. - **Shipped packs.** `nextcloud`, `simplex`, `outlook`, `browser` (each owning its bridge) and `essentials` (the built-in local utilities `time` + - `calculator`; no bridge). Adding a concern means adding a pack, not editing - `skills.py`. + `calculator`; no bridge) — each in its own repository. Adding a concern means + adding a pack repo, not editing `skills.py`. ### bridges (third-party API services) diff --git a/CODEGEN.md b/CODEGEN.md index f706d05..25ab9e1 100644 --- a/CODEGEN.md +++ b/CODEGEN.md @@ -30,7 +30,8 @@ A skill is three things: talks to and how) and the `CONTRACT` constant (the values the runner must provide). -The committed seed `packs/nextcloud/skills/nextcloud/create_event/` is the **authoritative worked +The `nextcloud` pack's create_event skill +(`packs/nextcloud/skills/nextcloud/create_event/`, from its own repo) is the **authoritative worked example** of all three. Read its `manifest.json`, its `skill.py` (which declares `INTEGRATION` and `CONTRACT`), and its `skill.test.py` alongside this file; a new body should look and behave like it. @@ -405,7 +406,7 @@ INTEGRATION = { skills that perform no external action at all (pure analysis/formatting); an action skill must not use it. - `config_vars` — the `ctx.config` keys the body reads for this integration. In - the committed seeds this is exactly the body's `CONTRACT` key set; an empty + the shipped seeds this is exactly the body's `CONTRACT` key set; an empty list is allowed for `compute`. Declaring a variable the body never reads is a mismatch the fidelity check flags. diff --git a/PACKGEN.md b/PACKGEN.md index d6d1d2f..e399574 100644 --- a/PACKGEN.md +++ b/PACKGEN.md @@ -6,7 +6,7 @@ skill's runnable **body**, `TESTGEN.md` governs its **test**, and this file governs the **pack** that bundles a concern, its skills, its bridge reference, and its settings into one thing. -Read this before adding anything under `packs/`. A pack is what makes a new +Read this before adding a pack. A pack is what makes a new product/concern a first-class part of the agent instead of scattered edits to `skills.py` and `config.py`. @@ -14,8 +14,10 @@ product/concern a first-class part of the agent instead of scattered edits to Semif-agent ships a set of starter integrations. Each is a **pack**: a folder `packs//` holding a `pack.json` manifest plus a `skills/` store of leaves -in the exact generated-skill format. The manifest binds the pieces that would -otherwise be scattered by convention: +in the exact generated-skill format. Each pack lives in its **own repository** +(`pack.`, listed in the committed `packs.json`); `scripts/bootstrap.sh` +clones them into the gitignored `packs//`. The manifest binds the pieces +that would otherwise be scattered by convention: - the **concern** (what product/job this is) and its **title**; - its **categories** (the tree buckets it owns, each with a scope description); @@ -39,9 +41,9 @@ Three boundaries must stay crisp: auth state), a native or heavy protocol, or one sanitized surface; a system with a plain HTTP API needs no bridge — its skill calls the API directly. A pack *references* a bridge by name; it never contains bridge code. -- A pack is **declarative structure** and is committed. Per-machine values are - the split config; credentials live in `secrets.json`. A committed pack never - holds a secret. +- A pack is **declarative structure**, committed in its own repository. + Per-machine values are the split config; credentials live in `secrets.json`. + A pack repo never holds a secret. ## Folder layout @@ -66,9 +68,9 @@ packs// skill gets from the `llm` provider. - A root with no `pack.json` is treated as **one implicit, manifest-less pack** whose store is the root itself (a plain skills directory still works), but a - committed pack should always have a manifest. + pack repo should always have a manifest. -The committed `packs/` are the authoritative worked examples: `essentials` is +The shipped packs are the authoritative worked examples: `essentials` is the minimal bridge-less pack; `nextcloud`, `simplex`, `outlook`, and `browser` are bridge-backed packs. @@ -307,9 +309,10 @@ A new pack is accepted only if: are clean. 6. Nothing deployment-specific (hostname, address, username, absolute home path, local model name) appears in any committed file — - `tests/test_no_env_leaks.py` enforces this. Secrets live in `secrets.json`. + `tests/test_no_env_leaks.py` enforces this for the agent repo; keep a pack + repo clean too. Secrets live in `secrets.json`. -`tests/test_packs.py` enforces items 1–3 mechanically for every committed pack +`tests/test_packs.py` enforces items 1–3 mechanically for every shipped pack (valid manifest, concern + categories, integration matches code, contract flat and mirrored, manifest description, hermetic test passes) and keeps the shipped pack ids present. @@ -355,7 +358,7 @@ packs/hello/ ``` The leaf's `skill.py` (a `compute`-transport body — no external action, empty -`CONTRACT`) and `skill.test.py` follow `CODEGEN.md`/`TESTGEN.md`; the committed +`CONTRACT`) and `skill.test.py` follow `CODEGEN.md`/`TESTGEN.md`; the shipped `packs/essentials/skills/time/now/` is the reference for exactly this shape. For a bridge-backed pack, start from `packs/simplex/pack.json` (bridge @@ -371,9 +374,9 @@ HTTP). For a bridge with top-level fallbacks, see `packs/nextcloud/`. heavy protocol, or one sanitized surface, author a bridge first (see "Authoring a new bridge") and register it in `CATALOG`. A system with a plain HTTP API needs no bridge — the skill calls it directly. -3. Create `packs//pack.json` with `name`, `title`, `concern`, - `categories`, `bridges` (if any), `requires`, `enabled_by_default`, and the - `config` schema. +3. Create the pack (its own repository, `pack.`): `packs//pack.json` + with `name`, `title`, `concern`, `categories`, `bridges` (if any), `requires`, + `enabled_by_default`, and the `config` schema. 4. Add each leaf under `skills///` following `CODEGEN.md` and `TESTGEN.md` (`skill.py`, `manifest.json`, `contract.json`, `skill.test.py`). 5. Regenerate and validate config: @@ -386,3 +389,6 @@ HTTP). For a bridge with top-level fallbacks, see `packs/nextcloud/`. pack). 8. Verify a real run against the user's actual service — the only proof the integration works. +9. Add the pack's name to the committed `packs.json`, then commit and push the + pack's own repository (`pack.`); `scripts/bootstrap.sh` clones it into + `packs/`. diff --git a/README.md b/README.md index b049b65..893cffd 100644 --- a/README.md +++ b/README.md @@ -404,8 +404,8 @@ semif_agent/ Outlook, browser) config.py layered config: index includes + !secret + schema/example packs.py SkillPack + PackRegistry (bundles skills by concern/bridge) -packs/ committed skill packs: nextcloud, simplex, outlook, browser, - essentials (a pack.json manifest + skills///) +packs/ skill packs, each cloned from its own repo (pack.) + into this gitignored dir — see packs.json + PACKGEN.md scripts/ bootstrap.sh, simplex-address.py, systemd/*.in requirements/ staging.txt — the pinned engine deps tests/ stdlib unit tests + tests/integration (real engine + LLM) @@ -418,6 +418,7 @@ config/ split config fragments (core, gateway, bridges, packs/*) secrets.json gitignored credentials, referenced as "!secret " config.example.json GENERATED per-machine config reference (from the schemas) pins.json committed pins: engine/GGUF/tokenizer/simplex-chat refs +packs.json committed list of skill-pack repos cloned into packs/ local/ gitignored: this deployment's notes (hosts, addresses, models) ``` @@ -954,12 +955,14 @@ bodies, no external network, no `mock_data.json`. Passing it proves the code runs, not that the live integration works. That is what the real run and the repair loop are for. -**Packs** (`packs//`) ship real starter integrations in the exact generated -folder format, plus a `manifest.json` and a `pack.json` manifest binding the -concern to its categories, bridge, and config schema. `merge_packs` loads every -enabled pack into the tree at startup; recorded config is written to the runtime -store, so the committed pack never holds secrets. `PACKGEN.md` is the -authoritative contract for authoring a new pack (and a new bridge to back one). +**Packs** ship real starter integrations in the exact generated folder format, +plus a `manifest.json` and a `pack.json` manifest binding the concern to its +categories, bridge, and config schema. Each pack lives in its **own repository** +(`pack.`, listed in `packs.json`); `scripts/bootstrap.sh` clones them into +the gitignored `packs//`, and `merge_packs` loads every enabled pack into +the tree at startup. Recorded config is written to the runtime store, so a pack +repo never holds secrets. `PACKGEN.md` is the authoritative contract for +authoring a new pack (and a new bridge to back one). - `nextcloud.create_event` — create an event on Nextcloud CalDAV (the authoritative worked example); resolves the target calendar with a SemIf diff --git a/packs.json b/packs.json new file mode 100644 index 0000000..e384b52 --- /dev/null +++ b/packs.json @@ -0,0 +1,10 @@ +{ + "_comment": "The skill packs that ship with the agent. Each lives in its own repository named pack.; scripts/bootstrap.sh clones each into the gitignored packs// from a sibling of this checkout's origin remote (override the base URL with --pack-base). The agent loads every pack under skill_packs (default 'packs'); PACKGEN.md is the contract for authoring a new one.", + "packs": [ + "browser", + "essentials", + "nextcloud", + "outlook", + "simplex" + ] +} diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index a6e7302..d6d0cb2 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -7,8 +7,11 @@ # it); codegen may point at a remote ollama host. This script installs NO ollama. # # Must be run from a semif-agent checkout. The checkout is used as-is and never -# re-cloned — only the SemIf engine and the simplex-chat binary are fetched. -# Clone the agent repo first (its SSH key must be registered on your git host). +# re-cloned — only the SemIf engine, the simplex-chat binary, and the skill +# packs are fetched. Clone the agent repo first (its SSH key must be registered +# on your git host); each skill pack is then cloned from a sibling repository +# named pack. on the same host (see packs.json) into the gitignored +# packs/ directory. # # config.json is the per-machine USER config (a thin index over config/*.json) # and this script NEVER rewrites it. It seeds the split config via `config-init` @@ -35,7 +38,7 @@ # Usage: # scripts/bootstrap.sh [--llm-url URL] [--codegen-url URL] [--llm-model MODEL] # [--codegen-model MODEL] [--copy-data SRC] [--voice] -# [--browser] [--gpu MODE] [-h] +# [--browser] [--gpu MODE] [--pack-base URL] [-h] # # Run as the human user; sudo is used internally for system bits. set -euo pipefail @@ -48,9 +51,10 @@ COPY_DATA="" VOICE=0 BROWSER=0 GPU_MODE="auto" +PACK_BASE="" usage() { - sed -n '2,35p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//' + sed -n '2,/^set -euo pipefail/p' "${BASH_SOURCE[0]}" | sed '$d' | sed 's/^# \{0,1\}//' echo echo " --llm-url URL override llm.base_url from config.json for this run (else config.json, else http://127.0.0.1:11434)" echo " --codegen-url URL override codegen.base_url from config.json for this run" @@ -60,6 +64,7 @@ usage() { echo " --voice install the optional voice-gateway stack + download its models" echo " --browser install the optional browser-bridge stack (Playwright + Chromium)" echo " --gpu MODE decision-engine llama.cpp backend: auto (default; a GPU build only when engine.gpu_layers is set), vulkan, rocm, cuda, cpu" + echo " --pack-base URL base URL of the skill-pack repos (default: derived from this checkout's origin remote)" echo " -h this help" exit "${1:-0}" } @@ -74,6 +79,7 @@ while [[ $# -gt 0 ]]; do --voice) VOICE=1; shift ;; --browser) BROWSER=1; shift ;; --gpu) GPU_MODE="$2"; shift 2 ;; + --pack-base) PACK_BASE="$2"; shift 2 ;; -h|--help) usage 0 ;; *) echo "unknown option: $1" >&2; usage 1 ;; esac @@ -106,6 +112,57 @@ if [[ ! -f "$PINS" ]]; then exit 1 fi +# --- skill packs ---------------------------------------------------------------- +# Each pack ships in its own repository named pack., cloned into the +# gitignored packs/ directory; the agent loads every pack under skill_packs +# (default "packs"). The list lives in the committed packs.json; each repo is a +# sibling of this checkout's origin remote (pack.) unless --pack-base +# overrides the base. This runs BEFORE the config is seeded so config-init sees +# the packs and generates their config/packs/*.json fragments. Idempotent: +# clone when absent, fast-forward when present. +PACK_MANIFEST="$REPO_ROOT/packs.json" +if [[ -f "$PACK_MANIFEST" ]]; then + if [[ -z "$PACK_BASE" ]]; then + ORIGIN_URL="$(git -C "$REPO_ROOT" remote get-url origin 2>/dev/null || true)" + PACK_BASE="${ORIGIN_URL%/*}" + fi + PACK_BASE="${PACK_BASE%/}" + if [[ -z "$PACK_BASE" ]]; then + echo "WARN: no 'origin' remote to derive the skill-pack repos from; clone them into packs/ or pass --pack-base URL" >&2 + else + echo "== skill packs (from $PACK_BASE/pack.)" + mkdir -p "$REPO_ROOT/packs" + while IFS= read -r pack_name; do + [[ -z "$pack_name" ]] && continue + pack_dst="$REPO_ROOT/packs/$pack_name" + pack_url="$PACK_BASE/pack.$pack_name.git" + if [[ -d "$pack_dst/.git" ]]; then + if git -C "$pack_dst" pull --ff-only --quiet 2>/dev/null; then + echo " $pack_name: up to date" + else + echo " WARN: could not update pack $pack_name (leaving the local checkout)" >&2 + fi + elif [[ -e "$pack_dst" ]]; then + echo " WARN: packs/$pack_name exists but is not a git clone; leaving it" >&2 + elif git clone --quiet "$pack_url" "$pack_dst" 2>/dev/null; then + echo " $pack_name: cloned" + else + echo " WARN: could not clone $pack_name from $pack_url" >&2 + fi + done < <(python3 - "$PACK_MANIFEST" <<'PY' +import json, sys +try: + data = json.load(open(sys.argv[1])) +except Exception: + raise SystemExit(0) +for name in data.get("packs", []): + if str(name).strip(): + print(str(name).strip()) +PY +) + fi +fi + # config.json is per-machine USER config. Seed it once (as a thin index plus the # split config/ fragments + secrets.json), then never write it again — only a # human edits it. The committed config.example.json is GENERATED from the pack + @@ -642,6 +699,9 @@ Done. Next steps: codegen.model/codegen.base_url; put credentials in secrets.json. bootstrap.sh seeded the config via config-init (if it was absent) and NEVER rewrites it; only you edit it. + 2. Skill packs are cloned from their own repos into packs/ (see packs.json); + they are gitignored here. Update them with: + for d in packs/*/; do git -C "\$d" pull --ff-only; done cd "$REPO_ROOT" HF_HOME="$HF_CACHE" "$PYTHON" -m semif_agent.cli run HF_HOME="$HF_CACHE" "$PYTHON" -m pytest tests/integration -q -s (needs real engine+LLM) diff --git a/scripts/tune_navigation.py b/scripts/tune_navigation.py index 0bf7e12..2ec1949 100644 --- a/scripts/tune_navigation.py +++ b/scripts/tune_navigation.py @@ -26,7 +26,7 @@ a host with the pinned engine: .runtime/venv/bin/python scripts/tune_navigation.py .runtime/venv/bin/python scripts/tune_navigation.py --level leaf --tau 0.6 -The tree is whatever the host currently has loaded (committed packs + the runtime +The tree is whatever the host currently has loaded (shipped packs + the runtime `data/skills/`), so an expectation naming a skill that is not present is reported as N/A rather than counted wrong. Labels are hand-written ground truth; self-labeled decision rows are not evidence. Nothing is written to the runtime diff --git a/semif_agent/cli.py b/semif_agent/cli.py index 38c51bc..b774000 100644 --- a/semif_agent/cli.py +++ b/semif_agent/cli.py @@ -147,7 +147,7 @@ def load_config(path: str = "config.json") -> dict: Path-valued keys (`skill_packs`, `skill_bodies`, `category_registry`, `log`, `trace`) resolve against REPO_ROOT, not the process cwd, so a fresh clone - loads its committed packs and writes runtime artifacts into the checkout no + loads its packs and writes runtime artifacts into the checkout no matter where the CLI is invoked from. Absolute values pass through untouched. """ config_path = Path(path) diff --git a/semif_agent/config.py b/semif_agent/config.py index d6816c3..d2d6fac 100644 --- a/semif_agent/config.py +++ b/semif_agent/config.py @@ -43,7 +43,7 @@ CORE_SCHEMA: dict[str, Any] = {'tau': {'default': 0.6, 'type': 'float', 'doc': ' 'type': 'str', 'doc': 'Global tri-state new-skill mode: deny (default) | allow | ask (a ' 'category config overrides it). Deny by default: the agent leans on ' - 'the committed packs, and a host opts in to live skill authoring by ' + 'the shipped packs, and a host opts in to live skill authoring by ' 'setting allow.'}, 'verbosity': {'default': 'result', 'type': 'str', diff --git a/semif_agent/scheduler.py b/semif_agent/scheduler.py index ff24c7f..ab1e327 100644 --- a/semif_agent/scheduler.py +++ b/semif_agent/scheduler.py @@ -75,7 +75,7 @@ from .trace import TraceLog #: The tri-state governing whether a new skill (or category) may be authored. #: `allow` authors immediately, `deny` blocks creation outright (the default — -#: the agent leans on the committed packs), and `ask` authors only after the +#: the agent leans on the shipped packs), and `ask` authors only after the #: human approves the proposal. Set globally with the top-level #: `new_skill_creation` config value and overridden per category in #: `data/skills//config.json` (same key). @@ -369,7 +369,7 @@ class Scheduler: self._outbox: deque[SchedulerReply] = deque(maxlen=256) #: Global new-skill creation mode: "deny" (default), "allow", or "ask". #: A category may override it in its category config. Deny by default - #: keeps the agent on the committed packs; live authoring is an opt-in. + #: keeps the agent on the shipped packs; live authoring is an opt-in. self.new_skill_mode = ( normalize_new_skill_mode(config.get("new_skill_creation")) or "deny" ) diff --git a/semif_agent/skills.py b/semif_agent/skills.py index ae77046..3f6f800 100644 --- a/semif_agent/skills.py +++ b/semif_agent/skills.py @@ -68,7 +68,7 @@ class Skill: integration: dict = field(default_factory=dict) integration_source: str = "unknown" category_description: str = "" - # Where the leaf came from: "builtin" (hardcoded), "seed" (a committed pack + # Where the leaf came from: "builtin" (hardcoded), "seed" (a shipped pack # skill), or "generated" (codegen-authored). Built-ins are protected from # delete/restart/regen; pack and generated leaves are deletable (durably, # via a tombstone). @@ -310,7 +310,8 @@ class SkillStore: class DeletedSkills: """A persisted set of deleted skill refs (`category.name`). - Committed pack skills reload from `packs/` on every startup, so deleting one + Pack skills (cloned from their own repos into `packs/`) reload on every + startup, so deleting one from the running tree would be undone on the next boot. Recording the ref here suppresses it (and any generated body of the same name) at load time, making deletion durable. Restoring a skill means removing its ref.