Agents
Who works in the project: agent definitions (kind, runtime, model, effort, limits) and a check that a definition can be repeated. The base of the factory packages: automations, runs, alarms.
About the package
The collection Agents: one page per kind of agent the project runs. The page type is Worker (one run), Assistant or Specialist (long-lived). The fields and types are the same ones the Shtukbase node reads, so the pages work for both the light form and the node.
Norm AGT-R01: a definition can be repeated. The enforcer is the definition check.
On install, the place action adds the Worker kind to the placement map /base/ontology/placement.md (package layers). The map becomes an editable page. This is intended: the package that brings a collection puts the line for its kind there.
The shared part of the factory packages lives here, in lib/: parsing of fields and time (factlib.ts), writing pages for actions (write.ts) and the placement map line (place.ts). The packages automations, runs and alarms require agents and take it from here.
Boundary: run profiles ("kind of task → model and effort"), threads, handoffs and briefs belong to the factory package. The table of agent tiers (which model for which work) is a project rule, not a package rule.
Norms 1
| ID | Norm | Level | Mode | Enforcer |
|---|---|---|---|---|
| AGT-R01 | An agent definition names the kind, runtime and model; it has no conversation in it |
SHOULD | blocks | check |
"Blocks": the enforcer stops a violation. "Observes": it only notes it. Level MUST means required; SHOULD means yes by default.
Actions 2
| Name | What it does | File | When |
|---|---|---|---|
| place | Add the Worker kind to the placement map | bin/place.ts | after install after update |
| definition | An agent definition names the kind, runtime and model; it has no conversation in it norm AGT-R01 | checks/a01_definition.ts | check |
shtuk check runs the checks; shtuk run agents <name> runs any action. "After install" actions run by themselves only if the package comes from a trusted source.
Pages 2
They go into the project at these paths.
- /
- Agents collection
- /norms/rules/agents/
- An agent definition can be repeated AGT-R01
Package files 6
They go into .shtukbase/packages/agents/; actions run from there.