Commit Graph
318 Commits
Author SHA1 Message Date
Defame1297andClaude Opus 5.5 3ef0a3c8a9 feat(delivery): add the implement stage agents and skills
Implement stage for the delivery team: delivery-implement-lead runs
test-author -> implementer -> qa in sequence on a draft WIP: PR and
removes WIP: when qa passes, starting review. delivery-test-first turns
acceptance criteria into acceptance checks committed under the
Delivery-Stage: test-author trailer; delivery-ci-checks reads a PR's or
commit's CI by the names in docs/agents/delivery.md.

Agents follow ADR-0016 (no tools: lists, disallowedTools fences on the
lead and qa) and pin Claude model aliases without model-policy; Copilot
limitations are documented in docs/runtimes.md. delivery 0.4.0.

Refs: #192
ADR: ADR-0016, ADR-0031, ADR-0032

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 19:35:12 +00:00
Defame1297andClaude Opus 5.5 5a4e4c0674 fix(delivery): stop unknown agents and wrong item kinds at the inbound check
An agent with no gate-table row had no defined stop; it now stops first
in the inbound check with a plain comment. The item kind is checked
before the Handoff lookup, 'latest' means newest by creation time, and an
allowlist of '- none' counts as empty.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 17:39:10 +00:00
Defame1297andClaude Opus 5.5 d4226e152b fix(delivery): keep inbound-rule stops out of the handoff trail
Why: every Stop posted a Handoff comment whose Next command relaunched the
stopping agent, including stops raised by the inbound rule itself. A second
launch then passed the inbound check, and a wrong-agent stop buried the
correct pointer.

Implementation Notes:
- Stops before the inbound check passed (Steps 1-2) post a plain comment;
  later stops keep the relaunching Handoff comment.
- gates.md defines a Handoff comment strictly and owns the inbound stop
  wordings; the planner stops at the inbound check in v1.
- Heading names and where-to-post live once, in handoff-comment.md.
- Gotcha and delivery-repo-doc checklist item: the two Status labels must
  not share an exclusive scope.
- GLOSSARY gains Step mode and Run mode; ADR-0032 scopes the gate-label
  check to stages that have one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 17:21:51 +00:00
Defame1297andClaude Opus 5.5 fc09f77fb3 fix(delivery): let a stopped stage be relaunched
A Stop wrote Next command `none`, and the inbound rule stopped on a
latest `none`, so a stage that stopped once stopped on every relaunch.
A Stop's Next command now relaunches the stage that stopped, `none`
means only the final stage, and the inbound rule stops only when the
latest Handoff comment does not launch this stage's agent. Gate checks
still run on a relaunch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 17:05:42 +00:00
Defame1297andClaude Opus 5.5 9774a217d4 fix(delivery): apply review findings to delivery-handoff
Define the inbound Handoff comment as the latest one whose Next command
launches this stage, and stop when the latest has Next command none.
Name the six headings in Step 2, keep the required/optional rule in the
gates table and the posting location in handoff-comment.md only, narrow
the description to one capability clause, and declare the Gitea MCP
tools the skill uses. Let delivery-repo-doc's format consumers restate
the minimum they parse, and add the next stage's command to the
glossary's Handoff comment entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 16:57:04 +00:00
Defame1297andClaude Opus 5.5 2c0120cda6 feat(delivery): add the delivery-handoff stage protocol skill
Every delivery Stage lead needs the same entry and exit discipline: read
the repo's delivery doc, read the inbound Handoff comment, check the
stage's gate, and end with one fixed-shape Handoff comment that tells the
human the exact launch line for the next stage.

- delivery-handoff: entry checks, per-stage gate table (implement label,
  review non-WIP PR, verify merged PR with a non-stale, non-dismissed
  allowlisted approval), the Status/Ready for Human stop path, and the
  Handoff template with Claude Code and Copilot CLI Next commands
- ADR-0032 amended: stage leads check gate state only in step mode; the
  who-set-the-label check moves to the run-mode launcher (gitea-mcp has
  no timeline method and the human already launches each stage)
- delivery-repo-doc format.md aligned with the amendment (0.1.2)
- delivery package 0.2.0 -> 0.3.0, with the executables.allow key and
  marketplace entry kept in step

Refs #191

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 16:49:36 +00:00
Defame1297andClaude Opus 5.5 a6c04532ac docs(kyberforge): correct hooks.md on allow keys and other runtimes
The allow-key paragraph said a version bump on one side stops the hook
deploying; apm 0.28.0 matches the grant version-blind (the 2026-09-19
correction in gates.md and ADR-0019). The sync gate now covers every
plugin shipping hooks or bin.

The Copilot section said apm packages deploy no hooks to Copilot. apm
0.28.0 shapes and deploys hooks per target: .github/hooks/ for copilot
(unverified on Copilot CLI) and .codex/hooks.json for codex. Replaced
it with an "Other runtimes" table, and noted the spurious "parked"
warning (#208).

Refs #190

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 16:06:53 +00:00
Defame1297andClaude Opus 5.5 d86ae521e7 fix(delivery): harden the guard hook after three review rounds
Two fresh-context adversarial reviews and a spec/standards review of the
guard found bypasses, false denies and fail-open paths. Fixes:

- Substitution bodies are parsed by the tokenizer itself, so an
  apostrophe in a here-doc commit/PR body no longer hides later commands.
- Redirect operands never become words; every redirect target is checked
  for secret paths and .git/hooks.
- Unquoted here-doc substitutions are analysed; stdin shells (bash -,
  ssh host, pwsh) analyse their here-doc as a script.
- Option clusters ending in a value letter (bash -euo pipefail -c,
  sudo -iu root) consume their value.
- PowerShell mode: backtick escapes, iex, cmd /c, -EncodedCommand denied.
- Malformed payloads and unknown runtimes fail closed; runtime comes from
  the deploy path only.
- Linear-time parsing with size, word, command, depth and unwrap caps, so
  Copilot cannot time out (and fail open) on long input.
- Wider secret coverage (.ssh/.kube globs and dirs, id_* suffixes, sops
  age key, k3s/admin kubeconfigs, git-credentials, deploy keys, REV:path)
  and hook-bypass routes (git config alias, .git/hooks writes, find
  -delete, HUSKY=0, LEFTHOOK=0).
- Fewer false denies: commit/PR message values, find -name, search globs,
  jq/yq filters, pytest -k, git -S/--grep, ssh -i naming, non-admin
  kubeconfigs, quoted braces, option names, doc and test files.
- New allowlists: helmfile, terragrunt hcl/render, helm diff.
- delivery 0.2.0: a new hook changes compiled output (configure.md).
- ADR-0032: allowlists described as "no cluster or state change and no
  secret printed"; Write added to the file tools.

Refs #190

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 11:51:26 +00:00
Defame1297andClaude Opus 5.5 a6ff1c14d4 feat(delivery): add the guard hook (ADR-0032 layer 2)
Ship one pre-tool-use hook in the delivery package. It denies the Never
tier on every runtime and asks before Odd jobs on Claude Code and Copilot
CLI (denying them on Codex and unknown runtimes):

- guard.py: stdlib-only Python; tokenises the shell line, unwraps
  bash -c / env / sudo / eval / xargs / find -exec / rtk / uv run and
  friends, checks file-tool paths for secret material, and uses read-verb
  allowlists for kubectl, helm, flux and tofu
- hooks.json: no matcher, onFailure: block, 10s timeout
- tests/test-delivery-guard-hook.sh: 281 cases incl. bypass attempts and
  per-runtime output shape
- root apm.yml: executables.allow delivery#0.1.0
- check-executables-allow-sync now covers every plugin shipping hooks/bin
- ADR-0032 amended: Copilot ask kept as an accepted risk, file tools and
  allowlists recorded

Refs #190

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 08:15:14 +00:00
Defame1297andClaude Opus 5.5 3f24daa58a fix(delivery): tighten delivery-repo-doc from first dogfood run
Why: the first drafting run against a real Ansible repo surfaced gaps the
skill left to guesswork: pointer placement in a sectioned AGENTS.md,
path-filtered and push-only workflows, link syntax, and caller-supplied
facts.

Implementation Notes: format.md pins the AGENTS.md placement rules
without changing the exact line, notes that "skipped" checks pass, uses
markdown links throughout section 5, and states the hard-stop consequence
of an uninstalled skill. gathering.md covers mixed repos, which workflows
count, the exact status-read tool calls and caller-supplied convention
pointers. SKILL.md adds the fast-forward and dirty-tree rule, caller
overrides, hook-failure handling and the remote-casing gotcha.

Impact: delivery-repo-doc 0.1.0 -> 0.1.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 22:07:31 +00:00
Defame1297andClaude Opus 5.5 873b28ca96 feat(delivery): add delivery-repo-doc skill
Why: the delivery team needs each consuming repo's specific facts (tool
skills per path, CI check names, test paths, human allowlist, credential
boundary) in one place it can read mechanically (ADR-0031, ADR-0032).

Implementation Notes: the skill owns the docs/agents/delivery.md format in
references/format.md, the single source the other delivery skills cite. It
drafts or updates that file plus a one-line AGENTS.md pointer as one PR,
taking repo facts from the repo and human facts only from the human.

Impact: first .apm/ content in the delivery package; Read and Propose
tiers only, never merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 21:51:43 +00:00
Defame1297andClaude Opus 5.5 aa30861cc9 fix(marketplace): make the empty ansible and k8s packages installable
A package fetched from a remote is valid only when it has a .apm/
directory, declares dependencies, or ships a skills/ bundle
(apm_cli/models/validation.py, detect_package_type). ansible and k8s were
published in #205 with none of these, so installing either fails with
"has apm.yml but is missing the required .apm/ directory". So does
gitops, which depends on k8s. The scratch check in #205 missed this
because a local-path install skips that validation.

Each package gets an empty .apm/ that git can track through a .gitkeep.
The placeholder becomes redundant once the package's first skill lands.
apm's validator now reports all four packages as valid. On main it
reports ansible and k8s as invalid.

Refs: #188

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 20:24:01 +00:00
Defame1297andClaude Opus 5.5 cabdc6e500 feat(marketplace): add delivery, ansible, gitops and k8s skeleton packages
Map #166 (Infra and agent-team packages) decided four new packages in
#171 (Package boundaries and names). Later build tickets only add
primitives, so each package must exist and install before they start.

Each package is at 0.1.0, targets claude, copilot and codex, and uses its
decided boundary as its description. delivery depends on git, gitea and
mattpocock. gitops depends on k8s and pins fluxcd/agent-skills
gitops-knowledge and gitops-repo-audit at v0.4.0. Sibling packages are
referenced in the remote git+path form the root apm.yml uses, unpinned
like every first-party dependency (ADR-0018), so a consumer outside this
repo can resolve them.

Root apm.yml does not consume them yet. Its dependencies resolve from the
remote main (ADR-0019), so wiring them in has to wait for this merge. It
is the same two-step plugins/mattpocock took.

The docs drop hard-coded package counts (README, AGENTS.md, GLOSSARY.md,
docs/spec/gates.md), which had gone stale. They also add mattpocock to the
architecture boundary table and give it a README bullet.

Impact: the catalog gains four packages, so the marketplace version goes
from 0.7.0 to 0.8.0 (minor).

Refs: #188

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 20:05:17 +00:00
Defame1297andClaude Opus 5.5 d792c9020f chore(kyberforge): add third-party licence notices to vendored skill examples
Why: the repo is public and the skill-write examples carry upstream copies.
obra/superpowers writing-skills is MIT and its copy had no notice. The
anthropics skill-creator copy (Apache-2.0) is whitespace-normalised by the
pre-commit hooks, and Apache 2.0 section 4(b) asks for modified files to be
marked. anthropic-best-practices.md reproduced Anthropic's documentation
page in full; superpowers' MIT licence does not extend to Anthropic's docs
and no open licence for that page was found.

Implementation Notes:
- add obra/superpowers MIT LICENSE beside the writing-skills copy
- record licence and whitespace-only modification in skill-creator sources.md
- replace anthropic-best-practices.md with a link to the canonical page
- ADR-0020 still cites anthropic-best-practices.md:187 as a historical
  reference; the original remains in git history

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 08:36:36 +00:00
Defame1297andClaude Opus 5.5 422385489d chore(kyberforge): include upstream MIT notice for vendored writing-great-skills
Why: the example folder carries a copy of Matt Pocock's writing-great-skills
(SKILL.md, GLOSSARY.md). Upstream mattpocock/skills is MIT, which requires the
copyright and permission notice to accompany copies; the folder had none.
The LICENSE is taken verbatim from upstream at v1.3.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 08:19:35 +00:00
Defame1297andClaude Opus 5.5 77f356949a chore(gitea): bump gitea-labels-milestones to 0.1.7
Why: its labels reference now names Mortis/Holocron, and ADR-0022 requires a
changed skill to raise metadata.version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 08:07:17 +00:00
Defame1297andClaude Opus 5.5 864b43d364 chore: regenerate apm output for Mortis/Holocron
Why: the repo now lives at Mortis/Holocron. apm records the exact owner/repo
string in the lock and in hook ownership, so the lowercase mortis/holocron
from the previous commit would drift from what the replay resolves.

Implementation Notes:
- match the exact Mortis/Holocron case in manifests, READMEs, submodule
  and tracker references
- regenerate apm.lock.yaml against the new source
- prune the orphaned Defame1297/holocron packages and drop the stale
  kyberforge SessionStart entry apm left behind, which would otherwise have
  run the hook twice; `apm audit --ci` passes all 10 checks afterwards

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 07:56:18 +00:00
Defame1297andClaude Opus 5.5 5181fea473 chore: prepare repo for public release under mortis org
Why: the repo is moving from Defame1297 to the mortis org and becoming
public. Its own apm dependencies and the wiki submodule were addressed by
the old owner over SSH, which anonymous public users cannot clone, and the
manifests declared MIT without shipping the licence text.

Implementation Notes:
- add MIT LICENSE
- repoint apm dependency, homepage/repository and marketplace owner URLs
  from Defame1297 to mortis over HTTPS
- drop the personal email from author/owner blocks
- move the docs/wiki submodule to HTTPS
- point tracker references at mortis/holocron

Impact: apm.lock.yaml and .claude/apm-hooks.json are apm output and are
intentionally not regenerated here; mortis/holocron does not exist until
the transfer, so `apm install` is re-run after it and committed separately.
ADRs and dated notes keep their original links as historical record.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 07:45:38 +00:00
Defame1297andClaude Opus 5.5 0223b6e1bf feat(bin)!: rename research to research-docs and pin upstream research
Upstream wayfinder resolves research tickets by calling the Skill tool with
`research`, expecting one cited findings note per question. That name landed
on bin's reference-tree skill, which researches a tool's docs into topic files
plus sources.md and stops to ask for an output path, stalling an AFK subagent.

Implementation Notes:
- bin's skill becomes `research-docs` (skill 2.0.0, bin 3.0.0) with a boundary
  clause routing single-question research to `research`.
- mattpocock pins upstream research#v1.3.2 (0.4.0).
- write-docs, GLOSSARY's Provenance chain and skill-author's template now
  name `research-docs`.

BREAKING CHANGE: `research` now resolves to upstream's single-note skill;
invoke `research-docs` for a per-topic reference tree.

Fixes: #161
ADR: 0030
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-12 11:53:01 +00:00
Defame1297andClaude Opus 5.5 0db6ab7c28 feat(mattpocock): pin implement, implement-spec, retro and writing-for-agents
Why: implement and implement-spec carry the to-spec and to-tickets output
through to code, and retro feeds environment improvements back from a
session. retro calls writing-for-agents, so it is pinned with it. All
outward skill calls (tdd, code-review, setup-matt-pocock-skills) are already
pinned, so the set stays closed.

Impact: writing-for-agents is model-invoked and triggers on skill and
AGENTS.md edits, overlapping skill-author and agentsmd-author. Deploys on the
next apm update after this lands on main (ADR-0019).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 22:15:44 +00:00
Defame1297andClaude Opus 5.5 aa95fa8472 feat(mattpocock): pin codebase-design, code-review, to-tickets and to-spec
Why: a full read of the pinned skills found references to upstream skills
that were never pinned. improve-codebase-architecture and tdd call
codebase-design through the Skill tool, tdd sends refactoring to code-review,
and setup-matt-pocock-skills names to-tickets and to-spec as consumers of the
tracker doc. All four are leaves at v1.3.2: their only outward pointer is
setup-matt-pocock-skills, which is already pinned.

Impact: deploys on the next apm update after this lands on main (ADR-0019).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 21:57:48 +00:00
Defame1297andClaude Sonnet 5.5 ebaf43af96 chore(forge): bump skill version for GLOSSARY.md reference rename
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 18:00:16 +00:00
Defame1297andClaude Sonnet 5.5 b63928cbc9 chore(agents): set up Matt Pocock skills and rename CONTEXT.md to GLOSSARY.md
Add docs/agents/ (Gitea issue tracker, triage label mapping, domain docs)
and an Agent skills block in AGENTS.md. Rename CONTEXT.md to GLOSSARY.md
and update live references; ADRs and research notes keep the old name as
historical record.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 17:54:34 +00:00
Defame1297andClaude Sonnet 5.5 49c425f046 chore(onedev): remove the onedev wrapper and enable mattpocock for this repo
plugins/onedev only redistributed OneDev's TOD skills and is no longer wanted. It is removed from
the catalog and from the root dependencies, together with TOD's pinned dependency and the eight
deployed skills.

plugins/mattpocock replaces it as a root dependency, so this repo runs wayfinder and the other
pinned upstream skills the same way every consumer gets them. The lock is re-resolved with
`apm update` rather than `apm install`: it still pinned the first-party plugins at a commit from
before #157, whose bin still carried the six copied skills, which the new wrapper then replaced.

The apm-audit-ci waiver (ADR-0026) stays: plugins/mattpocock is a package that declares
dependencies and no primitives, which is exactly the case it covers. Comments and gates.md that named
onedev as the live example now say it was removed; ADR-0026 gets a dated note, and its decision
is unchanged.

Impact: catalog 0.6.1 -> 0.7.0 (a package removed). Anyone consuming `onedev` from the marketplace
loses it. No first-party plugin version changes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 17:05:17 +00:00
Defame1297andClaude Sonnet 5.5 3407f787a3 feat(mattpocock): replace bin's copies of Matt Pocock's skills with pinned upstream dependencies
Six skills in plugins/bin were hand-maintained copies of mattpocock/skills from the 1.0.x era
(grill-me, grill-with-docs, tdd, prototype, improve-codebase-architecture, triage), most of them
verbatim apart from link rewrites. They now come from upstream at v1.3.2 through the
plugins/mattpocock wrapper, together with diagnosing-bugs. bin keeps its own diagnose, research,
write-docs, caveman and zoom-out; diagnose stays alongside diagnosing-bugs until the two are
compared and migrated.

