You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
replace works on rules only, but the spec says any unit (a library cannot adapt an upstream skill) #56
The spec says replace takes any unit. The code applies it to rules only and warns for anything else.
So a package that passes on another package's harness cannot adapt a skill that does not fit its users.
Seen on 0.9.0.
What happens
Where
What it says
Spec 2.3, extension fields
replace: "Unit ID → path of a file that takes that unit's place."
Spec 3.4, overrides
"replace names a unit: the new file takes the unit's ID and place."
Spec 13, open questions
Assumes people can "replace whole skills".
src/resolve.ts
`${o.kind} works on rules only` for any target that is not a rule. The skills loop never applies a replacement.
Where we met it
@tenphi/cookbook extends @tenphi/glaze. In a Cookbook site, colors come from theme.palette in docs.config.ts, which Cookbook resolves with Glaze. Glaze's glaze-theme skill tells agents to search the code for glaze( and change the definitions there, to run glaze:inspect on "the module that defines the theme", and to keep "the export the application already uses". None of these exist in a Cookbook site.
Cookbook can patch Glaze's colors rule, but not the skill. A skill of its own with the same name warns on every sync. So Cookbook's rule patch only adds a pointer: "In a Cookbook site, the theme it changes is theme.palette."
Proposal
Either apply replace to skills (a folder with a SKILL.md), and to the other kinds the spec lists, or narrow spec 2.3 and 3.4 to "Rule ID" and update the open question.
Activity
chore: use harnesspm 0.10.0 and drop the workarounds it fixes
feat: ship an agent harness and split the docs for humans and AI agen…