Bootstrap the skill packs from their own repos; docs for the split
scripts/bootstrap.sh now clones each pack (pack.<name>, listed in the new committed packs.json) into the gitignored packs/ BEFORE seeding config, so config-init still generates the pack config fragments; --pack-base overrides the base derived from the checkout's origin remote. README/AGENTS/PACKGEN/ CODEGEN and the packgen skill describe the per-pack repositories.
This commit is contained in:
1 parent
883c51de97
commit
1329de42c4
12 files changed
+142
-53
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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/<category>/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"
|
||||
)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user