Moving them left four routing targets (tdd, triage, grill-with-docs, improve-codebase-architecture)
resolving nowhere, which fails the corpus-wide backstop. The resolver now also learns the skills a
plugin pulls from a third-party repo subpath (owner/repo/<path>/<skill>#ref), without a network or an
apm_modules/ tree. A whole-repo dependency such as TOD names no skill and mints none. ADR-0029
records the decision and the rejected alternative of rewording the clauses.

Impact: bin 1.1.9 -> 2.0.0 (skills removed, so bin-only consumers lose them and must add mattpocock);
mattpocock 0.2.0; kyberforge 2.2.1 and factory-audit 1.0.6 for the resolver change; catalog 0.6.1.
Upstream marks grill-me, grill-with-docs, triage and improve-codebase-architecture hand-invoked, so
forge's Call of grill-with-docs is now blocked by the host and its inline fallback always runs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 12:49:15 +00:00
Defame1297andClaude Sonnet 5.5 ad0067e9ad feat(mattpocock): redistribute wayfinder and its called skills through a wrapper
Matt Pocock's wayfinder skill was previously carried as hand-copied files in a custom
plugin, which drift from upstream. apm installs a single skill straight from a git
subpath, so no copy is needed.

Wayfinder is hand-invoked and calls `grilling` and `domain-modeling`, and reads the
tracker doc that `setup-matt-pocock-skills` writes. All four are pinned to
mattpocock/skills v1.3.2 so the calls resolve. `research` and `prototype` are omitted
because the bin plugin already ships skills of those names.

A marketplace.packages entry takes only a local source path, so plugins/mattpocock is a
primitive-less wrapper carrying the pinned dependencies, the same mechanism as
plugins/onedev (ADR-0026). The pin is deliberate: tracking a third-party main would
import its drift.

Impact: catalog gains a package, so marketplace version goes 0.5.3 -> 0.6.0 (minor).
The root apm.yml does not consume the wrapper, so `apm install` here is unaffected.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 08:11:55 +00:00
Defame1297andClaude Sonnet 5.5 8381c9f395 fix(kyberforge): correct prompt-author claims found in clean-context review
Three clean-context reviewers checked the skill against apm 0.28.0. Fix what
they showed to be wrong: a failed hidden-character install still writes the
Copilot and Gemini outputs and withholds only the Claude command; a multi-key
input item turns each key into an argument. Add the symptom row, use "prompt
file" for the source concept, name the Claude slash-commands source for the
forge discriminator, drop an ambiguous Step 3 pointer and a "trim" heading
with no trim guidance, and tighten two bats assertions. CONTEXT.md now says
"a single-file command that is not a SKILL.md".

Refs #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-10-15 16:16:27 +00:00
Defame1297andClaude Sonnet 5.5 e9df1ca0da fix(kyberforge): keep literal $ARGUMENTS out of the prompt template body
A scaffolded body that mentions $ARGUMENTS ships that text in the deployed
command, where Claude Code substitutes it and Gemini rewrites it to {{args}}.
Move the warning into the template comments, which are deleted on fill-in.

Refs #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-10-15 16:04:49 +00:00
Defame1297andClaude Sonnet 5.5 6a3fd48fbd feat(kyberforge): add prompt-author skill for .apm/prompts files
Add prompt-author, shaped like instructions-author: dispatch to create or
improve, a scaffold script that also creates .apm/prompts/, a minimal
template, and references on schema, per-target field survival, content and
verification. Verification is a throwaway apm install because apm compile
never reads prompts.

Forge gains a Prompt file row and a prompt-file-or-hand-invoked-skill
discriminator, and apm-workflow points at prompt-author from compile.md.
Bump kyberforge to 2.2.0 and the root pin, version and marketplace.

Refs #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-10-15 16:04:33 +00:00
Defame1297andClaude Sonnet 5.5 3b3b3028f8 docs(kyberforge): verify apm prompts primitive against apm 0.28.0
Fold throwaway-install experiments into prompt-gotchas and
prompt-target-mapping. Resolves root-level discovery, manifest type
advisory behaviour, compile ignoring prompts, per-target key survival
and collision/cleanup behaviour, and records where the published docs
disagree with the observed behaviour (Gemini silent drops, same-name
collisions, --force on critical hidden characters).

Refs: #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-10-15 07:36:44 +00:00
Defame1297andClaude Sonnet 5.5 f5a260e85c docs(kyberforge): research apm prompts primitive and prompt-file standards
Add prompt-target-mapping and prompt-gotchas for the apm .prompt.md
primitive from the published apm docs, correct the preserved-key set in
prompt-primitive-schema, and add prompt-standards research covering
Copilot/VS Code prompt files, Claude Code commands, Prompty, Dotprompt
and MCP prompts. No vendor-neutral prompt-file standard was found.

Refs: #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-10-15 07:29:52 +00:00
Defame1297andClaude Code b4499fd024 fix(kyberforge): correct instructions-author claims found in PR #154 review
Four clean-context reviewers checked the skill against apm 0.28.0 by
experiment. Fix the target-mapping, schema, verify and SKILL.md claims
they showed to be wrong, add the missing README row and forge Gotcha
entry, note the AGENTS.md import caveat in forge, and close three test
gaps (mismatched quotes, prefix type, tilde root) found by mutation.

Refs #148

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
2026-10-14 07:30:28 +00:00
Defame1297andClaude Code a92320a189 refactor(kyberforge): move artifact-type choice from instructions-author to forge
Deciding whether guidance is a rule, a procedure or something to enforce is
forge's classification job. instructions-author keeps only a stop condition.

Refs #148

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
2026-10-14 06:59:49 +00:00
Defame1297andClaude Code 68fa2abb62 fix(kyberforge): address independent review of #154
Quote the template description so the raw scaffold is valid YAML, reject
newline-containing names in new-instructions.sh, correct the empty-compile
facts (exit 1, --clean exits 0), and finish removing commit steps from the
skill-author, agent-author and forge references. Adds regression tests.

Refs #148

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
2026-10-01 16:28:15 +00:00
Defame1297andClaude Code d576695bb9 refactor(kyberforge): address #154 review and drop commit steps from author skills
- instructions-author: keep two Gotchas, move the rest to the Step 2 contract
  and verify.md; add references/content.md on what belongs in an instructions
  file and tighten the template bullets to match
- instructions-author, skill-author, agent-author: remove the commit
  verification step; committing is out of scope for author skills
- skill-author 1.0.6, agent-author 1.0.4 (ADR-0022 patch bumps)

Refs #148

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
2026-10-01 16:19:14 +00:00
Defame1297andClaude Code 6328816584 fix(kyberforge): bump forge and apm-workflow skill versions for #148
ADR-0022 requires a metadata.version raise on every changed skill; the
routing row and compile pointer added for instructions-author touched both.

Refs #148

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
2026-10-01 07:01:57 +00:00
Defame1297andClaude Code c52e351954 feat(kyberforge): add instructions-author skill for .apm/instructions files
Scaffolds and revises apm instructions files, with a throwaway-package
verification recipe because `apm compile --validate` always exits 0 and
Claude Code drops `description`. Routed from forge and linked from
apm-workflow's compile reference. Bumps kyberforge to 2.1.0 and the catalog
to 0.5.2.

Fixes #148

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
2026-10-01 06:46:39 +00:00
Defame1297andClaude Code 529ed31cef docs(kyberforge): refresh apm instructions primitive research for #148
The existing schema doc covered only Claude and Copilot and called missing
description and empty content errors when apm 0.28.0 only warns. Rewrite it
with the applyTo grammar and add per-target compile/install mapping and a
gotchas doc (unquoted globs, install-vs-compile discovery, dedup and
overwrite behaviour), all verified against the apm 0.28.0 binary.

Refs: #148

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
2026-10-01 06:37:20 +00:00
Defame1297andClaude Code cacfa1b374 fix(kyberforge): trim forge description and body to ADR-0020 budgets
factory-audit flagged forge's description and body as over the ADR-0020
targets (250 chars / 600 words). The description now uses three boundary
clauses and the body is 595 words. The context: fork vs /fork gotcha moved
to references/author-routes.md, the only place the fork-or-inline choice
is made. No routing row or behaviour changed.

Fixes: #143

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
2026-09-30 06:58:40 +00:00
Defame1297 025ad4a5af chore: migrate git host from git.dev.rkdr.net to git.rkdr.net
Why
The repo's git host moved from git.dev.rkdr.net to git.rkdr.net. The
`origin` remote was already repointed; this commit brings every
in-repo reference in line so cloning, submodule init, and apm install
all resolve against the new host.

Implementation Notes
- .gitmodules: docs/wiki submodule URL repointed (tests/* submodules
  stay on github.com, untouched).
- Root apm.yml: 7 dependency entries and marketplace.owner.url
  repointed; executables.allow key updated to kyberforge#2.0.1 to
  match kyberforge's bump below (scripts/check-executables-allow-sync.sh
  enforces this pairing).
- Each plugin's apm.yml (bin, core, git, gitea, kyberforge, lint,
  onedev): author.url/homepage/repository repointed. Per this repo's
  apm versioning policy, these fields compile verbatim into
  plugin.json, so each package took a patch version bump alongside
  the URL change.
- Root apm.yml version and marketplace.version bumped 0.5.0 -> 0.5.1
  to match (a marketplace-block field and every listed package's
  version moved).
- apm.lock.yaml regenerated via `apm install`; .claude-plugin/marketplace.json
  regenerated via `apm pack --marketplace=claude` so compiled output
  stays in sync with the manifests.

Impact
docs/adr/0015, 0017, and 0018 intentionally keep the old host in their
issue links and examples — they are historical decision records, not
live config. Verified clean: apm pack --check-clean, apm audit --ci,
check-executables-allow-sync.sh, and pre-commit --all-files all pass.
2026-09-25 13:15:25 +00:00
Defame1297andClaude Sonnet 5 c5f754d3ad fix(gates): check body-level routing targets, not just descriptions
The ADR-0020 boundary resolver (boundary_targets()/unresolved_targets())
only ever read a SKILL.md's description. A target named in the BODY -- a
dispatch table row, a "run X" step, both routine in a 900-word procedure
-- was checked by nothing. Two real instances shipped before either was
caught by reading rather than by a gate: bin/write-docs routed twice to a
deleted `to-prd` skill, and bin/triage told an agent to run a nonexistent
`/setup-matt-pocock-skills` (both fixed in 03abcff; that fix was the
symptom, this gate is the actual ask per #124).

Added a separate, narrower extractor -- body_targets() /
unresolved_body_targets() in the shared lib-boundary-resolver.sh -- rather
than reusing the description resolver at wider scope. The description
gate's sentence-level heuristics (BOUNDARY_MARKER, the follower test,
in-sentence corroboration) are tuned for a one-to-three-sentence routing
clause and misfire on dispatch-table/procedure prose in both directions,
so the body gate reads only explicit route notation (`/name`,
backticked-or-slash-prefixed `-> name` / `-> name`), already the
description gate's own unconditionally-blocking tier.

Three guards were added after running the extractor over the real
39-skill corpus and reading every hit rather than assuming the design was
correct:

- a target must be hyphenated, even in notation -- single-word citations
  like `/fork` (forge, citing Claude Code's own /fork command) and
  `/name` (skill-author, a placeholder) are not routes.
- a bare hyphenated word after any arrow is not notation -- only
  ARROW_MARKED (backticked/slash-prefixed) is used, not NOTATION_ARROW's
  bare form, so ordinary process-chain prose ("prop -> new ref ->
  re-render", caveman) is not read as a route.
- a name immediately preceded by `<` is a closing tag
  (`</what-to-do>`, grill-with-docs), not /name notation.

Wired into both consumers that must agree by contract: scripts/
skill-size-check.sh (the pre-commit hook) and factory-audit's
lib-checks-skill.sh (the audit). Verified identical findings across both
over the whole corpus.

tests/test-adr0020-targets.sh gains a dedicated section pinning the two
live true positives and all three guards. docs/spec/gates.md and
ADR-0020 get a matching amendment.

Fixes: #124
ADR: 0020

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-22 15:17:09 +00:00
Defame1297 97cd22edda Merge branch 'main' into feat/121-research-doc-grammar 2026-09-21 19:52:01 +00:00
Defame1297andClaude Sonnet 5 45d8f19e56 test(lint): back the Vale 3.15.2 behaviour claims with a committed test
The `house-vale-3-15-2-repro` provenance entry claimed behaviours were
reproduced against purpose-built fixtures, but no fixtures existed, so
the earlier commit in this PR removed it. Commit the fixtures.

tests/test-vale-3-15-2-behaviours.sh builds its fixtures in a temp dir
and runs the real Vale. It exits 77 (skipped) when vale is missing or is
not 3.15.2. It asserts the six vale-config behaviours and the vale-run
ones (unmapped .mdx, `vale off` variants, the spelling ignore file, and
the ls-* commands never naming a rule).

Restore the entry in both sources.md files as `Research doc: none` with
`Basis:` naming the test, and re-add its source_keys. Two behaviours are
not asserted: the native-MDX suppression column (needs mdx2vast) and the
`vale sync` row that adds to Packages (needs the network). The wording in
configuration-reference.md and troubleshooting.md now says so.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-21 19:40:50 +00:00
Defame1297andClaude Sonnet 5 58a3f402a6 docs(adr): record the review outcomes for the Research registry grammar
- ADR-0004: add the "Amended by ADR-0028" note, following the ADR-0025
  convention.
- ADR-0028: correct Q5 (parse_status is gone), the skill count (38, not
  39), and the question order. Q7 records the anchored, format-only sha
  check. Q8 records the decision to commit real Vale fixtures. A new
  consequence covers path confinement and list rejection.
- CONTEXT.md: the `_Avoid_` entry means the bare noun, not the field.
- gates.md: correct the authored-hook counts after the corpus gate.
- create.md: a `none` entry backed by a reproduction must name committed
  fixtures in `Basis:`; use the `(digest: <full path>)` form.
- gitea-releases: use the `(digest: <full path>)` form.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-21 19:40:43 +00:00
Defame1297andClaude Sonnet 5 2c4b6d2615 fix(kyberforge): harden Research doc and Basis parsing in the validator
Review of PR 139 found list-rejection and confinement holes that let the
exact malformed entries the grammar forbids pass check 7.

- Reject comma, space-separated and backticked path lists, so
  `a/sources.md (x), b/topic.md` no longer exits 0 unchecked.
- FAIL absolute paths and any path whose realpath leaves the repo, for
  both `Research doc:` and `Basis:`.
- Anchor `(removed in <sha>)` to the end of the value with a 7-40 hex
  sha. The sha is format-checked only, not resolved with git cat-file.
- Read `* ` bullets and `- **X**` bullets correctly under a `**Basis:**`
  header, and strip backticks from Basis paths.
- Stop the semicolon rule firing on annotation prose, and stop `none`
  matching `none/foo.md`.
- Update the stale field messages to the new grammar and report an empty
  field as empty, not missing.
- Skip a removed Basis silently when there is no repo root.

Adds 40 tests. Each guarded line was mutated in place and every mutant
is caught.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-21 19:40:28 +00:00
Defame1297andClaude Sonnet 5 2bde9a6a82 chore(skills): bump metadata.version for the Research doc migration
Raise the PATCH version of each skill whose references/sources.md,
references, or validator changed in the Research registry migration, as
ADR-0022 requires. factory-audit and skill-author changed behaviour and
docs; the rest changed provenance metadata only.

Refs: #121
ADR: 0022
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-21 17:33:54 +00:00
Defame1297andClaude Sonnet 5 740f631d1d docs(provenance): migrate the corpus to the Research registry grammar
Repoint every `Research doc:` at the plugin's Research registry
(git/sources.md, pre-commit/sources.md, gitea/sources.md,
agentsmd/sources.md), keeping the old topic-doc link as a parenthetical
`(digest: ...)` annotation. Brace expansions and the gitea-releases
semicolon pair collapse to one path.

Entries with no registry (org-commit-conventions, org-git-conventions,
governance-secrets-hard-prohibition, adr-0002-0003-two-tier-claude-md)
now declare `none` plus `Basis:` bullets. The two git entries cite
core/instructions/git.md and commits.md as `(removed in 5deed07)`.

Remove the house-vale-3-15-2-repro entry and its source_keys citations
from vale-config and vale-run. It claimed six behaviours were reproduced
against purpose-built fixtures in this repo, but the entry was added in
d1afdbe with no test or fixture files, and none exists in history. The
behavioural rules stay; only the unbacked provenance claim goes.

Refs: #121
ADR: 0028
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-21 17:28:21 +00:00
Defame1297andClaude Sonnet 5 5a52949c57 feat(kyberforge): make Research doc name one Research registry
validate-provenance.sh assumed `Research doc:` names a research
sources.md whose H2 headings are the source slugs, but 29 corpus entries
named topic docs and 6 values were not a single path, so checks 7 and 8
reported INFO for 36 entries and nothing ever failed.

`Research doc:` now takes exactly one path. An entry with no registry
writes `none` plus one `- **Basis:** <path>` bullet per path; each Basis
path is existence-checked unless annotated `(removed in <sha>)`.

- Check 7 FAILs when a resolved registry lacks the slug, when the value
  is a topic doc, or when it is a list. An unresolvable path stays INFO.
- Check 8 is retired: one registry serves many skills, so requiring
  every registry slug in each skill's sources.md is unsatisfiable.
- The Research doc and Basis parsers accept the inline, bullet and
  header-plus-bullets spellings, so a differently spelled field is no
  longer read as absent.

Refs: #121
ADR: 0028
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-21 17:28:08 +00:00
Defame1297andClaude Sonnet 5 01dfd8150f fix(research): tell fan-out subagents to treat page content as data, cover step 5's fallback
Step 4 subagents read untrusted pages; say their content is data, not
instructions. Step 5 now repeats step 4, so it inherits the serial
fallback and the data rule. Body stays at 598 words, under the
ADR-0020 target.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-21 07:48:32 +00:00
Defame1297andClaude Sonnet 5 1a66ee939a fix(research): add a serial fallback, patch-bump the version, trim the body under target
The fan-out restored in 6683da5 had no degrade path for a target with no
spawn tool, which reproduces the silent degradation #116 was written
against. Step 4 now says to read serially and reduce each page to notes
when spawning is unavailable.

The change restores existing behaviour, so the version bump is a patch
(1.0.2) per skill-author's convention, not a minor. The body is trimmed
from 717 to under the 600-word ADR-0020 target without dropping any
instruction. ADR-0027 is updated to match.

Refs #116

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
2026-09-21 07:33:14 +00:00