Skip to content

fix(aidd-context): keep skill rules on one line and drop redundant stop edges - #1231

Merged
blafourcade merged 4 commits into
nextfrom
fix/skill-rules-one-line
Nov 14, 2026
Merged

blafourcade merged 4 commits into
nextfrom
fix/skill-rules-one-line

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

What

  • Every rule list of a generated skill holds one rule per line, its case inside the sentence, no sub-items (R10). The checker reports a sub-item under a rule as rule-line; a step keeps its cases as dash sub-items.
  • The generator's transversal rules shrink to six one-line rules; the dropped ones were already covered by scope, validate and 03-write.
  • R5 no longer asks for a diagram edge for a stop a transversal rule already states. The generator's own router drops its reference unreadable edge and keeps path outside the workspace.

Evidence

  • node --test check-skill.test.js scaffold-skill.test.js: pass 78, fail 0; the four new tests failed first.
  • Real Haiku runs, 3 per cell, generator with vs without the stop edges:
    • missing reference: 3/3 stop in both, so the edge is redundant.
    • path outside the workspace: 3/3 stop with the edge, 0/3 without it, where the model relocated the target inside the workspace, so this edge stays.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XeK3mF8AnMGkkanvwkEgGK

blafourcade and others added 4 commits November 14, 2026 06:08
The checker told a rule with two sentences to split into dash
sub-items, so the generator wrote nested rules into its own router.
A rule list now holds one rule per line, its case inside the
sentence; only a step keeps its cases as sub-items.

The generator's transversal rules drop from 13 lines to 6: the ones
an action already states (confirm the frame, write inside the
workspace, report runtime unverified, follow the authoring rules)
leave the router.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XeK3mF8AnMGkkanvwkEgGK
… states

A real run showed the edge for an unreadable reference changed nothing,
since the transversal rule already stops the run, while the edge for a
path outside the workspace was the only place that stop was visible.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XeK3mF8AnMGkkanvwkEgGK
…ubagent rule

A plan with nothing to change and a path outside the workspace both end
the run with the reason in the report, so one terminal draws both. The
subagent rule guarded a case no run has shown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XeK3mF8AnMGkkanvwkEgGK
… states

R5 now asks for a stop branch only where no transversal rule states it.
In real runs, a generator with this R5 drew no edge for a stop written as
a transversal rule, and one with the former R5 drew one per action. The
generator's own router groups its edges by entries, path, confirmations
and ends.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XeK3mF8AnMGkkanvwkEgGK
@blafourcade
blafourcade marked this pull request as ready for review November 14, 2026 06:07
@blafourcade
blafourcade requested a review from a team as a code owner November 14, 2026 06:07
@blafourcade
blafourcade merged commit 8d67ae9 into next Nov 14, 2026
@blafourcade
blafourcade deleted the fix/skill-rules-one-line branch November 14, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant