Files
Holocron/apm.yml
T
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

149 lines
5.5 KiB
YAML

name: holocron
version: 0.8.0
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
license: MIT
# Consumer side: this repo installs its own published plugins from the holocron
# remote, so the working copy runs the same released content every other
# consumer gets. Addressed as git+path objects rather than <name>@holocron
# marketplace aliases — an alias needs a `apm marketplace add` registration in
# ~/.apm/marketplaces.json (user scope, outside this repo), the object form
# needs nothing beyond this manifest.
# Unpinned (default branch) on purpose: parity with the Claude Code plugin
# install this replaced, which ran autoUpdate against main. Add `ref: <tag>`
# per entry to pin.
targets:
- claude
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/bin
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/core
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/git
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/gitea
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/kyberforge
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/lint
# Third-party skills (Matt Pocock's) arrive transitively through this
# wrapper rather than as direct entries, so the marketplace and this repo
# consume them by the same path. The pins live in plugins/mattpocock/apm.yml:
# third-party content is pinned, unlike the first-party entries above,
# which stay unpinned for default-branch parity. The same rule holds for the
# fluxcd skills gitops pins in plugins/gitops/apm.yml.
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/mattpocock
# The delivery team and the infra tool packages (map #166). Their own
# sibling dependencies (git, gitea, mattpocock, k8s) resolve transitively
# and dedupe against the entries above.
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/delivery
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/ansible
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/gitops
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/k8s
mcp: []
# Turns apm's executable-trust gate ON. Without this block the gate is disabled
# and every hook, bin and MCP primitive a dependency ships deploys silently —
# verified: `apm approve --list` reports "Executable-trust gate disabled -- all
# executables deploy" until an `executables:` block exists.
#
# kyberforge ships the SessionStart hook that keeps this install level with the
# remote (ADR-0019). The `#2.0.0` suffix below is cosmetic as far as apm is
# concerned: grants are version-BLIND in apm 0.28.0. `_map_grants`
# (apm_cli/security/executables.py) matches the exact key, the version-blind
# name, or any stored key sharing that name, and `materialize_exec_map` also
# stores the version-blind name — so approving `kyberforge` covers
# `kyberforge#2.0.0` and vice-versa, and a kyberforge version bump does NOT
# make this entry stop matching or stop the hook deploying. Do not delete the
# suffix anyway: `scripts/check-executables-allow-sync.sh` is a repo-authored
# pre-push hook that asserts this key carries the version in
# plugins/kyberforge/apm.yml, so a bump here is a repo convention to keep, not
# an apm mechanic.
executables:
allow:
kyberforge#2.2.1:
hooks: true
bin: true
# delivery ships the guard hook (ADR-0032 enforcement layer 2). Same
# version-in-key convention as above, kept by the same sync check.
delivery#0.2.0:
hooks: true
marketplace:
# apm's Claude marketplace mapper only emits description:/version: into the
# compiled marketplace.json when set explicitly here (an override) — the
# top-level apm.yml description:/version: above are NOT inherited into the
# compiled output despite being used elsewhere (e.g. by `apm audit`).
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
version: 0.8.0
owner:
name: Mortis
url: https://git.rkdr.net/Mortis/
# Default tag pattern used to resolve version ranges for each package.
build:
tagPattern: "v{version}"
# Output targets (map form). Each output writes to its profile default
# path; add 'path:' under a key to override.
outputs:
claude: {}
# CI tip: build a machine-readable manifest:
# apm pack --marketplace=claude --json | jq -r '.marketplace.outputs[].path'
versioning:
strategy: per_package
packages:
- name: kyberforge
source: ./plugins/kyberforge
category: Developer Tools
- name: bin
source: ./plugins/bin
category: Utilities
- name: git
source: ./plugins/git
category: Version Control
- name: gitea
source: ./plugins/gitea
category: Version Control
- name: core
source: ./plugins/core
category: Productivity
- name: mattpocock
source: ./plugins/mattpocock
category: Productivity
- name: lint
source: ./plugins/lint
category: Developer Tools
- name: delivery
source: ./plugins/delivery
category: Developer Tools
- name: ansible
source: ./plugins/ansible
category: Infrastructure
- name: gitops
source: ./plugins/gitops
category: Infrastructure
- name: k8s
source: ./plugins/k8s
category: Infrastructure