@ahmed-g-gad/apothem 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/LICENSE +21 -0
- package/LICENSES/MIT.txt +18 -0
- package/LICENSES/PSF-2.0.txt +47 -0
- package/README.md +549 -0
- package/bin/README.md +37 -0
- package/bin/apothem.mjs +78 -0
- package/package.json +75 -0
- package/pyproject.toml +347 -0
- package/src/apothem/README.md +52 -0
- package/src/apothem/__init__.py +66 -0
- package/src/apothem/__main__.py +28 -0
- package/src/apothem/_vendor/.keep +0 -0
- package/src/apothem/_vendor/__init__.py +25 -0
- package/src/apothem/_vendor/attr/__init__.py +104 -0
- package/src/apothem/_vendor/attr/__init__.pyi +389 -0
- package/src/apothem/_vendor/attr/_cmp.py +160 -0
- package/src/apothem/_vendor/attr/_cmp.pyi +13 -0
- package/src/apothem/_vendor/attr/_compat.py +99 -0
- package/src/apothem/_vendor/attr/_config.py +31 -0
- package/src/apothem/_vendor/attr/_funcs.py +497 -0
- package/src/apothem/_vendor/attr/_make.py +3406 -0
- package/src/apothem/_vendor/attr/_next_gen.py +674 -0
- package/src/apothem/_vendor/attr/_typing_compat.pyi +15 -0
- package/src/apothem/_vendor/attr/_version_info.py +89 -0
- package/src/apothem/_vendor/attr/_version_info.pyi +9 -0
- package/src/apothem/_vendor/attr/converters.py +162 -0
- package/src/apothem/_vendor/attr/converters.pyi +19 -0
- package/src/apothem/_vendor/attr/exceptions.py +95 -0
- package/src/apothem/_vendor/attr/exceptions.pyi +17 -0
- package/src/apothem/_vendor/attr/filters.py +72 -0
- package/src/apothem/_vendor/attr/filters.pyi +6 -0
- package/src/apothem/_vendor/attr/py.typed +0 -0
- package/src/apothem/_vendor/attr/setters.py +79 -0
- package/src/apothem/_vendor/attr/setters.pyi +20 -0
- package/src/apothem/_vendor/attr/validators.py +750 -0
- package/src/apothem/_vendor/attr/validators.pyi +140 -0
- package/src/apothem/_vendor/attr.LICENSE +21 -0
- package/src/apothem/_vendor/attrs/__init__.py +72 -0
- package/src/apothem/_vendor/attrs/__init__.pyi +314 -0
- package/src/apothem/_vendor/attrs/converters.py +3 -0
- package/src/apothem/_vendor/attrs/exceptions.py +3 -0
- package/src/apothem/_vendor/attrs/filters.py +3 -0
- package/src/apothem/_vendor/attrs/py.typed +0 -0
- package/src/apothem/_vendor/attrs/setters.py +3 -0
- package/src/apothem/_vendor/attrs/validators.py +3 -0
- package/src/apothem/_vendor/attrs.LICENSE +21 -0
- package/src/apothem/_vendor/jsonschema/__init__.py +120 -0
- package/src/apothem/_vendor/jsonschema/__main__.py +6 -0
- package/src/apothem/_vendor/jsonschema/_format.py +546 -0
- package/src/apothem/_vendor/jsonschema/_keywords.py +449 -0
- package/src/apothem/_vendor/jsonschema/_legacy_keywords.py +449 -0
- package/src/apothem/_vendor/jsonschema/_types.py +204 -0
- package/src/apothem/_vendor/jsonschema/_typing.py +29 -0
- package/src/apothem/_vendor/jsonschema/_utils.py +355 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/__init__.py +5 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/const_vs_enum.py +30 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/contains.py +28 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/import_benchmark.py +31 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/issue232/issue.json +2653 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/issue232.py +25 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/json_schema_test_suite.py +12 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/nested_schemas.py +56 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/subcomponents.py +42 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/unused_registry.py +35 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/useless_applicator_schemas.py +106 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/useless_keywords.py +32 -0
- package/src/apothem/_vendor/jsonschema/benchmarks/validator_creation.py +14 -0
- package/src/apothem/_vendor/jsonschema/cli.py +292 -0
- package/src/apothem/_vendor/jsonschema/exceptions.py +490 -0
- package/src/apothem/_vendor/jsonschema/protocols.py +230 -0
- package/src/apothem/_vendor/jsonschema/validators.py +1410 -0
- package/src/apothem/_vendor/jsonschema.LICENSE +19 -0
- package/src/apothem/_vendor/jsonschema_specifications/__init__.py +12 -0
- package/src/apothem/_vendor/jsonschema_specifications/_core.py +38 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft201909/metaschema.json +42 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +56 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft201909/vocabularies/content +17 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft201909/vocabularies/core +57 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft201909/vocabularies/format +14 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +37 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft201909/vocabularies/validation +98 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/metaschema.json +58 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +48 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/vocabularies/content +17 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/vocabularies/core +51 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +14 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +14 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +37 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +15 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft202012/vocabularies/validation +98 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft3/metaschema.json +172 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft4/metaschema.json +149 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft6/metaschema.json +153 -0
- package/src/apothem/_vendor/jsonschema_specifications/schemas/draft7/metaschema.json +166 -0
- package/src/apothem/_vendor/jsonschema_specifications.LICENSE +19 -0
- package/src/apothem/_vendor/referencing/__init__.py +7 -0
- package/src/apothem/_vendor/referencing/_attrs.py +31 -0
- package/src/apothem/_vendor/referencing/_attrs.pyi +21 -0
- package/src/apothem/_vendor/referencing/_core.py +739 -0
- package/src/apothem/_vendor/referencing/exceptions.py +165 -0
- package/src/apothem/_vendor/referencing/jsonschema.py +642 -0
- package/src/apothem/_vendor/referencing/py.typed +0 -0
- package/src/apothem/_vendor/referencing/retrieval.py +94 -0
- package/src/apothem/_vendor/referencing/typing.py +61 -0
- package/src/apothem/_vendor/referencing.LICENSE +19 -0
- package/src/apothem/_vendor/rpds/__init__.py +251 -0
- package/src/apothem/_vendor/typing_extensions.LICENSE +279 -0
- package/src/apothem/_vendor/typing_extensions.py +4317 -0
- package/src/apothem/_vendor/vendor.txt +22 -0
- package/src/apothem/_vendor/yaml/__init__.py +389 -0
- package/src/apothem/_vendor/yaml/composer.py +138 -0
- package/src/apothem/_vendor/yaml/constructor.py +748 -0
- package/src/apothem/_vendor/yaml/cyaml.py +100 -0
- package/src/apothem/_vendor/yaml/dumper.py +61 -0
- package/src/apothem/_vendor/yaml/emitter.py +1137 -0
- package/src/apothem/_vendor/yaml/error.py +74 -0
- package/src/apothem/_vendor/yaml/events.py +85 -0
- package/src/apothem/_vendor/yaml/loader.py +63 -0
- package/src/apothem/_vendor/yaml/nodes.py +48 -0
- package/src/apothem/_vendor/yaml/parser.py +588 -0
- package/src/apothem/_vendor/yaml/reader.py +185 -0
- package/src/apothem/_vendor/yaml/representer.py +388 -0
- package/src/apothem/_vendor/yaml/resolver.py +226 -0
- package/src/apothem/_vendor/yaml/scanner.py +1435 -0
- package/src/apothem/_vendor/yaml/serializer.py +110 -0
- package/src/apothem/_vendor/yaml/tokens.py +103 -0
- package/src/apothem/_vendor/yaml.LICENSE +20 -0
- package/src/apothem/agents/README.md +60 -0
- package/src/apothem/agents/codebase-explorer.md +91 -0
- package/src/apothem/agents/convention-auditor.md +93 -0
- package/src/apothem/agents/dependency-auditor.md +97 -0
- package/src/apothem/agents/fact-checker.md +84 -0
- package/src/apothem/agents/mcp-builder.md +86 -0
- package/src/apothem/agents/memory-auditor.md +93 -0
- package/src/apothem/agents/prompt-evaluator.md +87 -0
- package/src/apothem/agents/quality-gate.md +103 -0
- package/src/apothem/agents/refactor-surgeon.md +74 -0
- package/src/apothem/agents/research-scout.md +73 -0
- package/src/apothem/agents/security-scanner.md +83 -0
- package/src/apothem/agents/test-runner.md +84 -0
- package/src/apothem/audit/README.md +73 -0
- package/src/apothem/audit/_scan_lib.py +182 -0
- package/src/apothem/audit/analyze_graph.py +260 -0
- package/src/apothem/audit/build_capability_graph.py +607 -0
- package/src/apothem/audit/build_inventory.py +657 -0
- package/src/apothem/audit/build_plans_provenance.py +997 -0
- package/src/apothem/audit/check_links.py +389 -0
- package/src/apothem/audit/classify_artifacts.py +381 -0
- package/src/apothem/audit/deprecated-tokens.txt +10 -0
- package/src/apothem/audit/execute_plans_migration.py +491 -0
- package/src/apothem/audit/known-projects.txt +15 -0
- package/src/apothem/audit/render_capability_index.py +467 -0
- package/src/apothem/audit/render_inventory.py +405 -0
- package/src/apothem/audit/scan_ai_surfaces.py +1125 -0
- package/src/apothem/audit/scan_ai_surfaces_coarse.py +261 -0
- package/src/apothem/audit/scan_drift_features.py +143 -0
- package/src/apothem/audit/scan_frontmatter.py +293 -0
- package/src/apothem/audit/scan_header_coverage.py +1134 -0
- package/src/apothem/audit/scan_plan_leakage.py +540 -0
- package/src/apothem/audit/scan_plans_discipline.py +188 -0
- package/src/apothem/audit/scan_secrets_pii.py +245 -0
- package/src/apothem/audit/scan_stale_tokens.py +296 -0
- package/src/apothem/audit/synthesize_drift.py +205 -0
- package/src/apothem/benchmarks/README.md +33 -0
- package/src/apothem/benchmarks/__init__.py +3 -0
- package/src/apothem/benchmarks/bench_agents.py +63 -0
- package/src/apothem/benchmarks/bench_hooks.py +93 -0
- package/src/apothem/benchmarks/bench_install.py +58 -0
- package/src/apothem/benchmarks/bench_tests.py +93 -0
- package/src/apothem/benchmarks/bench_validate_ecosystem.py +84 -0
- package/src/apothem/cli/README.md +33 -0
- package/src/apothem/cli/__init__.py +229 -0
- package/src/apothem/cli/_cmd_completion.py +88 -0
- package/src/apothem/cli/_cmd_diff.py +181 -0
- package/src/apothem/cli/_cmd_doctor.py +143 -0
- package/src/apothem/cli/_cmd_harnesses.py +167 -0
- package/src/apothem/cli/_cmd_install.py +327 -0
- package/src/apothem/cli/_cmd_migrate_workspace.py +143 -0
- package/src/apothem/cli/_cmd_profile.py +341 -0
- package/src/apothem/cli/_cmd_status.py +180 -0
- package/src/apothem/cli/_cmd_uninstall.py +215 -0
- package/src/apothem/cli/_cmd_update.py +397 -0
- package/src/apothem/cli/_cmd_verify.py +194 -0
- package/src/apothem/cli/_common_flags.py +90 -0
- package/src/apothem/cli/_epilogs.py +296 -0
- package/src/apothem/cli/_helpers.py +857 -0
- package/src/apothem/cli/_json_formatter.py +21 -0
- package/src/apothem/cli/_materialize.py +376 -0
- package/src/apothem/cli/completions/apothem.bash +30 -0
- package/src/apothem/cli/completions/apothem.fish +19 -0
- package/src/apothem/cli/completions/apothem.ps1 +27 -0
- package/src/apothem/cli/completions/apothem.zsh +42 -0
- package/src/apothem/cli/reference_export.py +126 -0
- package/src/apothem/commands/README.md +125 -0
- package/src/apothem/commands/a11y-audit.md +203 -0
- package/src/apothem/commands/architecture-review.md +194 -0
- package/src/apothem/commands/audit.md +165 -0
- package/src/apothem/commands/code-audit.md +218 -0
- package/src/apothem/commands/code-review.md +193 -0
- package/src/apothem/commands/dependency-audit.md +209 -0
- package/src/apothem/commands/docs-review.md +199 -0
- package/src/apothem/commands/elevate.md +285 -0
- package/src/apothem/commands/eval.md +149 -0
- package/src/apothem/commands/fortress.md +172 -0
- package/src/apothem/commands/freshify.md +168 -0
- package/src/apothem/commands/github-deploy-fresh.md +178 -0
- package/src/apothem/commands/github-deploy-next.md +167 -0
- package/src/apothem/commands/perf-audit.md +198 -0
- package/src/apothem/commands/plan-amend.md +104 -0
- package/src/apothem/commands/plan-audit.md +127 -0
- package/src/apothem/commands/plan-design.md +257 -0
- package/src/apothem/commands/plan-execute.md +495 -0
- package/src/apothem/commands/plan-generate.md +351 -0
- package/src/apothem/commands/plan-review.md +555 -0
- package/src/apothem/commands/plan-spec.md +359 -0
- package/src/apothem/commands/plan-status.md +222 -0
- package/src/apothem/commands/plan.md +173 -0
- package/src/apothem/commands/projectify.md +142 -0
- package/src/apothem/commands/release-readiness.md +142 -0
- package/src/apothem/commands/research-analysis.md +241 -0
- package/src/apothem/commands/research-design.md +231 -0
- package/src/apothem/commands/research-disseminate.md +225 -0
- package/src/apothem/commands/research-experiment.md +232 -0
- package/src/apothem/commands/research-ideate.md +213 -0
- package/src/apothem/commands/research-paper.md +252 -0
- package/src/apothem/commands/research-proposal.md +220 -0
- package/src/apothem/commands/research-publish.md +255 -0
- package/src/apothem/commands/research-review.md +251 -0
- package/src/apothem/commands/research-sources.md +266 -0
- package/src/apothem/commands/research-spec.md +255 -0
- package/src/apothem/commands/research-synthesis.md +233 -0
- package/src/apothem/commands/research-theory.md +218 -0
- package/src/apothem/commands/research.md +181 -0
- package/src/apothem/commands/security-audit.md +196 -0
- package/src/apothem/commands/supply-chain-audit.md +192 -0
- package/src/apothem/commands/test-suite.md +146 -0
- package/src/apothem/commands/threat-model-audit.md +199 -0
- package/src/apothem/commands/ux-review.md +202 -0
- package/src/apothem/commands/workflow.md +162 -0
- package/src/apothem/conformity/README.md +173 -0
- package/src/apothem/conformity/__init__.py +1 -0
- package/src/apothem/conformity/_grep_base.py +93 -0
- package/src/apothem/conformity/agent_capability_grep.py +306 -0
- package/src/apothem/conformity/agents_md_coverage_grep.py +382 -0
- package/src/apothem/conformity/agnosticism_grep.py +311 -0
- package/src/apothem/conformity/always_on_budget_grep.py +318 -0
- package/src/apothem/conformity/bare_except_grep.py +115 -0
- package/src/apothem/conformity/binding_reciprocity_grep.py +151 -0
- package/src/apothem/conformity/brand_mark_grep.py +272 -0
- package/src/apothem/conformity/commented_out_code_grep.py +176 -0
- package/src/apothem/conformity/completion_claim_grep.py +169 -0
- package/src/apothem/conformity/conventional_commit_grep.py +319 -0
- package/src/apothem/conformity/copilot_instructions_presence_grep.py +324 -0
- package/src/apothem/conformity/cross_platform_matrix_grep.py +297 -0
- package/src/apothem/conformity/determinism_grep.py +306 -0
- package/src/apothem/conformity/diagram_staleness_grep.py +154 -0
- package/src/apothem/conformity/dynamism_grep.py +284 -0
- package/src/apothem/conformity/editorconfig_presence_grep.py +281 -0
- package/src/apothem/conformity/file_header_grep.py +502 -0
- package/src/apothem/conformity/freshness_token_grep.py +233 -0
- package/src/apothem/conformity/frontmatter_grep.py +274 -0
- package/src/apothem/conformity/frontmatter_value_grep.py +386 -0
- package/src/apothem/conformity/gate.py +1386 -0
- package/src/apothem/conformity/gitattributes_presence_grep.py +238 -0
- package/src/apothem/conformity/harden_runner_grep.py +320 -0
- package/src/apothem/conformity/hedging_grep.py +129 -0
- package/src/apothem/conformity/license_author_consistency_grep.py +204 -0
- package/src/apothem/conformity/link_check.py +327 -0
- package/src/apothem/conformity/magic_number_grep.py +182 -0
- package/src/apothem/conformity/multi_surface_coherence_grep.py +620 -0
- package/src/apothem/conformity/naming_grep.py +224 -0
- package/src/apothem/conformity/no_global_plans_grep.py +339 -0
- package/src/apothem/conformity/no_toplevel_docs_grep.py +120 -0
- package/src/apothem/conformity/oidc_trusted_publishing_grep.py +291 -0
- package/src/apothem/conformity/option_annotation_grep.py +352 -0
- package/src/apothem/conformity/orphan_output_grep.py +206 -0
- package/src/apothem/conformity/permissions_minimum_scope_grep.py +299 -0
- package/src/apothem/conformity/plain_language_grep.py +559 -0
- package/src/apothem/conformity/plan_next_step_consistency_grep.py +450 -0
- package/src/apothem/conformity/plan_suite_structure_grep.py +534 -0
- package/src/apothem/conformity/plans_discipline_language_grep.py +245 -0
- package/src/apothem/conformity/production_ready_pr_grep.py +200 -0
- package/src/apothem/conformity/recommend_next_step_grep.py +250 -0
- package/src/apothem/conformity/redundancy_grep.py +401 -0
- package/src/apothem/conformity/reference_token_grep.py +230 -0
- package/src/apothem/conformity/registry_capability_consistency_grep.py +368 -0
- package/src/apothem/conformity/secret_leak_grep.py +193 -0
- package/src/apothem/conformity/semver_stability_grep.py +358 -0
- package/src/apothem/conformity/smoke_install_grep.py +194 -0
- package/src/apothem/conformity/static_version_grep.py +284 -0
- package/src/apothem/conformity/token_efficiency_grep.py +185 -0
- package/src/apothem/conformity/unpinned_action_grep.py +115 -0
- package/src/apothem/conformity/user_confirm_grep.py +74 -0
- package/src/apothem/conformity/workflow_concurrency_grep.py +283 -0
- package/src/apothem/harnesses/README.md +63 -0
- package/src/apothem/harnesses/__init__.py +16 -0
- package/src/apothem/harnesses/_shared/README.md +36 -0
- package/src/apothem/harnesses/_shared/__init__.py +12 -0
- package/src/apothem/harnesses/_shared/install_driver.py +281 -0
- package/src/apothem/harnesses/_shared/install_driver_apply.py +612 -0
- package/src/apothem/harnesses/_shared/install_driver_backup.py +535 -0
- package/src/apothem/harnesses/_shared/install_driver_converters.py +310 -0
- package/src/apothem/harnesses/_shared/install_driver_lifecycle.py +495 -0
- package/src/apothem/harnesses/_shared/install_driver_materialize.py +675 -0
- package/src/apothem/harnesses/_shared/install_driver_merge.py +656 -0
- package/src/apothem/harnesses/_shared/install_driver_pathsafety.py +137 -0
- package/src/apothem/harnesses/_shared/install_driver_planvalidation.py +240 -0
- package/src/apothem/harnesses/_shared/install_driver_removal.py +366 -0
- package/src/apothem/harnesses/_shared/install_driver_treeops.py +248 -0
- package/src/apothem/harnesses/_shared/install_driver_types.py +330 -0
- package/src/apothem/harnesses/_shared/wrapper_factories.py +448 -0
- package/src/apothem/harnesses/antigravity/STANDARD-CONVENTION-PIN.md +91 -0
- package/src/apothem/harnesses/antigravity/__init__.py +70 -0
- package/src/apothem/harnesses/antigravity/capabilities.yml +40 -0
- package/src/apothem/harnesses/antigravity/install.py +63 -0
- package/src/apothem/harnesses/antigravity/templates/GEMINI.md +40 -0
- package/src/apothem/harnesses/antigravity/templates/plugin.json +5 -0
- package/src/apothem/harnesses/antigravity/uninstall.py +22 -0
- package/src/apothem/harnesses/antigravity/update.py +10 -0
- package/src/apothem/harnesses/antigravity/verify.py +11 -0
- package/src/apothem/harnesses/claude_code/STANDARD-CONVENTION-PIN.md +65 -0
- package/src/apothem/harnesses/claude_code/__init__.py +107 -0
- package/src/apothem/harnesses/claude_code/capabilities.yml +42 -0
- package/src/apothem/harnesses/claude_code/install.py +147 -0
- package/src/apothem/harnesses/claude_code/templates/settings.json +351 -0
- package/src/apothem/harnesses/claude_code/uninstall.py +23 -0
- package/src/apothem/harnesses/claude_code/update.py +10 -0
- package/src/apothem/harnesses/claude_code/verify.py +11 -0
- package/src/apothem/harnesses/codebuddy/STANDARD-CONVENTION-PIN.md +74 -0
- package/src/apothem/harnesses/codebuddy/__init__.py +49 -0
- package/src/apothem/harnesses/codebuddy/capabilities.yml +34 -0
- package/src/apothem/harnesses/codebuddy/install.py +40 -0
- package/src/apothem/harnesses/codebuddy/templates/apothem-rules.md +37 -0
- package/src/apothem/harnesses/codebuddy/uninstall.py +25 -0
- package/src/apothem/harnesses/codebuddy/update.py +10 -0
- package/src/apothem/harnesses/codebuddy/verify.py +11 -0
- package/src/apothem/harnesses/codex/STANDARD-CONVENTION-PIN.md +79 -0
- package/src/apothem/harnesses/codex/__init__.py +72 -0
- package/src/apothem/harnesses/codex/capabilities.yml +40 -0
- package/src/apothem/harnesses/codex/install.py +69 -0
- package/src/apothem/harnesses/codex/templates/AGENTS.md +40 -0
- package/src/apothem/harnesses/codex/templates/hooks.json +127 -0
- package/src/apothem/harnesses/codex/uninstall.py +23 -0
- package/src/apothem/harnesses/codex/update.py +10 -0
- package/src/apothem/harnesses/codex/verify.py +11 -0
- package/src/apothem/harnesses/cursor/STANDARD-CONVENTION-PIN.md +79 -0
- package/src/apothem/harnesses/cursor/__init__.py +48 -0
- package/src/apothem/harnesses/cursor/capabilities.yml +42 -0
- package/src/apothem/harnesses/cursor/install.py +38 -0
- package/src/apothem/harnesses/cursor/templates/apothem-rules.mdc +40 -0
- package/src/apothem/harnesses/cursor/uninstall.py +25 -0
- package/src/apothem/harnesses/cursor/update.py +10 -0
- package/src/apothem/harnesses/cursor/verify.py +11 -0
- package/src/apothem/harnesses/gemini_cli/STANDARD-CONVENTION-PIN.md +102 -0
- package/src/apothem/harnesses/gemini_cli/__init__.py +52 -0
- package/src/apothem/harnesses/gemini_cli/capabilities.yml +43 -0
- package/src/apothem/harnesses/gemini_cli/install.py +43 -0
- package/src/apothem/harnesses/gemini_cli/templates/GEMINI.md +38 -0
- package/src/apothem/harnesses/gemini_cli/uninstall.py +25 -0
- package/src/apothem/harnesses/gemini_cli/update.py +10 -0
- package/src/apothem/harnesses/gemini_cli/verify.py +11 -0
- package/src/apothem/harnesses/github_copilot/STANDARD-CONVENTION-PIN.md +84 -0
- package/src/apothem/harnesses/github_copilot/__init__.py +47 -0
- package/src/apothem/harnesses/github_copilot/capabilities.yml +42 -0
- package/src/apothem/harnesses/github_copilot/install.py +40 -0
- package/src/apothem/harnesses/github_copilot/templates/copilot-instructions.md +33 -0
- package/src/apothem/harnesses/github_copilot/uninstall.py +25 -0
- package/src/apothem/harnesses/github_copilot/update.py +10 -0
- package/src/apothem/harnesses/github_copilot/verify.py +11 -0
- package/src/apothem/harnesses/glm/STANDARD-CONVENTION-PIN.md +77 -0
- package/src/apothem/harnesses/glm/__init__.py +56 -0
- package/src/apothem/harnesses/glm/capabilities.yml +33 -0
- package/src/apothem/harnesses/glm/install.py +45 -0
- package/src/apothem/harnesses/glm/templates/glm.toml +58 -0
- package/src/apothem/harnesses/glm/uninstall.py +25 -0
- package/src/apothem/harnesses/glm/update.py +10 -0
- package/src/apothem/harnesses/glm/verify.py +11 -0
- package/src/apothem/harnesses/hermes/STANDARD-CONVENTION-PIN.md +57 -0
- package/src/apothem/harnesses/hermes/__init__.py +33 -0
- package/src/apothem/harnesses/hermes/capabilities.yml +36 -0
- package/src/apothem/harnesses/hermes/install.py +17 -0
- package/src/apothem/harnesses/hermes/materializer.py +35 -0
- package/src/apothem/harnesses/hermes/uninstall.py +33 -0
- package/src/apothem/harnesses/hermes/update.py +10 -0
- package/src/apothem/harnesses/hermes/verify.py +11 -0
- package/src/apothem/harnesses/kimi_code/STANDARD-CONVENTION-PIN.md +128 -0
- package/src/apothem/harnesses/kimi_code/__init__.py +59 -0
- package/src/apothem/harnesses/kimi_code/capabilities.yml +40 -0
- package/src/apothem/harnesses/kimi_code/install.py +42 -0
- package/src/apothem/harnesses/kimi_code/templates/AGENTS.md +43 -0
- package/src/apothem/harnesses/kimi_code/uninstall.py +27 -0
- package/src/apothem/harnesses/kimi_code/update.py +10 -0
- package/src/apothem/harnesses/kimi_code/verify.py +11 -0
- package/src/apothem/harnesses/kiro/STANDARD-CONVENTION-PIN.md +77 -0
- package/src/apothem/harnesses/kiro/__init__.py +49 -0
- package/src/apothem/harnesses/kiro/capabilities.yml +36 -0
- package/src/apothem/harnesses/kiro/install.py +39 -0
- package/src/apothem/harnesses/kiro/templates/apothem-rules.md +36 -0
- package/src/apothem/harnesses/kiro/uninstall.py +25 -0
- package/src/apothem/harnesses/kiro/update.py +10 -0
- package/src/apothem/harnesses/kiro/verify.py +11 -0
- package/src/apothem/harnesses/open_claw/STANDARD-CONVENTION-PIN.md +62 -0
- package/src/apothem/harnesses/open_claw/__init__.py +35 -0
- package/src/apothem/harnesses/open_claw/capabilities.yml +35 -0
- package/src/apothem/harnesses/open_claw/install.py +17 -0
- package/src/apothem/harnesses/open_claw/materializer.py +36 -0
- package/src/apothem/harnesses/open_claw/uninstall.py +32 -0
- package/src/apothem/harnesses/open_claw/update.py +10 -0
- package/src/apothem/harnesses/open_claw/verify.py +11 -0
- package/src/apothem/harnesses/opencode/STANDARD-CONVENTION-PIN.md +76 -0
- package/src/apothem/harnesses/opencode/__init__.py +35 -0
- package/src/apothem/harnesses/opencode/capabilities.yml +43 -0
- package/src/apothem/harnesses/opencode/install.py +17 -0
- package/src/apothem/harnesses/opencode/materializer.py +31 -0
- package/src/apothem/harnesses/opencode/uninstall.py +34 -0
- package/src/apothem/harnesses/opencode/update.py +10 -0
- package/src/apothem/harnesses/opencode/verify.py +11 -0
- package/src/apothem/harnesses/qwen_code/STANDARD-CONVENTION-PIN.md +87 -0
- package/src/apothem/harnesses/qwen_code/__init__.py +37 -0
- package/src/apothem/harnesses/qwen_code/capabilities.yml +43 -0
- package/src/apothem/harnesses/qwen_code/install.py +19 -0
- package/src/apothem/harnesses/qwen_code/materializer.py +174 -0
- package/src/apothem/harnesses/qwen_code/templates/QWEN.md +30 -0
- package/src/apothem/harnesses/qwen_code/uninstall.py +34 -0
- package/src/apothem/harnesses/qwen_code/update.py +10 -0
- package/src/apothem/harnesses/qwen_code/verify.py +11 -0
- package/src/apothem/harnesses/trae/STANDARD-CONVENTION-PIN.md +70 -0
- package/src/apothem/harnesses/trae/__init__.py +49 -0
- package/src/apothem/harnesses/trae/capabilities.yml +34 -0
- package/src/apothem/harnesses/trae/install.py +38 -0
- package/src/apothem/harnesses/trae/templates/apothem-rules.md +37 -0
- package/src/apothem/harnesses/trae/uninstall.py +25 -0
- package/src/apothem/harnesses/trae/update.py +10 -0
- package/src/apothem/harnesses/trae/verify.py +11 -0
- package/src/apothem/harnesses/windsurf/STANDARD-CONVENTION-PIN.md +91 -0
- package/src/apothem/harnesses/windsurf/__init__.py +52 -0
- package/src/apothem/harnesses/windsurf/capabilities.yml +40 -0
- package/src/apothem/harnesses/windsurf/install.py +41 -0
- package/src/apothem/harnesses/windsurf/templates/apothem-rules.md +37 -0
- package/src/apothem/harnesses/windsurf/uninstall.py +25 -0
- package/src/apothem/harnesses/windsurf/update.py +10 -0
- package/src/apothem/harnesses/windsurf/verify.py +11 -0
- package/src/apothem/harnesses/zed/STANDARD-CONVENTION-PIN.md +92 -0
- package/src/apothem/harnesses/zed/__init__.py +57 -0
- package/src/apothem/harnesses/zed/capabilities.yml +38 -0
- package/src/apothem/harnesses/zed/install.py +41 -0
- package/src/apothem/harnesses/zed/templates/apothem-rules.md +32 -0
- package/src/apothem/harnesses/zed/uninstall.py +28 -0
- package/src/apothem/harnesses/zed/update.py +10 -0
- package/src/apothem/harnesses/zed/verify.py +11 -0
- package/src/apothem/hooks/README.md +81 -0
- package/src/apothem/hooks/__init__.py +24 -0
- package/src/apothem/hooks/askuserquestion_validator.py +380 -0
- package/src/apothem/hooks/dispatch.py +296 -0
- package/src/apothem/hooks/emit_hook_context.py +444 -0
- package/src/apothem/hooks/hooks.json +318 -0
- package/src/apothem/hooks/lib/README.md +39 -0
- package/src/apothem/hooks/lib/__init__.py +18 -0
- package/src/apothem/hooks/lib/bootstrap.ps1 +129 -0
- package/src/apothem/hooks/lib/bootstrap.sh +103 -0
- package/src/apothem/hooks/lib/events.py +51 -0
- package/src/apothem/hooks/lib/find-pwsh.ps1 +78 -0
- package/src/apothem/hooks/lib/find-pwsh.sh +76 -0
- package/src/apothem/hooks/lib/find-python.ps1 +63 -0
- package/src/apothem/hooks/lib/find-python.sh +97 -0
- package/src/apothem/hooks/lib/log.py +43 -0
- package/src/apothem/hooks/lib/resolve_root.py +264 -0
- package/src/apothem/hooks/messages/postcompact.md +14 -0
- package/src/apothem/hooks/messages/posttooluse-proactive-compaction.md +46 -0
- package/src/apothem/hooks/messages/precompact.md +14 -0
- package/src/apothem/hooks/messages/pretooluse-askuserquestion-recommended.md +65 -0
- package/src/apothem/hooks/messages/pretooluse-bash-plan-guard.md +97 -0
- package/src/apothem/hooks/messages/pretooluse-bash.md +39 -0
- package/src/apothem/hooks/messages/pretooluse-conformity.md +70 -0
- package/src/apothem/hooks/messages/pretooluse-dependency-guard.md +21 -0
- package/src/apothem/hooks/messages/pretooluse-edit-header-guard.md +61 -0
- package/src/apothem/hooks/messages/pretooluse-edit.md +21 -0
- package/src/apothem/hooks/messages/pretooluse-eval-guard.md +39 -0
- package/src/apothem/hooks/messages/pretooluse-notebookedit.md +11 -0
- package/src/apothem/hooks/messages/pretooluse-write-header-guard.md +45 -0
- package/src/apothem/hooks/messages/pretooluse-write-plan-guard.md +72 -0
- package/src/apothem/hooks/messages/pretooluse-write.md +21 -0
- package/src/apothem/hooks/messages/sessionstart.md +15 -0
- package/src/apothem/hooks/messages/stop.md +27 -0
- package/src/apothem/hooks/proactive_compaction_tracker.py +327 -0
- package/src/apothem/hooks/session_start_bootstrap.py +472 -0
- package/src/apothem/lib/README.md +42 -0
- package/src/apothem/lib/__init__.py +13 -0
- package/src/apothem/lib/atomic_io.py +189 -0
- package/src/apothem/lib/auditor.py +687 -0
- package/src/apothem/lib/clean_slate.py +396 -0
- package/src/apothem/lib/contexts.py +352 -0
- package/src/apothem/lib/data_home.py +255 -0
- package/src/apothem/lib/frontmatter.py +101 -0
- package/src/apothem/lib/harness_materializer.py +213 -0
- package/src/apothem/lib/harness_protocol.py +59 -0
- package/src/apothem/lib/harness_registry.py +282 -0
- package/src/apothem/lib/harness_registry_data.py +843 -0
- package/src/apothem/lib/install_ledger.py +347 -0
- package/src/apothem/lib/learning.py +540 -0
- package/src/apothem/lib/memory.py +347 -0
- package/src/apothem/lib/parallel_sweep.py +234 -0
- package/src/apothem/lib/plan_tiers.py +200 -0
- package/src/apothem/lib/plugin_bootstrap.py +132 -0
- package/src/apothem/lib/plugin_tree.py +599 -0
- package/src/apothem/lib/profile.py +755 -0
- package/src/apothem/lib/profile_projection.py +198 -0
- package/src/apothem/lib/propagation-manifest.yaml +878 -0
- package/src/apothem/lib/propagation.py +220 -0
- package/src/apothem/lib/python_resolver.py +189 -0
- package/src/apothem/lib/reporter.py +62 -0
- package/src/apothem/lib/workspace_migration.py +323 -0
- package/src/apothem/output-styles/README.md +41 -0
- package/src/apothem/output-styles/concise-engineer.md +49 -0
- package/src/apothem/output-styles/default-architect.md +52 -0
- package/src/apothem/output-styles/default.md +113 -0
- package/src/apothem/output-styles/forensic-auditor.md +63 -0
- package/src/apothem/py.typed +0 -0
- package/src/apothem/rules/README.md +121 -0
- package/src/apothem/rules/agent-capability-discipline-matrix.md +89 -0
- package/src/apothem/rules/agent-capability-discipline.md +78 -0
- package/src/apothem/rules/agent-orchestration-patterns.md +144 -0
- package/src/apothem/rules/agent-orchestration.md +65 -0
- package/src/apothem/rules/agents-md-convention.md +86 -0
- package/src/apothem/rules/agile-sprints-elements.md +135 -0
- package/src/apothem/rules/agile-sprints.md +64 -0
- package/src/apothem/rules/agnostic-posture-checklist.md +47 -0
- package/src/apothem/rules/agnostic-posture.md +48 -0
- package/src/apothem/rules/authoritative-referencing-quotation.md +50 -0
- package/src/apothem/rules/authoritative-referencing.md +66 -0
- package/src/apothem/rules/authority-inquiry-categories.md +58 -0
- package/src/apothem/rules/authority-inquiry.md +54 -0
- package/src/apothem/rules/auto-memory-topic-files.md +86 -0
- package/src/apothem/rules/auto-memory.md +67 -0
- package/src/apothem/rules/bidirectional-binding.md +123 -0
- package/src/apothem/rules/canonical-layout-reporting-tiers.md +212 -0
- package/src/apothem/rules/canonical-layout.md +60 -0
- package/src/apothem/rules/clean-architecture-layers.md +186 -0
- package/src/apothem/rules/clean-room-generation-protocols.md +124 -0
- package/src/apothem/rules/clean-room-generation.md +59 -0
- package/src/apothem/rules/code-craft-conventions.md +101 -0
- package/src/apothem/rules/code-craft-markdown.md +138 -0
- package/src/apothem/rules/code-craft-python.md +154 -0
- package/src/apothem/rules/code-craft-shell.md +192 -0
- package/src/apothem/rules/cognitive-identity-techniques.md +180 -0
- package/src/apothem/rules/cognitive-identity.md +81 -0
- package/src/apothem/rules/context-management-budget.md +46 -0
- package/src/apothem/rules/context-management-protocol.md +161 -0
- package/src/apothem/rules/context-management-scratch.md +128 -0
- package/src/apothem/rules/context-management.md +85 -0
- package/src/apothem/rules/definitiveness-virtues.md +67 -0
- package/src/apothem/rules/definitiveness.md +58 -0
- package/src/apothem/rules/determinism.md +81 -0
- package/src/apothem/rules/disclosure-ledger-markers.md +58 -0
- package/src/apothem/rules/disclosure-ledger.md +52 -0
- package/src/apothem/rules/dynamism.md +38 -0
- package/src/apothem/rules/etc-extension.md +57 -0
- package/src/apothem/rules/expertise-posture-elements.md +68 -0
- package/src/apothem/rules/expertise-posture.md +54 -0
- package/src/apothem/rules/freshness-facade.md +64 -0
- package/src/apothem/rules/harness-adapter-shape-schemas.md +162 -0
- package/src/apothem/rules/harness-adapter-shape.md +42 -0
- package/src/apothem/rules/host-discovery-manifests.md +50 -0
- package/src/apothem/rules/host-discovery.md +56 -0
- package/src/apothem/rules/i18n-discipline-locale-cohorts.md +120 -0
- package/src/apothem/rules/i18n-discipline.md +70 -0
- package/src/apothem/rules/interactive-questions-canonical-shapes.md +590 -0
- package/src/apothem/rules/interactive-questions-detail.md +41 -0
- package/src/apothem/rules/interactive-questions-sweep-matchers.md +184 -0
- package/src/apothem/rules/interactive-questions.md +89 -0
- package/src/apothem/rules/large-file-generation.md +112 -0
- package/src/apothem/rules/large-file-reading.md +59 -0
- package/src/apothem/rules/living-docs.md +85 -0
- package/src/apothem/rules/multi-agent-workflow.md +57 -0
- package/src/apothem/rules/operational-mandates-expanded.md +78 -0
- package/src/apothem/rules/operational-mandates.md +88 -0
- package/src/apothem/rules/option-annotation-form.md +60 -0
- package/src/apothem/rules/option-annotation.md +45 -0
- package/src/apothem/rules/own-voice-reimplementation.md +86 -0
- package/src/apothem/rules/performance-discipline.md +91 -0
- package/src/apothem/rules/persistent-conventions-vigilance-checklist.md +54 -0
- package/src/apothem/rules/persistent-conventions-vigilance.md +61 -0
- package/src/apothem/rules/plain-language.md +56 -0
- package/src/apothem/rules/planning-techniques.md +130 -0
- package/src/apothem/rules/pre-emission-gate-bars.md +86 -0
- package/src/apothem/rules/pre-emission-gate.md +54 -0
- package/src/apothem/rules/production-ready-prs-surfaces.md +162 -0
- package/src/apothem/rules/production-ready-prs.md +83 -0
- package/src/apothem/rules/propagation.md +63 -0
- package/src/apothem/rules/recommend-next-step.md +106 -0
- package/src/apothem/rules/refactoring-discipline.md +76 -0
- package/src/apothem/rules/session-closure.md +44 -0
- package/src/apothem/rules/sota-elevation-exemplars.md +76 -0
- package/src/apothem/rules/sota-elevation.md +52 -0
- package/src/apothem/rules/source-accessibility.md +58 -0
- package/src/apothem/rules/surgical-manipulation.md +48 -0
- package/src/apothem/rules/systemic-participation-relations.md +108 -0
- package/src/apothem/rules/systemic-participation.md +70 -0
- package/src/apothem/rules/ten-dimension-check-dimensions.md +52 -0
- package/src/apothem/rules/ten-dimension-check.md +59 -0
- package/src/apothem/rules/token-budget-discipline.md +81 -0
- package/src/apothem/rules/token-efficiency-rewrite-protocol.md +79 -0
- package/src/apothem/rules/token-efficiency-rewrite.md +77 -0
- package/src/apothem/rules/tool-use-discipline.md +48 -0
- package/src/apothem/rules/visual-leverage.md +102 -0
- package/src/apothem/schemas/NOTICE.md +9 -0
- package/src/apothem/schemas/README.md +104 -0
- package/src/apothem/schemas/__init__.py +176 -0
- package/src/apothem/schemas/advisory-finding.schema.json +111 -0
- package/src/apothem/schemas/agent.schema.json +106 -0
- package/src/apothem/schemas/authorship-header.txt +1 -0
- package/src/apothem/schemas/cohort-manifest.yaml +248 -0
- package/src/apothem/schemas/cohort-metadata-vocabulary.yaml +168 -0
- package/src/apothem/schemas/cohort.schema.json +113 -0
- package/src/apothem/schemas/command.schema.json +68 -0
- package/src/apothem/schemas/compatibility-matrix.yaml +432 -0
- package/src/apothem/schemas/context-fragment.schema.json +64 -0
- package/src/apothem/schemas/freshness-token-denylist.txt +51 -0
- package/src/apothem/schemas/handoff-manifest.yaml +353 -0
- package/src/apothem/schemas/header-exceptions.txt +141 -0
- package/src/apothem/schemas/header-visibility.yaml +39 -0
- package/src/apothem/schemas/learning-signal.schema.json +46 -0
- package/src/apothem/schemas/memory-record.schema.json +61 -0
- package/src/apothem/schemas/output-style.schema.json +40 -0
- package/src/apothem/schemas/plan.schema.json +51 -0
- package/src/apothem/schemas/plugin.schema.json +83 -0
- package/src/apothem/schemas/profile.example.yaml +70 -0
- package/src/apothem/schemas/profile.minimal.yaml +6 -0
- package/src/apothem/schemas/profile.schema.json +396 -0
- package/src/apothem/schemas/reference-token-denylist.txt +25 -0
- package/src/apothem/schemas/skill.schema.json +75 -0
- package/src/apothem/skills/README.md +93 -0
- package/src/apothem/skills/dependency-upgrade/SKILL.md +105 -0
- package/src/apothem/skills/dev-toolkit/SKILL.md +120 -0
- package/src/apothem/skills/diagram-authoring/SKILL.md +113 -0
- package/src/apothem/skills/document-authoring/SKILL.md +118 -0
- package/src/apothem/skills/ecosystem-audit/SKILL.md +108 -0
- package/src/apothem/skills/ecosystem-audit/references/audit-fortress.md +85 -0
- package/src/apothem/skills/ecosystem-audit/references/procedure.md +162 -0
- package/src/apothem/skills/eval-harness/SKILL.md +88 -0
- package/src/apothem/skills/incident-runbook/SKILL.md +92 -0
- package/src/apothem/skills/multi-source-research/SKILL.md +90 -0
- package/src/apothem/skills/plan-suite/SKILL.md +118 -0
- package/src/apothem/skills/plan-suite/master_template.md +1324 -0
- package/src/apothem/skills/projectify/SKILL.md +117 -0
- package/src/apothem/skills/prompt-engineering/SKILL.md +122 -0
- package/src/apothem/skills/refactor-extract/SKILL.md +85 -0
- package/src/apothem/skills/research-suite/SKILL.md +170 -0
- package/src/apothem/skills/research-suite/references/directory-structure.md +47 -0
- package/src/apothem/skills/research-suite/references/lifecycle.md +67 -0
- package/src/apothem/skills/research-suite/references/principal-investigator-framework.md +37 -0
- package/src/apothem/skills/research-suite/references/rigor-mandates.md +30 -0
- package/src/apothem/skills/research-suite/research_template.md +476 -0
- package/src/apothem/skills/secret-rotation/SKILL.md +87 -0
- package/src/apothem/skills/source-synthesis/SKILL.md +92 -0
- package/src/apothem/skills/surgical-guard/SKILL.md +118 -0
- package/src/apothem/skills/test-authoring/SKILL.md +85 -0
- package/src/apothem/skills/vuln-triage/SKILL.md +91 -0
- package/src/apothem/skills/workflow/SKILL.md +139 -0
- package/src/apothem/statuslines/README.md +26 -0
- package/src/apothem/statuslines/__init__.py +20 -0
- package/src/apothem/statuslines/conformity.json +5 -0
- package/src/apothem/statuslines/render.py +334 -0
- package/src/apothem/statuslines/statusline.md +50 -0
- package/src/apothem/templates/README.md +43 -0
- package/src/apothem/templates/agents-md-template.md +80 -0
- package/src/apothem/templates/consideration-log.md +39 -0
- package/src/apothem/templates/expertise-gap-log.md +56 -0
- package/src/apothem/templates/master-index-template.md +93 -0
- package/src/apothem/templates/potency-map.md +53 -0
- package/src/apothem/templates/preservation-audit.md +60 -0
- package/src/apothem/templates/question-resolution-audit.md +52 -0
- package/src/apothem/templates/trace-matrix-template.md +77 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "elevate"
|
|
3
|
+
version: "0.2.0"
|
|
4
|
+
updated: "2026-06-23"
|
|
5
|
+
description: "Aggressive, zero-trust, open-loop MASTER repository-elevation command. DETECTS across every technically-auditable dimension by dispatching the report-only /audit fortress (reusing its eleven first-class passes — code-review, code-audit, architecture-review, docs-review, security-audit, dependency-audit, supply-chain-audit, threat-model-audit, perf-audit, a11y-audit, ux-review — never re-deriving them), then runs genuinely-independent critique agents over the SOTA-and-elevation dimensions no audit covers (storytelling, naming uniformity, cross-sync, consolidation/modularity, aesthetic SOTA, visualization/tabulation, extensibility), stopping at every nuance folder-by-folder, file-by-file, line-by-line, lifting each surface to current SOTA per rules/sota-elevation.md, remediating with the most appropriate action (destruction included; every destructive step confirmation-gated), propagating each change across the whole reference graph per rules/propagation.md, and culminating trace-free and production-ready by handing off to /freshify. Orchestration runs through the workflow harness (skills/workflow/SKILL.md) per rules/agent-orchestration.md; the command names no model tier and presets no effort. WARNING: a full run is a relentless multi-pass undertaking, not a quick amendment — bound a pass with --dimensions / --max-passes for a scoped run."
|
|
6
|
+
argument-hint: "[path/to/repo/] [--dimensions all|<list>] [--max-passes N] [--open-loop] [--autonomous] [--verify-panel N] [--strict]"
|
|
7
|
+
disable-model-invocation: true
|
|
8
|
+
portability: "universal"
|
|
9
|
+
allowed-tools: "*"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- SPDX-License-Identifier: MIT -->
|
|
13
|
+
|
|
14
|
+
# /elevate — Aggressive Zero-Trust Open-Loop Elevation
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Role
|
|
19
|
+
|
|
20
|
+
You are the user's **Elevation Orchestrator** and **Cognitive Insurgent** (`rules/cognitive-identity.md`), driving the project's most aggressive whole-repository elevation surface — the **master elevation command**. `/elevate` runs **genuinely-independent, zero-trust, multi-agent open-loop ("dreaming") critique**: it stops at every nuance of a target repository, critiques each against current SOTA, remediates with the most appropriate action, and re-loops until the whole tree is cross-coherent — then hands off to `/freshify` for the trace-free, production-ready close.
|
|
21
|
+
|
|
22
|
+
`/elevate` is an **orchestrator-as-instrument, not an audit-pass author**. It detects the technically-auditable nuances by **dispatching the report-only `/audit` fortress** and consuming its verified, severity-triaged findings — reusing the eleven first-class audit/review passes, never re-deriving their critiques. It then runs its own **bespoke critique only over the SOTA-and-elevation dimensions no audit pass covers** (narrative storytelling, naming uniformity across cohorts, cross-sync and propagation coherence, consolidation and modularity at the whole-repo scale, aesthetic SOTA, visualization / tabulation / stats opportunities, extensibility and scalability). `/audit` reports and routes its HIGH findings here; `/elevate` is the whole-repo critique-**and-remediate** consumer that closes them.
|
|
23
|
+
|
|
24
|
+
This is a **major undertaking, not a modification pass.** `/elevate` is run relentlessly to true cross-coherent convergence — never lazily, never partially, even across many passes — and **destruction is fully permitted** (delete, remove, consolidate, merge, restructure, relocate, rename, refactor) in service of cleanliness and production-readiness, subject only to the per-target confirmation contract below. The aim is a repository that becomes maximally united and coherent under the operator's overall purposes: a strong, comprehensive, massive platform that a newcomer-level end user can intuitively use and an AI coding agent can recognize as one coherent whole.
|
|
25
|
+
|
|
26
|
+
Three surfaces are cited, never duplicated:
|
|
27
|
+
|
|
28
|
+
- **`rules/agent-orchestration.md`** + **`skills/workflow/SKILL.md`** — the canonical agent-and-team deployment, return-contract, isolation, adversarial-verify, and open-loop dispatch method, and the deep workflow procedure the loop runs through. The capability is the opt-in, default-off multi-agent surface declared at `rules/multi-agent-workflow.md`. `/elevate` orchestrates against them; they specify no model and preset no effort, so the elevation runs identically under any harness and any operator-selected capability tier.
|
|
29
|
+
- **`commands/audit.md`** — the report-only detect front. The eleven audit/review dimensions are dispatched through it (or individually), never reimplemented here.
|
|
30
|
+
- **`rules/sota-elevation.md`** — the elevation target: the eight SOTA evaluation surfaces, the named-exemplar discipline, and the `MAXIMAL` upper-bound calibration every surface MUST reach.
|
|
31
|
+
|
|
32
|
+
Apply the Five Cognitive Filters at full intensity. Filter 1 (Obvious Purge) discards the first "this nuance is fine" verdict and reaches for the comprehensive critique; Filter 3 (Inversion Press) drives the refute-by-default verification of every finding; Filter 5 (Aesthetic Demand) is the gate beyond mechanical conformity — a surface that passes every check yet lacks conceptual elegance has not reached SOTA. The seven-axs-of-breadth taxonomy at `rules/cognitive-identity.md` §1 (Architecture · Concurrency · Performance · Security · Testing · Tooling · Observability) is the standing axis-of-attention frame.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Instructions
|
|
37
|
+
|
|
38
|
+
Execute `/elevate`. Ingest the target repository in full, then run the elevation loop: **detect** the technically-auditable nuances by dispatching `/audit` per `commands/audit.md` and consuming its verified findings; **fan out** genuinely-independent critique agents through the workflow harness per `rules/agent-orchestration.md` over the elevation dimensions no audit covers; **stop at every single nuance** across the whole project; **zero-trust-critique** each across the cross-dimension axes; **remediate** each finding with the most appropriate action through the dimension-native remediation primitives; **surface** every elevation opportunity beyond the literal critique under the disclosed grant; and **re-loop** until the tree is cross-coherent at SOTA per `rules/sota-elevation.md`. Hand the elevated tree to `/freshify` for the trace-free, production-ready close.
|
|
39
|
+
|
|
40
|
+
Five operating invariants govern the loop:
|
|
41
|
+
|
|
42
|
+
1. **Relentless, exhaustive major undertaking.** Treat `/elevate` as a major, multi-pass undertaking — never a modification or amendment pass, never lazy, never partial. Stop at **every single nuance** across the whole project **folder-by-folder, file-by-file, line-by-line**; no surface is exempt (root files, narratives, the website / portal and its source, the documentation tree — developer guide, user guide, tutorials, runbooks, quick-start, demos — the test suite, the examples, the assets, the figures and tables, the implementations, and every other navigable nuance). Run the loop to true cross-coherent convergence even across many passes. **Destruction is fully permitted** — delete, remove, consolidate, merge, restructure, relocate, rename, refactor — in service of cleanliness and production-readiness, subject to the per-target confirmation contract below; the operator's standing posture is that cleanliness and production-readiness outweigh preservation-for-its-own-sake. A sweep that leaves an un-critiqued surface, a tolerated stale or backward-compatibility artifact, an orphan, or a half-finished remediation is non-conformant. Bound the run with `--dimensions` and `--max-passes` when a scoped pass is wanted; the default is exhaustive.
|
|
43
|
+
2. **Reuse the audit fortress; do not re-derive it.** Every dimension a first-class audit/review pass already covers is **detected by dispatching that pass through `/audit`**, never re-critiqued inline. `/elevate` authors no audit logic of its own; it consumes `/audit`'s verified, deduplicated, severity-triaged findings and adds only the bespoke critique over the elevation dimensions no audit covers (§Cross-Dimension Critique Axes names the split). Reimplementing a code, architecture, docs, security, dependency, supply-chain, threat-model, performance, accessibility, or developer-experience critique here is a redundancy defect.
|
|
44
|
+
3. **The "etc." extension rule.** Every class this command enumerates with a trailing "etc.", "e.g.", "such as", "including", or "…" MUST be extended comprehensively to its sibling members inferred from the underlying intent per `rules/etc-extension.md` — never honor the short literal list. The per-nuance stop inventory, the cross-dimension axes, and the remediation vocabulary below are seeds to extend, not closed sets.
|
|
45
|
+
4. **Zero-trust posture.** No nuance is assumed correct because it exists. Each is independently re-derived against current SOTA authoritative sources; every claim, argument, hypothesis, fact, and theory cites an authoritative / official / current source per `rules/authoritative-referencing.md` and `rules/interactive-questions-canonical-shapes.md` §3.2.1 (concrete-driver class 6). A nuance survives critique with cited evidence, not by default; every load-bearing finding clears an adversarial refute-by-default verification pass before it survives.
|
|
46
|
+
5. **Agnostic orchestration.** Describe orchestration generically — "deploy independent critique agents", "open-loop until convergence", "fan out per nuance class". Name no model tier; preset no effort. Capability tier and effort resolve only from the operator's in-conversation choice per `rules/agnostic-posture.md`; the multi-agent capability is opt-in and default-off per `rules/multi-agent-workflow.md`.
|
|
47
|
+
|
|
48
|
+
**Reference Template:** Check `CLAUDE.md` for template path. Governance scales with seriousness per CLAUDE.md Section 4. Creative architecture (cognitive identity rule, CM-21) active throughout.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Pipeline Contract
|
|
53
|
+
|
|
54
|
+
**Pipeline position.** `/elevate` is the aggressive elevation pass that precedes the freshening close, and the remediation consumer the report-only `/audit` routes its HIGH findings to. It consumes the target repository's full working surface, emits an elevated cross-coherent tree plus an elevation report, then hands off to `/freshify` for the trace-free culmination. It is distinct from `/audit` (report-only multi-dimension detection), `/fortress` (the security/production-scoped detect → remediate → re-audit → gate loop, which routes its broad lifts here), and `/release-readiness` (a single READY / BLOCKED verdict): `/elevate` is the broad, open-loop, whole-repo critique-**and-remediate** to SOTA. The elevation here is the substrate the freshening core finalizes.
|
|
55
|
+
|
|
56
|
+
**Consumed.** The target repository's entire working surface — every file, folder, and package; every root file; the README files, `AGENTS.md`, `CLAUDE.md`, the website / portal and its source, the documentation tree, the test suite, the examples, the assets and logos, the `.github/` folder, the source-forge metadata, the CHANGELOG, and every narrative and style surface — plus `/audit`'s verified findings (the technically-auditable detection front), the host's ratified conventions discovered per `rules/host-discovery.md`, and current SOTA authoritative sources accessed per the source-access contract below.
|
|
57
|
+
|
|
58
|
+
**Emitted.** The elevated working tree (in-place by default), cross-coherent at SOTA across every dimension, and an elevation report enumerating every nuance inspected, every critique verdict (with the `/audit` findings it consumed cited, not re-derived), every remediation with its action and rationale, every surfaced elevation opportunity, the per-dimension attestation, the per-axis attestation against the seven-axs-of-breadth taxonomy, the disclosure ledger of every amendment / extension / refinement per `rules/disclosure-ledger.md`, and the SOTA-elevation disclosure markers per `rules/sota-elevation.md`.
|
|
59
|
+
|
|
60
|
+
**Pre-flight inquiry set.** Input Ingest emits the typed inquiry set per `rules/authority-inquiry.md` when the elevation surface is ambiguous — the dimension scope is unconfirmed, the SOTA exemplar cohort for a surface is undeclared, the host's ratified conventions are silent, or a destructive-remediation target is judgment-dependent. Every ambiguity surfaces as a structured-inquiry invocation with the three-segment option annotation per `rules/interactive-questions.md` §3; the `--autonomous` opt-in is itself confirmed before continuous pass-to-pass advancement engages.
|
|
61
|
+
|
|
62
|
+
**Source-access contract.** When an external SOTA source needed to critique or remediate a nuance is inaccessible (not open-access, not open-source), access it through the operator's authenticated browser surface where feasible, or interview the operator through the structured-inquiry channel to supply it, per `rules/source-accessibility.md` — trust outranks reachability. Never substitute a free, accessible, untrusted source for an inaccessible trusted one.
|
|
63
|
+
|
|
64
|
+
**Confirmation contract.** Every destructive remediation (eliminate, consolidate, relocate, redesign-replace, rewrite-from-scratch, rename, move) routes a per-target confirmation through the structured-inquiry channel per `rules/interactive-questions.md` §6 before acting; the default option is the non-destructive, in-place path, and the destructive option is annotated `destructive-no-default`.
|
|
65
|
+
|
|
66
|
+
**Pre-emission gate.** Each dispatched audit runs its own fifteen-bar gate per `rules/pre-emission-gate.md`; `/elevate` does not duplicate a dimension's gate but runs the gate over the elevated tree and the elevation report before finalization. The gate attestation block is recorded inside the report. Failure on any bar blocks finalization until resolved per the iterate-on-failure protocol at the gate rule's §3.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Foundational Stanzas
|
|
71
|
+
|
|
72
|
+
The standing surfaces every operator inherits per the canonical project voice at `AGENTS.md` plus the active harness mirror.
|
|
73
|
+
|
|
74
|
+
### Refusal & Escalation
|
|
75
|
+
|
|
76
|
+
REFUSE any task whose scope exceeds this command's mission (elevating a target repository and handing off to `/freshify`). Refusal is explicit: name what was refused, name the mission boundary crossed, and surface an escalation option through the structured-inquiry channel per `rules/interactive-questions.md`. REFUSE to reimplement an audit/review pass — dispatch the first-class command through `/audit` and consume its findings. REFUSE to publish, tag, or push — `/elevate` elevates a working tree, it does not release. REFUSE any destructive remediation that has not cleared its per-target confirmation. REFUSE an unbounded open loop — the `--max-passes` cap and its bounded retreat are mandatory per `rules/planning-techniques.md` §1. REFUSE silent reconciliation of contradictory verification verdicts — surface both with evidence. REFUSE to preset a model or effort in any emitted artifact — the agnostic boundary is non-negotiable.
|
|
77
|
+
|
|
78
|
+
### Output Surface
|
|
79
|
+
|
|
80
|
+
The elevated tree is modified in place by default. The elevation report lands at the consuming suite's `_outputs/elevate-report.md` per the suite-locality invariant at `rules/canonical-layout.md` §2.2; an optional nuance inventory lands at `_inputs/elevate-inventory.md`. Plan-internal files are banner-exempt per the `.plans/**` exception class enumerated at `src/apothem/schemas/header-exceptions.txt`. Host source files the command elevates retain or receive the canonical SPDX header per the `rules/host-discovery.md`-discovered comment family. NEVER write the report outside the suite folder; NEVER write to a global plans directory under any harness's config root; NEVER write to any other global-ecosystem location.
|
|
81
|
+
|
|
82
|
+
### File-Authoring Contract
|
|
83
|
+
|
|
84
|
+
When the command edits a host source file in place, it preserves the host's ratified idioms per `rules/host-discovery.md` and the canonical SPDX header per the discovered comment family, and lands the change as a minimal, anchor-bounded diff through the `surgical-guard` skill per `rules/surgical-manipulation.md` — never a blunt whole-file overwrite where a scoped edit suffices. A rewrite-from-scratch re-derives the surface clean-room from its extracted intent per `rules/clean-room-generation.md` §3, preserving behavior (green-before / green-after per `rules/refactoring-discipline.md`). Every remediation cites the surface it touches (`file:line`) and the authoritative source backing the change; a removed surface is named before elimination. The command emits no sign of automated authorship, no backward or placeholder narrative, and no reference to obsolete, legacy, or retired artifacts.
|
|
85
|
+
|
|
86
|
+
### Structured Inquiry on Ambiguity
|
|
87
|
+
|
|
88
|
+
When uncertain about the dimension scope, the SOTA exemplar for a surface, whether a nuance is load-bearing or eliminable, the most appropriate remediation action, or any destructive-remediation target, route the resolution through the structured-inquiry channel with the three-segment option annotation per `rules/interactive-questions.md` §3. Free-form prose questions as primary input are forbidden. NEVER fabricate a remediation — every change cites a concrete `file:line`, an authoritative source, and the elevation rationale, and every destructive change clears its per-target confirmation first.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Current-SOTA Source-Consultation Mandate
|
|
93
|
+
|
|
94
|
+
The elevation self-augments from current authoritative sources, not training memory alone. Each technically-auditable dimension inherits the contemporary standard its owning audit command names (OWASP ASVS / Top 10 / CWE for security; SLSA + Sigstore + SBOM for supply-chain; STRIDE + PASTA for threat-model; WCAG 2.2 AA for accessibility; clig.dev + NN/g for developer-experience; the per-class budgets in `rules/performance-discipline.md` for performance), and each bespoke-critique dimension cites the named-exemplar cohort per `rules/sota-elevation.md` + `rules/sota-elevation-exemplars.md`. An unsourced "best-practice" critique or remediation is downgraded to `acceptable` or routed to inquiry per `rules/option-annotation.md`; memory-only operation on a reachable live source is non-conformant per `rules/authoritative-referencing.md`.
|
|
95
|
+
|
|
96
|
+
## Beyond-Mission Recommendation Grant
|
|
97
|
+
|
|
98
|
+
`/elevate` is granted to identify — and surface — any elevation / enhancement opportunity its critique reveals beyond the literal finding set: a missing visualization or diagram, a consolidation that collapses duplication, a modularity boundary that should be drawn, an extensibility seam that future work needs, a documentation surface a newcomer lacks. Each opportunity is **disclosed** per `rules/disclosure-ledger.md` (`[Refinement]` with cited rationale, `[Extension]` for adjacent-gap scope widening) and routed for the operator's decision; a mechanically-safe enhancement applies in place under the carve-out at `rules/authority-inquiry.md`, while a judgment-dependent one surfaces as a structured-inquiry recommendation. Silent scope-widening is forbidden; the grant is a disclosure obligation, not a license for unannounced change.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Inputs
|
|
103
|
+
|
|
104
|
+
| Argument | Type | Required | Description |
|
|
105
|
+
| -------- | ---- | -------- | ----------- |
|
|
106
|
+
| `path/to/repo/` | Path | Yes | Root directory of the target repository. The command refuses execution when no elevation surface resolves. |
|
|
107
|
+
| `--dimensions all\|<list>` | Enum/List | No | Scope the cross-dimension critique to the named axes (comma-separated) or, with `all`, the full axis list. Default `all`. The audit-detected dimensions accept the same names the eleven first-class passes use (e.g. `security-audit,perf-audit`). |
|
|
108
|
+
| `--max-passes N` | Integer | No | Cap the open-loop pass count at `N` per the iteration-safety contract. Without the flag, the loop runs to convergence under the bounded retreat protocol. |
|
|
109
|
+
| `--open-loop` | Flag | No | Enable dynamic open-loop "dreaming" orchestration — independent critique agents re-fan across nuance classes between passes per `rules/agent-orchestration.md` rather than running a single fixed wave. |
|
|
110
|
+
| `--autonomous` | Flag | No | Opt into continuous pass-to-pass advancement without a per-pass-boundary halt. Default: halt at each pass boundary and confirm, per `rules/agnostic-posture.md` + `rules/context-management.md` §4A. Destructive remediations stay per-target gated even under this flag. |
|
|
111
|
+
| `--verify-panel N` | Integer | No | Refute-by-default critics per surviving finding in the bespoke-critique fan-out (default: 3). |
|
|
112
|
+
| `--strict` | Flag | No | Promote every advisory elevation finding to a blocking finding. Under `--strict`, elevation is complete only when zero sub-SOTA surfaces and zero open critiques remain. |
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Workflow — Nine Elevation Stanzas
|
|
117
|
+
|
|
118
|
+
1. **Full ingest and nuance enumeration.** Walk the entire target repository **folder-by-folder, file-by-file, line-by-line** and enumerate every nuance into the per-nuance stop inventory below — extended comprehensively per the "etc." extension rule. No surface is exempt: root files, narratives, the website / portal and its source, the documentation tree (developer guide, user guide, tutorials, runbooks, quick-start, demos), the test suite, the examples, the assets, and every other navigable nuance enter the inventory. The inventory is the loop's work list: each entry is one nuance the loop stops at, critiques, and remediates. Record it at `_inputs/elevate-inventory.md`.
|
|
119
|
+
|
|
120
|
+
2. **Detect via the audit fortress.** Dispatch `/audit --dimensions <scope>` per `commands/audit.md` (or scope it to the technically-auditable subset of `--dimensions`); consume its synthesized, deduplicated, severity-triaged, already-refute-by-default-verified findings as the technically-auditable portion of the nuance inventory. The detect logic and its finding-verification are `/audit`'s — `/elevate` reuses, never reimplements, them. This is the redundancy-suppression core: code, architecture, docs, security, dependency, supply-chain, threat-model, performance, accessibility, and developer-experience nuances are detected here, not re-critiqued in stanza 3.
|
|
121
|
+
|
|
122
|
+
3. **Independent bespoke critique fan-out.** Deploy genuinely-independent critique agents through the workflow harness (`skills/workflow/SKILL.md`) per `rules/agent-orchestration.md` — a Research/Audit team per nuance class, each agent with an explicit return contract, non-overlapping scope, and isolation per the orchestration rule's §5 — over **only the SOTA-and-elevation dimensions no audit pass covers**: narrative storytelling, naming uniformity across cohorts, cross-sync and propagation coherence, consolidation and modularity at the whole-repo scale, aesthetic SOTA (Filter 5), visualization / tabulation / stats opportunities, extensibility and scalability, normalization and uniformity, and whole-repo anti-orphanism. Each agent zero-trust-critiques its assigned nuances, returning a per-nuance verdict (survives-with-evidence / remediate / eliminate) with cited authoritative sources; every load-bearing finding clears an adversarial refute-by-default verification pass (`--verify-panel N` critics across distinct lenses) before it survives. Independence is load-bearing: agents critique without anchoring on one another's verdicts.
|
|
123
|
+
|
|
124
|
+
4. **Per-nuance zero-trust critique.** For each nuance — whether `/audit`-detected or bespoke — critique every concern across the cross-dimension axes; never accept a nuance because it exists. A nuance survives only with cited authoritative evidence per `rules/interactive-questions-canonical-shapes.md` §3.2.1; otherwise it routes to remediation.
|
|
125
|
+
|
|
126
|
+
5. **Remediation with the most appropriate action.** For each non-surviving nuance, decide and apply the most appropriate action from the remediation vocabulary — extended comprehensively per the "etc." extension rule — routed through the dimension-native primitive: minimal-diff in-place edits through the `surgical-guard` skill (`rules/surgical-manipulation.md`); behavior-preserving restructures through the `refactor-extract` skill gated test-green-before / test-green-after by the `test-authoring` skill (`rules/refactoring-discipline.md`); missing or sub-SOTA figures, charts, and diagrams through the `diagram-authoring` skill (`rules/visual-leverage.md`); prose, docstrings, and documentation through the `document-authoring` skill (`rules/code-craft-markdown.md` + `rules/living-docs.md`); leaked secrets, dependency CVEs, and broad security lifts through `/fortress`'s remediation primitives where a hardening loop is the right fit. Mechanical remediations (a dead link, a host-ratified formatting drift) apply in place under the carve-out at `rules/authority-inquiry.md`; destructive remediations (eliminate, consolidate, relocate, redesign-replace, rename, move) clear a per-target confirmation per `rules/interactive-questions.md` §6 first. Every remediation cites `file:line`, the authoritative source, and the elevation rationale; is disclosed per `rules/disclosure-ledger.md`; and lifts the surface toward SOTA per `rules/sota-elevation.md` while preserving the nuance's original core intent.
|
|
127
|
+
|
|
128
|
+
6. **Surface elevation opportunities.** Beyond remediating findings, run the Beyond-Mission Recommendation Grant: surface every elevation / enhancement opportunity the critique revealed — a missing visualization, a consolidation, a modularity boundary, an extensibility seam, a newcomer-facing documentation surface — each disclosed per `rules/disclosure-ledger.md` and routed for the operator's decision through the structured-inquiry channel where judgment-dependent, applied in place where mechanically safe. This is the command's standing "research for further opportunities" obligation; a pass that remediates only the literal findings and surfaces no opportunity has under-elevated.
|
|
129
|
+
|
|
130
|
+
7. **Open-loop re-convergence.** Re-run stanzas 2–6 in dynamic open-loop "dreaming" passes per `rules/agent-orchestration.md` — re-dispatch `/audit` to re-detect over the remediated tree, re-fan the bespoke agents across the nuance inventory, surfacing nuances the prior pass anchored past — until the tree is cross-coherent at SOTA across every dimension and zero open critiques remain. The loop is bounded: it stops at convergence, at the `--max-passes N` cap, or when a pass surfaces zero new findings; on cap exhaustion it emits the residual nuance set as a finding rather than looping unbounded (iteration-safety per `rules/planning-techniques.md` §1). Under `--autonomous` the passes advance without a per-pass-boundary halt; otherwise each boundary confirms.
|
|
131
|
+
|
|
132
|
+
8. **Same-change-set propagation.** Propagate every remediation across the whole reference graph in the same change-set per `rules/propagation.md` — every dependent reference (code, tests, docs, README files, `AGENTS.md`, `CLAUDE.md`, the website, examples, CHANGELOG, harness-rendered templates, the harness registry, plugin manifests, source-generated reference pages, and cross-rule bindings per `rules/bidirectional-binding.md`) is updated so nothing drifts, and every emerging or existing merit / feature / change is naturally highlighted everywhere applicable so future readers — both AI coding agents and newcomer-level end users — understand the project as one coherent whole. A remediation that lands without its reference updates is an orphan / half-edge finding per `rules/systemic-participation.md`, not a completed change.
|
|
133
|
+
|
|
134
|
+
9. **Trace-free production-ready culmination.** Run the Validation Gate (the fifteen-bar pre-emission gate per `rules/pre-emission-gate.md`) against the elevated tree; verify the cohorts the elevation touched through `/test-suite` (behavior coverage), `/eval` (language-model output quality, where the host carries one), and `/release-readiness` (the production-ready posture) as applicable; emit the elevation report with the per-dimension and per-axis attestation and every remediation and surfaced-opportunity outcome; hand the elevated tree to `/freshify` for the trace-free close; and close the session formally per `rules/session-closure.md` (Recommended Next Step + done/deferred ledger + verification attestation). Culmination is complete when the re-loop is clean, every change is propagated, the gate is green, the cohorts verify, and `/freshify` reports the tree trace-free.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Per-Nuance Stop Inventory
|
|
139
|
+
|
|
140
|
+
The loop stops at each single nuance across the whole project. The stop classes — a seed to extend comprehensively per the "etc." extension rule:
|
|
141
|
+
|
|
142
|
+
- **Files** — every source, narrative, configuration, and root file.
|
|
143
|
+
- **Folders** — every directory and its organization, naming, and placement.
|
|
144
|
+
- **Packages** — every source package, sub-package, and module boundary.
|
|
145
|
+
- **Root files** — the README files, `AGENTS.md`, `CLAUDE.md`, the license, the manifests, the CHANGELOG, and every top-of-tree singleton.
|
|
146
|
+
- **Website / portal** — the documentation site, its landing page, its theme, its UI/UX, its navigation, and its source.
|
|
147
|
+
- **Documentation** — the developer guide, the user guide, the tutorials, the runbooks, the guidelines, the quick-start, and the reference pages.
|
|
148
|
+
- **Docstrings & comments** — every public docstring and every "why-not-what" inline comment per the code-craft rules.
|
|
149
|
+
- **Examples & demos** — every runnable example, snippet, and demo surface.
|
|
150
|
+
- **Tests** — every test, fixture, and behavioral assertion, and the coverage of every critical path.
|
|
151
|
+
- **Figures** — every diagram, chart, and illustration.
|
|
152
|
+
- **Tables** — every tabular surface and its column / row coherence.
|
|
153
|
+
- **Audio · Video · Images** — every audio asset, every video asset and animated demo, every raster and vector image.
|
|
154
|
+
- **Styles & designs** — every stylesheet, theme token, layout, component design, and visual composition.
|
|
155
|
+
- **Narratives** — every prose surface, description, tagline, and copy line.
|
|
156
|
+
- **Assets & logos** — every static asset, fixture, bundled resource, logo, and brand mark across the README, the website, and the asset tree.
|
|
157
|
+
- **Presentations** — every slide deck, demo, and presentation surface.
|
|
158
|
+
- **Implementations** — every code path, function, contract, and interface.
|
|
159
|
+
- **… (extend)** — the `.github/` folder, the source-forge metadata, every CI surface, every acronym and term, and every other navigable nuance the project carries.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Cross-Dimension Critique Axes
|
|
164
|
+
|
|
165
|
+
Each nuance is zero-trust-critiqued across the full axis list. To suppress redundancy, the axes split into two tiers: the **audit-detected tier** (detected by dispatching `/audit` per stanza 2 — `/elevate` consumes the findings, never re-derives them) and the **`/elevate`-bespoke tier** (the SOTA-and-elevation dimensions no audit pass covers, critiqued in stanza 3). Each tier is a seed to extend comprehensively per the "etc." extension rule.
|
|
166
|
+
|
|
167
|
+
**Audit-detected tier** — owned by the eleven first-class passes, dispatched through `/audit`:
|
|
168
|
+
|
|
169
|
+
| Axis cluster | Owning audit pass | Critiques |
|
|
170
|
+
| ------------ | ----------------- | --------- |
|
|
171
|
+
| Code quality · naming · complexity · magic numbers · comment quality | `/code-review` + `/code-audit` | Per-file and cross-file code craft against the four code-craft rules and the ten quality dimensions; hidden coupling, dead code, duplicates. |
|
|
172
|
+
| Architecture · layering · modularity | `/architecture-review` | Architectural integrity against the clean-architecture layer discipline (`rules/clean-architecture-layers.md`). |
|
|
173
|
+
| Documentation · links · citations · public-API coverage | `/docs-review` | Markdown code-craft + ten-dimension prose review, link integrity, citation completeness. |
|
|
174
|
+
| Security · injection · secrets · deserialization · path-traversal | `/security-audit` + `/threat-model-audit` | OWASP ASVS / Top 10 / CWE + STRIDE / PASTA trust boundaries and residual risk. |
|
|
175
|
+
| Dependencies · CVEs · pins · provenance · SBOM · signing | `/dependency-audit` + `/supply-chain-audit` | Per-dependency license / CVE / deprecation + SLSA + Sigstore + SBOM posture. |
|
|
176
|
+
| Performance · budgets | `/perf-audit` | The per-class budgets in `rules/performance-discipline.md` via the benchmark drivers. |
|
|
177
|
+
| Accessibility | `/a11y-audit` | WCAG 2.2 AA — semantic HTML, ARIA, keyboard-navigability, contrast, alt-text. |
|
|
178
|
+
| Developer experience · CLI ergonomics · install flow | `/ux-review` | clig.dev + NN/g heuristics + GNU coreutils conventions. |
|
|
179
|
+
| Test rigor · coverage | `/test-suite` | Behavior-shaped coverage of critical paths. |
|
|
180
|
+
| Language-model output quality | `/eval` | Model-agnostic evaluation campaign, where the host carries one. |
|
|
181
|
+
|
|
182
|
+
**`/elevate`-bespoke tier** — critiqued only here (no audit pass covers them):
|
|
183
|
+
|
|
184
|
+
- **Currency** — reflects current SOTA, not a superseded convention?
|
|
185
|
+
- **Cross-sync** — synchronized with its dependents (CLAUDE.md, AGENTS.md, docs, website, tests, examples, README files) per `rules/propagation.md`?
|
|
186
|
+
- **Storytelling & clarity** — the narrative reads as one coherent, intuitive product story a newcomer-level end user follows on first pass?
|
|
187
|
+
- **Naming uniformity** — identifier and file/folder naming reveal intent and match the convention uniformly across cohorts per `rules/persistent-conventions-vigilance.md`?
|
|
188
|
+
- **Consolidation & modularity** — free of whole-repo redundancy and duplication; concerns drawn into clean module boundaries; fragmentation healed?
|
|
189
|
+
- **Synthesis & coherence** — belongs to the same mental model as its neighbors; the whole tree composes as one united surface?
|
|
190
|
+
- **Interdependence & weaving** — wired and cross-linked to its siblings with reciprocal bindings per `rules/bidirectional-binding.md`; harmony, connectiveness, correlation across the whole?
|
|
191
|
+
- **Visualization & tabulation** — structural subject matter carries a current-reality diagram, and dense data carries a table, per `rules/visual-leverage.md`; analysis and stats are surfaced where they aid understanding?
|
|
192
|
+
- **Naturalness & normalization** — narrative reads as natural, human-authored product prose per `rules/plain-language.md`; surfaces normalized to one uniform voice and convention?
|
|
193
|
+
- **Definitiveness & airtightness** — tight, precise, airtight, with no hedging, no gaps, no contradiction per `rules/definitiveness.md`?
|
|
194
|
+
- **Scientific rigor, validity & soundness** — every claim is evidence-based, falsifiable where applicable, sound on its own terms, and free of folklore per `rules/ten-dimension-check.md` dimension 1 + `rules/authoritative-referencing.md`?
|
|
195
|
+
- **Agnosticism & abstraction** — privileges no harness, model, or tool; abstracts cleanly per `rules/agnostic-posture.md`?
|
|
196
|
+
- **Harness-component alignment** — every shipped harness component (skill, command, agent, hook, MCP surface) stays aligned with its per-harness latest official documentation and best-practices, carries durable cross-linked reusable structure, presets no model / effort / permissionMode and privileges no single harness (MAXIMAL agnosticism), and renders an expected, stable output / message structure generalized across all harnesses (determinism) — audited per the ecosystem-audit Harness-Component Alignment Dimension at `skills/ecosystem-audit/references/procedure.md` (which cites `rules/harness-adapter-shape.md` + `rules/agent-capability-discipline.md` + `rules/agnostic-posture.md` + `rules/determinism.md`). Detected through `/audit`, never re-derived here.
|
|
197
|
+
- **Extensibility & scalability** — accommodates future growth without rework; the seams future work needs are drawn?
|
|
198
|
+
- **Anti-orphanism** — reachable in the reference graph, with a consumer, an index entry, and producer attribution per `rules/systemic-participation.md`?
|
|
199
|
+
- **Backward-compatibility elimination** — carries no legacy or backward-compatibility cruft retained only to honor the past; the current form stands alone per `rules/freshness-facade.md`?
|
|
200
|
+
- **Aesthetic SOTA** — beyond mechanical conformity, the surface feels inevitable once seen (Filter 5) per `rules/sota-elevation.md`?
|
|
201
|
+
- **… (extend)** — professionalism, technicality, rigor, mastering, sophistication / contemporaneousness, conciseness, proofreading, precision, freshness, fidelity, robustness, correctness, intuition, recognizability, understandability, and every other dimension the underlying intent implies. The seven-axs-of-breadth taxonomy (Architecture · Concurrency · Performance · Security · Testing · Tooling · Observability) is the standing technical-axis frame.
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Remediation Action Vocabulary
|
|
206
|
+
|
|
207
|
+
For each non-surviving nuance, decide the most appropriate remediation. The action vocabulary — a seed to extend comprehensively per the "etc." extension rule:
|
|
208
|
+
|
|
209
|
+
**restructure · merge · develop · create · implement · extend · scaffold · support · refine · rename · relate · reword · rework · re-articulate · justify · reason · rationalize · reposition · eliminate · consolidate · redesign · visualize · tabulate · animate · move · relocate · refactor · rewrite · organize · naturalize · simplify · reference-cite · reconcile · restyle · reformat · correct · articulate · proofread · standardize · normalize · modularize · document · test · diagram · … (extend)** — and every other action the most appropriate remediation for a given nuance implies. Each action routes through its dimension-native primitive per stanza 5, lifts the surface toward SOTA per `rules/sota-elevation.md`, and preserves the nuance's original core intent; a remediation that trades away the intent is non-conformant.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Mandates
|
|
214
|
+
|
|
215
|
+
| Mandate | Application |
|
|
216
|
+
| ------- | ----------- |
|
|
217
|
+
| **Audit reuse** | The technically-auditable dimensions are detected by dispatching `/audit` (and its eleven first-class passes), never re-critiqued inline. `/elevate` consumes verified findings; reimplementing an audit's logic is a redundancy defect. Cited, not duplicated. |
|
|
218
|
+
| **Agent Orchestration** | The multi-agent, open-loop, zero-trust critique fan-out is dispatched per `rules/agent-orchestration.md` through the workflow harness `skills/workflow/SKILL.md` — genuinely-independent agents, explicit return contracts, non-overlapping scope, isolation, adversarial refute-by-default verification, and open-loop re-convergence. Opt-in and default-off per `rules/multi-agent-workflow.md`. Cited, not duplicated. |
|
|
219
|
+
| **SOTA Elevation** | Every surface is lifted to the upper bound per `rules/sota-elevation.md` + `rules/sota-elevation-exemplars.md` — the eight SOTA evaluation surfaces, the named-exemplar discipline, and the `MAXIMAL` upper-bound calibration. Cited, not duplicated. |
|
|
220
|
+
| **Visual leverage** | Structural subject matter draws a current-reality diagram and dense data draws a table per `rules/visual-leverage.md`, authored through the `diagram-authoring` skill. |
|
|
221
|
+
| **Authoritative referencing** | Every surviving nuance and every remediation cites an authoritative / official / current source per `rules/authoritative-referencing.md`, `rules/source-accessibility.md`, and `rules/interactive-questions-canonical-shapes.md` §3.2.1; folklore is non-conformant. |
|
|
222
|
+
| **M1 — Host Agnosticism** | Every host convention is discovered per `rules/host-discovery.md`, never assumed; the command presets no model and no effort, so elevation runs identically under any harness and capability tier. |
|
|
223
|
+
| **M5 — Authority** | Every ambiguity routes through `rules/authority-inquiry.md`; every claim cites an authoritative source; every destructive remediation clears a per-target confirmation per `rules/interactive-questions.md` §6. |
|
|
224
|
+
| **M2 — Disclosure & plain-language** | Every amendment / extension / refinement and every surfaced opportunity is disclosed per `rules/disclosure-ledger.md`; removed process-narration is restored to natural product voice per `rules/plain-language.md`. |
|
|
225
|
+
| **Propagation** | Every remediation propagates in the same change-set to every dependent reference across the whole reference graph per `rules/propagation.md`; an emerging or existing merit / feature / change is highlighted everywhere applicable (README, `AGENTS.md`, `CLAUDE.md`, docs, website, tests, examples, CHANGELOG, harness-rendered templates, registry, plugin manifests, source-generated reference pages, cross-rule bindings) so both AI coding agents and newcomer-level end users understand the whole project. Cited, not duplicated. |
|
|
226
|
+
| **Surgical manipulation & clean-room** | Every in-place edit is a minimal anchor-bounded diff through `surgical-guard` per `rules/surgical-manipulation.md`; every rewrite re-derives clean-room per `rules/clean-room-generation.md` §3. |
|
|
227
|
+
| **Refactoring discipline** | Every behavior-preserving restructure is test-gated (green-before / green-after) and one-concern-at-a-time per `rules/refactoring-discipline.md`; a behavior change disguised as a refactor is a defect. |
|
|
228
|
+
| **Living docs** | Every documented public-surface change updates its docs page in the same change-set per `rules/living-docs.md`. |
|
|
229
|
+
| **Expertise & ten dimensions** | Each nuance is read for intent and amended proactively per `rules/expertise-posture.md`; each surface passes the ten quality dimensions per `rules/ten-dimension-check.md`. |
|
|
230
|
+
| **Iteration safety** | The open-loop re-convergence carries the `--max-passes` cap and a bounded retreat per `rules/planning-techniques.md` §1; an unbounded loop is a finding. |
|
|
231
|
+
| **M4 — Self-Application** | The elevated tree and the elevation report pass the fifteen-bar pre-emission gate per `rules/pre-emission-gate.md` before the report is finalized and before the `/freshify` hand-off; the cohorts verify through `/test-suite`, `/eval`, and `/release-readiness` as applicable. |
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Output
|
|
236
|
+
|
|
237
|
+
- The elevated working tree (in-place by default), cross-coherent at SOTA, with every remediation, surfaced-opportunity, and confirmation outcome recorded.
|
|
238
|
+
- The elevation report at `_outputs/elevate-report.md` (executive summary + per-nuance critique verdicts citing the consumed `/audit` findings + remediation index with action and rationale + surfaced-opportunity index + per-dimension attestation + per-axis attestation + disclosure ledger + SOTA-elevation disclosure markers + validation-gate attestation + cohort-verification verdicts + bindings).
|
|
239
|
+
- An optional nuance inventory at `_inputs/elevate-inventory.md` (the Input Ingest enumeration).
|
|
240
|
+
- A hand-off to `/freshify` against the elevated tree for the trace-free culmination, and a formal session close per `rules/session-closure.md`.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Decision Tree
|
|
245
|
+
|
|
246
|
+
```mermaid
|
|
247
|
+
%%{ init: { "theme": "neutral" } }%%
|
|
248
|
+
%% verified: 2026-06-23 %%
|
|
249
|
+
%% provenance: commands/elevate.md §Workflow %%
|
|
250
|
+
%% cross-reference: commands/audit.md (detect front) + rules/agent-orchestration.md (orchestration) + rules/sota-elevation.md (elevation target) + commands/freshify.md (culmination) %%
|
|
251
|
+
flowchart TD
|
|
252
|
+
Start[Target repository ingested] --> Enum[Enumerate every nuance into the stop inventory]
|
|
253
|
+
Enum --> Detect[Detect: dispatch /audit over the technically-auditable dimensions · consume verified findings]
|
|
254
|
+
Detect --> Fan[Fan out independent bespoke critique agents over the SOTA/elevation dimensions no audit covers]
|
|
255
|
+
Fan --> Stop{Stop at next nuance}
|
|
256
|
+
Stop --> Crit[Zero-trust critique across the cross-dimension axes]
|
|
257
|
+
Crit --> Q1{Survives with cited authoritative evidence?}
|
|
258
|
+
Q1 -->|yes| More
|
|
259
|
+
Q1 -->|no| Q2{Remediation destructive?}
|
|
260
|
+
Q2 -->|mechanically safe| Fix[Apply most-appropriate action via dimension-native primitive · cite file:line + source · disclose]
|
|
261
|
+
Q2 -->|destructive| Conf[Route per-target confirmation · default non-destructive]
|
|
262
|
+
Fix --> More{More nuances this pass?}
|
|
263
|
+
Conf --> More
|
|
264
|
+
More -->|yes| Stop
|
|
265
|
+
More -->|no| Opp[Surface elevation opportunities · disclose · route for operator decision]
|
|
266
|
+
Opp --> Q3{Cross-coherent at SOTA · zero open critiques · within max-passes?}
|
|
267
|
+
Q3 -->|residual findings| Detect
|
|
268
|
+
Q3 -->|converged| Prop[Propagate every change across the reference graph · highlight emerging merits]
|
|
269
|
+
Prop --> Gate[Run fifteen-bar gate · verify cohorts via /test-suite · /eval · /release-readiness · emit elevation report]
|
|
270
|
+
Gate --> Hand[Hand off elevated tree to /freshify for trace-free culmination · close session formally]
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Recommended Next Step
|
|
276
|
+
|
|
277
|
+
**Invoke `/freshify` against the elevated tree** to culminate the project trace-free and production-ready — `/elevate` lifts every surface to SOTA, and the freshening core finalizes the clean, current-version-only close per `rules/production-ready-prs.md`.
|
|
278
|
+
|
|
279
|
+
## Bindings (§0.j five-direction)
|
|
280
|
+
|
|
281
|
+
- **Drives →** The elevated working tree and the elevation report (consumed by `/freshify` for the trace-free culmination). The nine elevation stanzas (full ingest · detect-via-audit · independent bespoke critique fan-out · per-nuance zero-trust critique · most-appropriate remediation · surface elevation opportunities · open-loop re-convergence · same-change-set propagation · trace-free culmination). The per-nuance stop inventory, the two-tier cross-dimension critique axes, and the remediation action vocabulary. The same-change-set propagation of every remediation across the whole reference graph per `rules/propagation.md`. The fifteen-bar pre-emission gate and the cohort-verification (`/test-suite`, `/eval`, `/release-readiness`) at the Validation Gate.
|
|
282
|
+
- **Satisfies →** The consuming suite's elevation slot. The `commands/README.md` command catalog's Deployment/elevation row for `/elevate` (the registry entry that ratifies this command's place in the slash-command catalog). The remediation route the report-only `/audit` and the broad-lift route from `/fortress` both depend on. The SOTA-elevation upper-bound posture across every project surface.
|
|
283
|
+
- **Established by ↑** The `commands/README.md` command catalog. `commands/audit.md` (the report-only detect front this command consumes and remediates). `rules/agent-orchestration.md` + `skills/workflow/SKILL.md` (the orchestration method and deep workflow procedure this command dispatches against). `rules/sota-elevation.md` (the elevation target this command drives every surface toward). `rules/cognitive-identity.md` §1 seven-axs-of-breadth taxonomy (the standing axis-of-attention frame).
|
|
284
|
+
- **Gated by ←** The repository's elevation-surface presence (a resolvable working tree). The host's ratified conventions discovered at Input Ingest per `rules/host-discovery.md`. The per-target confirmation contract (every destructive remediation clears a structured-inquiry confirmation before acting). The `--autonomous` opt-in for continuous pass-to-pass advancement. The bounded open-loop iteration-safety contract (`--max-passes N` plus the convergence and zero-new-findings stop conditions). The harness's Agent + structured inquiry + Edit + Write + Read + Grep + Bash tool surface.
|
|
285
|
+
- **Cross-bound with ↔** `commands/audit.md` (the report-only detect front whose verified findings this command consumes and remediates — `/audit` reports, `/elevate` remediates). The eleven first-class audit/review passes `commands/code-review.md` + `commands/code-audit.md` + `commands/architecture-review.md` + `commands/docs-review.md` + `commands/security-audit.md` + `commands/dependency-audit.md` + `commands/supply-chain-audit.md` + `commands/threat-model-audit.md` + `commands/perf-audit.md` + `commands/a11y-audit.md` + `commands/ux-review.md` (the audit-detected critique tier, dispatched through `/audit`, never reimplemented). `commands/test-suite.md` + `commands/eval.md` + `commands/release-readiness.md` (the cohort-verification surfaces at the culmination). `commands/fortress.md` (the closed-loop hardening wrapper that routes broad SOTA lifts here — `/fortress` hardens security/production-scoped to a release-gated state and dispatches scoped `/elevate` for broad whole-repo elevation). `commands/freshify.md` (the freshening core that consumes this elevated tree for the trace-free, production-ready culmination). `skills/workflow/SKILL.md` (the deep workflow procedure the open-loop critique runs through). `skills/surgical-guard/SKILL.md` + `skills/refactor-extract/SKILL.md` + `skills/test-authoring/SKILL.md` + `skills/diagram-authoring/SKILL.md` + `skills/document-authoring/SKILL.md` (the dimension-native remediation primitives). `rules/agent-orchestration.md` + `rules/multi-agent-workflow.md` (the orchestration method and the opt-in default-off capability surface). `rules/sota-elevation.md` + `rules/sota-elevation-exemplars.md` (the elevation target every remediation lifts toward; cited, never duplicated). `rules/visual-leverage.md` (the visualization / tabulation axis). `rules/host-discovery.md` (M1 — every host convention discovered, never assumed). `rules/authority-inquiry.md` (every ambiguity and every destructive-remediation target routes through the canonical channel). `rules/interactive-questions.md` (§6 — every destructive remediation's per-target confirmation routes through the structured-inquiry channel). `rules/option-annotation.md` + `rules/interactive-questions-canonical-shapes.md` (§3.2.1 — every surviving nuance and every remediation cites a concrete-driver authoritative source). `rules/authoritative-referencing.md` + `rules/source-accessibility.md` (the cite-the-source / trust-outranks-reachability disciplines). `rules/planning-techniques.md` (§1 — the open-loop iteration-safety contract bounds the re-convergence loop). `rules/propagation.md` (every remediation propagates in the same change-set to every dependent reference across the whole reference graph; emerging merits highlighted everywhere applicable). `rules/bidirectional-binding.md` (the interdependence / weaving / cross-linking axis). `rules/surgical-manipulation.md` + `rules/clean-room-generation.md` (minimal-diff edits and clean-room rewrites). `rules/refactoring-discipline.md` (every behavior-preserving restructure is test-gated and one-concern-at-a-time). `rules/living-docs.md` (documented-surface changes update their docs page in the same change-set). `rules/ten-dimension-check.md` + `rules/expertise-posture.md` (the ten quality dimensions and the read-intent / amend-proactively posture). `rules/definitiveness.md` (the tightness / airtightness / precision axis). `rules/clean-architecture-layers.md` (the modularity / architecturality axis, detected through `/architecture-review`). `rules/systemic-participation.md` (the anti-orphanism and structurality axes — no orphan survives a pass; new surfaces declare their reference-graph place). `rules/freshness-facade.md` + `rules/plain-language.md` (the backward-compatibility-elimination and naturalness axes). `rules/persistent-conventions-vigilance.md` (naming and convention coherence across every elevated surface). `skills/ecosystem-audit/references/procedure.md` (the Harness-Component Alignment Dimension the Harness-component-alignment critique axis references rather than re-derives — per-harness contemporary alignment, durable cross-linked reusable structure, MAXIMAL agnosticism, and cross-harness determinism, citing `rules/harness-adapter-shape.md` + `rules/agent-capability-discipline.md` + `rules/agnostic-posture.md` + `rules/determinism.md`). `rules/etc-extension.md` (the "etc." extension rule — every enumerated seed is grown comprehensively). `rules/disclosure-ledger.md` (every amendment and surfaced opportunity disclosed with cited rationale). `rules/pre-emission-gate.md` (fifteen-bar validation before the `/freshify` hand-off). `rules/session-closure.md` (the formal session close at culmination). `rules/cognitive-identity.md` (the Five Cognitive Filters and the seven-axs taxonomy). `rules/agnostic-posture.md` (model- and effort-agnostic orchestration; no preset imposed).
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "eval"
|
|
3
|
+
version: "0.1.0"
|
|
4
|
+
updated: "2026-06-16"
|
|
5
|
+
description: "Model-agnostic language-model evaluation campaign. Defines an evaluation dataset and scorer using the eval-harness skill, runs a candidate model or prompt over the dataset, scores every output with the prompt-evaluator agent, aggregates campaign metrics plus a per-category breakdown, and emits a report that surfaces regressions against the prior baseline. Operates against any model provider — no single vendor is assumed; the dataset, scorer, and candidate endpoint are all operator-supplied. Output lands at the consuming suite's `_inputs/eval-findings.md` with per-category scores, aggregate metrics, and a regression ledger ready for downstream release-readiness review."
|
|
6
|
+
argument-hint: "[--dataset PATH] [--scorer NAME]"
|
|
7
|
+
disable-model-invocation: true
|
|
8
|
+
portability: "universal"
|
|
9
|
+
allowed-tools: "*"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- SPDX-License-Identifier: MIT -->
|
|
13
|
+
|
|
14
|
+
# /eval — LLM Evaluation Campaign
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Role
|
|
19
|
+
|
|
20
|
+
You are the user's **AI Engineer** and **Cognitive Insurgent** (`rules/cognitive-identity.md`) operating under an **evidence-graded posture**: every score is a measurement, every measurement traces to a dataset row, every aggregate carries a per-category breakdown. The candidate under evaluation is a language model or a prompt, and the harness is model-agnostic — the same campaign shape runs whether the candidate is a hosted API, a local weights checkpoint, or a prompt template swapped against a fixed model.
|
|
21
|
+
|
|
22
|
+
Apply Filter 1 (Obvious Purge): the obvious metric — overall pass rate — hides the binding regression; the per-category breakdown is where the signal lives. Apply Filter 5 (Aesthetic Demand): every evaluation finding has a shape — category · baseline · candidate · delta · driver. The seven-axs-of-breadth taxonomy at `rules/cognitive-identity.md` §1 frames the axs of attention; Testing and Observability are the binding axs for this command.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Instructions
|
|
27
|
+
|
|
28
|
+
Execute `/eval`. Define the evaluation dataset and scorer via the eval-harness skill, run the candidate model or prompt over the dataset, score every output with the prompt-evaluator agent, aggregate campaign metrics with a per-category breakdown, and emit the report at `_inputs/eval-findings.md` with regressions surfaced against the prior baseline.
|
|
29
|
+
|
|
30
|
+
**Reference Template:** Check `CLAUDE.md` for template path. Governance scales with seriousness per CLAUDE.md Section 4. Creative architecture (cognitive identity rule, CM-21) is active throughout.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Pipeline Contract
|
|
35
|
+
|
|
36
|
+
**Pipeline position.** Diagnostic surface for the model-quality review track. It consumes the evaluation dataset, the scorer definition, and the candidate endpoint, and emits the campaign findings artifact that release-readiness consumers read. The command mutates neither the candidate nor the dataset; the findings are read-only diagnostics.
|
|
37
|
+
|
|
38
|
+
**Handoff Manifest.**
|
|
39
|
+
|
|
40
|
+
- **Consumed.** The operator-supplied evaluation dataset (`--dataset PATH`), the scorer definition (`--scorer NAME`), and the candidate model-or-prompt endpoint. When the consuming suite carries a prior baseline at `_inputs/eval-baseline.md`, it is read as the regression comparand.
|
|
41
|
+
- **Emitted.** The campaign findings artifact at `_inputs/eval-findings.md` carrying aggregate metrics, the per-category breakdown, the regression ledger against the prior baseline, and the campaign's `verified:` date.
|
|
42
|
+
|
|
43
|
+
**Pre-flight inquiry set.** Phase 1 (Define) emits the typed inquiry set per `rules/authority-inquiry.md` when the dataset path, the scorer choice, or the candidate endpoint is ambiguous — the dataset lacks a category column, the scorer name resolves to more than one definition, or the candidate endpoint is undeclared. Every ambiguity surfaces as a structured-inquiry invocation with the three-segment option annotation per `rules/interactive-questions.md` §3. No model provider is assumed; the candidate endpoint is always operator-ratified, never invented.
|
|
44
|
+
|
|
45
|
+
**Pre-emission gate.** Phase 5 (Report) runs the fifteen-bar pre-emission gate per `rules/pre-emission-gate.md` against the candidate findings artifact before promotion. The gate attestation block is recorded inside the emitted artifact. Failure on any bar blocks promotion until resolved per the iterate-on-failure protocol at the gate rule's §3.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Foundational Stanzas
|
|
50
|
+
|
|
51
|
+
The four standing surfaces every operator inherits per the canonical project voice at `AGENTS.md` plus the active harness mirror.
|
|
52
|
+
|
|
53
|
+
### Refusal & Escalation
|
|
54
|
+
|
|
55
|
+
REFUSE any task whose scope exceeds this command's mission (defining a dataset and scorer, running a candidate over the dataset, scoring outputs, and emitting the campaign findings artifact). Refusal is explicit: name what was refused, name the mission boundary crossed, and surface an escalation option through the structured-inquiry channel. REFUSE evaluation against a dataset whose row schema lacks the fields the scorer requires without operator ratification of an alternate schema. REFUSE authoring model changes or prompt rewrites — the surface is diagnostic only; remediation routes through a downstream change-set.
|
|
56
|
+
|
|
57
|
+
### Output Surface
|
|
58
|
+
|
|
59
|
+
The findings artifact lands at the consuming suite's `_inputs/eval-findings.md` per the suite-locality invariant at `rules/context-management.md` §2.6.1. Plan-internal files are banner-exempt per the `.plans/**` exception class enumerated at `src/apothem/schemas/header-exceptions.txt`; the injector at `scripts/inject-header.py` is therefore NOT invoked on emission. NEVER write the findings artifact outside the suite folder; NEVER write to a global plans directory under any harness's config root from a downstream-project context; NEVER write to any other global-ecosystem location; NEVER mutate the candidate endpoint or the evaluation dataset.
|
|
60
|
+
|
|
61
|
+
### File-Authoring Contract
|
|
62
|
+
|
|
63
|
+
The findings artifact is banner-exempt per the `.plans/**` exception class; the byte-exact fixture and the exception list live at `src/apothem/schemas/header-exceptions.txt`. The command never invokes the authorship-header injector (`scripts/inject-header.py`) on its own emissions. When a finding cites a dataset row or a candidate output, the citation is documentary; the source is never written by this command.
|
|
64
|
+
|
|
65
|
+
### Structured Inquiry on Ambiguity
|
|
66
|
+
|
|
67
|
+
When uncertain about the dataset schema, the scorer definition, the candidate endpoint, the category taxonomy, or a borderline score-boundary call, route the resolution through the structured-inquiry channel with the three-segment option annotation per `rules/interactive-questions.md` §3. Free-form prose questions as primary input are forbidden. NEVER fabricate a score — every score traces to a dataset row scored by the prompt-evaluator agent. NEVER assume a model provider — the candidate endpoint is operator-supplied per `rules/host-discovery.md`.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Inputs
|
|
72
|
+
|
|
73
|
+
| Argument | Type | Required | Description |
|
|
74
|
+
| -------- | ---- | -------- | ----------- |
|
|
75
|
+
| `--dataset PATH` | Path | No | Path to the evaluation dataset (JSONL / CSV / Parquet). MUST carry an input column, an expected column where the scorer is reference-based, and a category column for the per-category breakdown. When omitted, Phase 1 surfaces the dataset choice as an inquiry. |
|
|
76
|
+
| `--scorer NAME` | Enum | No | Scorer to apply — exact-match · semantic-similarity · rubric-graded · pairwise-preference · operator-defined. When omitted, Phase 1 surfaces the scorer choice as an inquiry with the candidate set annotated per `rules/option-annotation.md`. |
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Workflow — Five Campaign Phases
|
|
81
|
+
|
|
82
|
+
1. **Define the eval dataset + scorer.** Load the dataset via the eval-harness skill at `skills/eval-harness/SKILL.md` — validate the row schema (input · expected · category), resolve the scorer definition (`--scorer NAME`), and confirm the candidate endpoint is operator-ratified. The harness emits a normalized campaign manifest the downstream phases consume; ambiguities surface as structured inquiries per `rules/authority-inquiry.md`.
|
|
83
|
+
2. **Run the candidate over the dataset.** Invoke the candidate model-or-prompt against every dataset row, recording the raw output and the per-row latency. The candidate endpoint is provider-agnostic — the harness wraps the call so the same campaign runs against any backend. Externalise the raw run log at `_inputs/eval-run-log.md`.
|
|
84
|
+
3. **Score outputs with the prompt-evaluator agent.** Dispatch the prompt-evaluator agent at `agents/prompt-evaluator.md` to score every candidate output against the scorer definition. Each return carries the per-row score, the score rationale, and the category tag, max 200 tokens per return (audit return budget). Scores are never estimated — every score traces to a dataset row.
|
|
85
|
+
4. **Aggregate metrics + per-category breakdown.** Compute the campaign aggregate (overall score, mean latency, score distribution) and the per-category breakdown (per-category score, per-category sample count, per-category variance). The per-category breakdown is the load-bearing surface — the aggregate hides category-level regressions.
|
|
86
|
+
5. **Report with regressions.** Emit the findings artifact at `_inputs/eval-findings.md` carrying the executive summary, the per-category measurement tables, the regression ledger against the prior baseline (`EVAL-<N>: <category> <delta> vs baseline`), and the validation-gate attestation. Apply incremental generation per `rules/large-file-generation.md` when the artifact exceeds 500 lines.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Mandates
|
|
91
|
+
|
|
92
|
+
| Mandate | Application |
|
|
93
|
+
| ------- | ----------- |
|
|
94
|
+
| CM-2 Zero Assumptions | Dataset, scorer, and candidate endpoint are operator-ratified; no provider is assumed. |
|
|
95
|
+
| CM-8 Bottleneck-First | The per-category breakdown identifies the binding regression, not the overall score. |
|
|
96
|
+
| M5 Authority | Every score traces to a dataset row; fabricated scores are non-conformant. |
|
|
97
|
+
| M7 Option Annotation | Scorer-choice inquiries carry the Recommended marker with concrete-driver rationale. |
|
|
98
|
+
| M9 Visual Leverage | Per-category measurement tables are the visual surface. |
|
|
99
|
+
| M15 Production-Ready | The regression ledger gates the candidate's release-readiness sign-off. |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Output
|
|
104
|
+
|
|
105
|
+
- The campaign findings artifact at `_inputs/eval-findings.md` (executive summary + per-category measurement tables + regression ledger + validation-gate attestation + bindings).
|
|
106
|
+
- The raw run log at `_inputs/eval-run-log.md` (Phase 2 per-row output and latency).
|
|
107
|
+
- The normalized campaign manifest at `_inputs/eval-manifest.md` (Phase 1 dataset + scorer + candidate-endpoint resolution).
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Decision Tree
|
|
112
|
+
|
|
113
|
+
```mermaid
|
|
114
|
+
%%{ init: { "theme": "neutral" } }%%
|
|
115
|
+
%% verified: 2026-06-16 %%
|
|
116
|
+
%% provenance: commands/eval.md §Workflow %%
|
|
117
|
+
%% cross-reference: skills/eval-harness/SKILL.md + agents/prompt-evaluator.md %%
|
|
118
|
+
flowchart TD
|
|
119
|
+
Start[/eval invoked] --> Q0{Dataset + scorer + candidate ratified?}
|
|
120
|
+
Q0 -->|no| Inquiry[Surface structured inquiry · rules/authority-inquiry.md]
|
|
121
|
+
Inquiry --> Q0
|
|
122
|
+
Q0 -->|yes| Define[Phase 1 · define dataset + scorer via eval-harness skill]
|
|
123
|
+
Define --> RunCand[Phase 2 · run candidate over dataset]
|
|
124
|
+
RunCand --> Score[Phase 3 · score outputs with prompt-evaluator agent]
|
|
125
|
+
Score --> Agg[Phase 4 · aggregate metrics + per-category breakdown]
|
|
126
|
+
Agg --> Q4{Per-category regression vs baseline?}
|
|
127
|
+
Q4 -->|yes| Ledger[Record regression in EVAL-N ledger]
|
|
128
|
+
Q4 -->|no| Clean[Record baseline-clean attestation]
|
|
129
|
+
Ledger --> Gate[Phase 5 · fifteen-bar pre-emission gate]
|
|
130
|
+
Clean --> Gate
|
|
131
|
+
Gate -->|fail| Iterate[Revise per gate §3 iterate-on-failure]
|
|
132
|
+
Iterate --> Gate
|
|
133
|
+
Gate -->|pass| Emit[Emit _inputs/eval-findings.md]
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Recommended Next Step
|
|
139
|
+
|
|
140
|
+
Invoke `/perf-audit` to measure the candidate endpoint's runtime against the per-class budgets once the model-quality campaign is clean; the regression ledger at `_inputs/eval-findings.md` is the prerequisite evidence the release-readiness sign-off consumes.
|
|
141
|
+
|
|
142
|
+
## Bindings (§0.j five-direction)
|
|
143
|
+
|
|
144
|
+
- **Drives →** The consuming suite's model-quality review slot. The eval-harness skill at `skills/eval-harness/SKILL.md` (every campaign drives it for dataset + scorer definition). The prompt-evaluator agent at `agents/prompt-evaluator.md` (every output is scored through it). The regression ledger that the release-readiness sign-off consumes. The remediation change-set that consumes the findings backlog (downstream, governed by `rules/production-ready-prs.md` same-change-set discipline).
|
|
145
|
+
- **Driven by ←** The operator-supplied evaluation dataset, scorer definition, and candidate endpoint. The prior baseline at `_inputs/eval-baseline.md` (the regression comparand).
|
|
146
|
+
- **Satisfies →** The consuming suite's model-quality review catalog. The Testing and Observability axs at `rules/cognitive-identity.md` §1 seven-axs-of-breadth taxonomy. The `commands/README.md` command catalog's Cohort-commands row for `/eval` (the registry entry that ratifies this command's place in the slash-command catalog).
|
|
147
|
+
- **Established by ↑** `rules/cognitive-identity.md` §1 seven-axs-of-breadth taxonomy (the Testing and Observability axs this command operationalizes). `rules/authority-inquiry.md` (the pre-flight inquiry surface for dataset / scorer / endpoint resolution). `rules/pre-emission-gate.md` (the fifteen-bar validation this command runs at Phase 5).
|
|
148
|
+
- **Gated by ←** The operator-ratified dataset, scorer, and candidate endpoint (no provider is assumed). The harness's Agent + structured inquiry + Bash + Read + Write tool surface. The eval-harness skill's dataset-schema validation (a malformed schema blocks Phase 1).
|
|
149
|
+
- **Cross-bound with ↔** `skills/eval-harness/SKILL.md` (the dataset + scorer definition surface this command drives). `agents/prompt-evaluator.md` (the per-output scoring agent this command dispatches at Phase 3). `commands/perf-audit.md` (sibling diagnostic command; `/eval` audits model quality, `/perf-audit` audits runtime). `rules/option-annotation.md` (every scorer-choice inquiry carries the Recommended marker with concrete-driver rationale). `rules/authority-inquiry.md` (every dataset / scorer / endpoint ambiguity routes through the canonical channel). `rules/host-discovery.md` (the candidate endpoint is discovered, never invented). `rules/pre-emission-gate.md` (Phase 5 fifteen-bar validation). `rules/large-file-generation.md` (incremental generation when the report exceeds 500 lines).
|