factory-audit audits skills and agents only. A hand-edited *.instructions.md currently gets no audit, and the description field is dropped on Claude compile without any warning.
What to build
Register instructions as a primitive in the generic flow from #147:
A scripts/lib-checks-instructions.sh check suite, sourced from a new instructions mode in scripts/validate.sh, encoding the rules instructions-author (#148) already decided are correct. Do not design the rubric twice: derive it from that skill's references/.
A criteria file and any rubrics the flow needs, under references/.
A row in the primitive data table (target shape *.instructions.md, coverage line, "Run instructions-author to address findings").
Provenance handling: extend validate-provenance.sh only if instructions files carry source_keys; otherwise say so in the PR.
tests/validate-instructions.bats.
Not in scope
Any change to the skill or agent flows or check suites.
Acceptance criteria
factory-audit on a valid instructions file returns PASS; on one with a field that Claude compile drops, the finding names the field, the target and the fix.
tests/validate-instructions.bats passes, with the existing skill and agent bats suites still green.
Step 0 recognises *.instructions.md and the unrecognised-path message lists the new shape.
factory-auditmetadata.version bumped (ADR-0022); description and body pass ADR-0020 budgets.
Part of #94.
Depends on #147
Depends on #148
## Why
`factory-audit` audits skills and agents only. A hand-edited `*.instructions.md` currently gets no audit, and the `description` field is dropped on Claude compile without any warning.
## What to build
Register instructions as a primitive in the generic flow from #147:
- A `scripts/lib-checks-instructions.sh` check suite, sourced from a new `instructions` mode in `scripts/validate.sh`, encoding the rules `instructions-author` (#148) already decided are correct. Do not design the rubric twice: derive it from that skill's `references/`.
- A criteria file and any rubrics the flow needs, under `references/`.
- A row in the primitive data table (target shape `*.instructions.md`, coverage line, "Run instructions-author to address findings").
- Provenance handling: extend `validate-provenance.sh` only if instructions files carry `source_keys`; otherwise say so in the PR.
- `tests/validate-instructions.bats`.
## Not in scope
- Any change to the skill or agent flows or check suites.
## Acceptance criteria
- [ ] `factory-audit` on a valid instructions file returns PASS; on one with a field that Claude compile drops, the finding names the field, the target and the fix.
- [ ] `tests/validate-instructions.bats` passes, with the existing skill and agent bats suites still green.
- [ ] Step 0 recognises `*.instructions.md` and the unrecognised-path message lists the new shape.
- [ ] `factory-audit` `metadata.version` bumped (ADR-0022); description and body pass ADR-0020 budgets.
- [ ] `apm audit --ci` clean.
## References
- `plugins/kyberforge/docs/research/docs/microsoft-apm/instructions-primitive-schema.md`
- ADR-0020, ADR-0022, ADR-0025
Claude
added this to the Kyberforge basics milestone 2026-10-01 06:23:49 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #94.
Depends on #147
Depends on #148
Why
factory-auditaudits skills and agents only. A hand-edited*.instructions.mdcurrently gets no audit, and thedescriptionfield is dropped on Claude compile without any warning.What to build
Register instructions as a primitive in the generic flow from #147:
scripts/lib-checks-instructions.shcheck suite, sourced from a newinstructionsmode inscripts/validate.sh, encoding the rulesinstructions-author(#148) already decided are correct. Do not design the rubric twice: derive it from that skill'sreferences/.references/.*.instructions.md, coverage line, "Run instructions-author to address findings").validate-provenance.shonly if instructions files carrysource_keys; otherwise say so in the PR.tests/validate-instructions.bats.Not in scope
Acceptance criteria
factory-auditon a valid instructions file returns PASS; on one with a field that Claude compile drops, the finding names the field, the target and the fix.tests/validate-instructions.batspasses, with the existing skill and agent bats suites still green.*.instructions.mdand the unrecognised-path message lists the new shape.factory-auditmetadata.versionbumped (ADR-0022); description and body pass ADR-0020 budgets.apm audit --ciclean.References
plugins/kyberforge/docs/research/docs/microsoft-apm/instructions-primitive-schema.md