Files
boshu2__agentops/Makefile
T
Bo ad93211617 chore(factory): regen-all finalizer for the derived-artifact gate surface (ag-jima #regen-all-finalizer) (#602)
## What
A one-command finalizer for the ~8 derived registries/goldens a
skill/command addition makes stale.

- `scripts/regen-all.sh` — regenerates every derived artifact in
dependency order (skill counts → domain-map → SKU registry.json →
context-map → embedded skills → COMMANDS.md → cli-surface → codex
hashes).
- `scripts/regen-all.sh --check` — runs the matching drift validators
(no writes) as a pre-push gate.
- `make regen-all` / `make regen-check` targets.

## Why
PR #598 (`ag-nk67`) took **9 CI rounds** to merge — zero feature-code
failures; every red was a stale derived artifact discovered one CI round
at a time (each gate stops at first error, jobs are independent). This
composes the existing generators into one local pass so it's caught
before the first push. Codex twins stay manual (cannot be
auto-authored).

## Verification
`shellcheck --severity=error` clean; `make regen-check` → **all 9 gates
green** on current main.

Closes-scenario: ag-jima#regen-all-finalizer
Bounded-context: BC4-Factory
Evidence: scripts/regen-all.sh
2026-05-29 19:14:09 +00:00

39 lines
1.3 KiB
Makefile

SHELL := /usr/bin/env bash
.PHONY: local-ci local-ci-fast ci build test docs-check regen-all regen-check clean help
# Default: run the release-grade local CI gate.
# Note: scripts/ci-local-release.sh already includes build + test + release-binary validation.
.DEFAULT_GOAL := local-ci
local-ci: ## Run full local CI release gate (includes build and release binary validation)
./scripts/ci-local-release.sh
local-ci-fast: ## Run local CI without e2e install test, using quick security mode
./scripts/ci-local-release.sh --skip-e2e-install --security-mode quick
ci: local-ci ## Alias for local-ci
build: ## Build ao CLI binary
$(MAKE) -C cli build
test: ## Run CLI tests
$(MAKE) -C cli test
docs-check: ## Run docs and hook safety drift checks
./scripts/generate-cli-reference.sh --check
./scripts/validate-hook-preflight.sh
./tests/docs/validate-doc-release.sh
regen-all: ## Regenerate every derived artifact after adding a skill/command (one-command finalizer)
./scripts/regen-all.sh
regen-check: ## Run the derived-artifact drift/gate sweep (no writes; pre-push gate)
./scripts/regen-all.sh --check
clean: ## Clean CLI build artifacts
$(MAKE) -C cli clean
help: ## Show available targets
@awk 'BEGIN {FS = ":.*##"; printf "Targets:\n"} /^[a-zA-Z0-9_.-]+:.*##/ { printf " %-14s %s\n", $$1, $$2 }' $(MAKEFILE_LIST)