@event4u/agent-config 3.3.0 → 4.2.0
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/.agent-src/README.md +2 -2
- package/.agent-src/commands/agent-handoff.md +31 -2
- package/.agent-src/commands/agent-status.md +5 -5
- package/.agent-src/commands/agents/audit.md +8 -8
- package/.agent-src/commands/agents/init.md +25 -1
- package/.agent-src/commands/agents/optimize.md +3 -3
- package/.agent-src/commands/agents/user.md +1 -1
- package/.agent-src/commands/agents.md +1 -1
- package/.agent-src/commands/analyze-reference-repo.md +1 -1
- package/.agent-src/commands/check-current-md.md +8 -8
- package/.agent-src/commands/{compress.md → condense.md} +55 -55
- package/.agent-src/commands/context/create.md +7 -4
- package/.agent-src/commands/context/refactor.md +3 -1
- package/.agent-src/commands/feature/dev.md +1 -1
- package/.agent-src/commands/feature/explore.md +1 -1
- package/.agent-src/commands/feature/plan.md +10 -8
- package/.agent-src/commands/feature/refactor.md +3 -1
- package/.agent-src/commands/feature/roadmap.md +7 -4
- package/.agent-src/commands/fix/portability.md +3 -3
- package/.agent-src/commands/fix/refs.md +4 -4
- package/.agent-src/commands/ghostwriter.md +2 -2
- package/.agent-src/commands/memory/learn-low-impact.md +3 -3
- package/.agent-src/commands/module/explore.md +34 -8
- package/.agent-src/commands/optimize/agents-dir.md +9 -7
- package/.agent-src/commands/optimize/augmentignore.md +2 -2
- package/.agent-src/commands/optimize/skills.md +9 -9
- package/.agent-src/commands/post-as.md +1 -1
- package/.agent-src/commands/project-analyze.md +2 -2
- package/.agent-src/commands/project-health.md +3 -2
- package/.agent-src/commands/research/deep.md +1 -1
- package/.agent-src/commands/research/report.md +1 -1
- package/.agent-src/commands/research.md +1 -1
- package/.agent-src/commands/roadmap/ai-council.md +1 -1
- package/.agent-src/commands/roadmap/create.md +9 -4
- package/.agent-src/commands/rule-compliance-audit.md +1 -1
- package/.agent-src/commands/upstream-contribute.md +14 -14
- package/.agent-src/commands/video/from-script.md +1 -1
- package/.agent-src/commands/video/scene.md +1 -1
- package/.agent-src/commands/video/stitch.md +1 -1
- package/.agent-src/commands/video/storyboard.md +1 -1
- package/.agent-src/commands/video.md +1 -1
- package/.agent-src/contexts/augment-infrastructure.md +1 -1
- package/.agent-src/contexts/authority/commit-mechanics.md +15 -0
- package/.agent-src/contexts/authority/kernel-rule-edits.md +3 -3
- package/.agent-src/contexts/authority/scope-mechanics.md +1 -1
- package/.agent-src/contexts/communication/rules-auto/augment-source-of-truth-mechanics.md +28 -28
- package/.agent-src/contexts/communication/rules-auto/skill-quality-mechanics.md +4 -4
- package/.agent-src/contexts/communication/rules-auto/think-before-action-mechanics.md +2 -2
- package/.agent-src/contexts/contracts/artifact-engagement-flow.md +6 -6
- package/.agent-src/contexts/contracts/command-suggestion-flow.md +3 -3
- package/.agent-src/contexts/contracts/emergency-triage-block.md +4 -4
- package/.agent-src/contexts/contracts/frugality-charter.md +3 -3
- package/.agent-src/contexts/documentation-hierarchy.md +14 -7
- package/.agent-src/contexts/execution/autonomy-examples.md +1 -1
- package/.agent-src/contexts/execution/cheap-question-mechanics.md +39 -2
- package/.agent-src/contexts/execution/roadmap-process-loop.md +28 -5
- package/.agent-src/contexts/override-system.md +5 -5
- package/.agent-src/ghostwriter/fictional-fixture-v1.md +1 -1
- package/.agent-src/personas/advisors/first-principles.md +1 -1
- package/.agent-src/personas/hollywood-director.md +1 -1
- package/.agent-src/rules/architecture.md +5 -1
- package/.agent-src/rules/augment-edit-discipline.md +5 -5
- package/.agent-src/rules/augment-source-of-truth.md +15 -15
- package/.agent-src/rules/commit-conventions.md +1 -1
- package/.agent-src/rules/commit-policy.md +10 -0
- package/.agent-src/rules/domain-adoption-policy.md +3 -3
- package/.agent-src/rules/fast-path-marker-visibility.md +3 -3
- package/.agent-src/rules/finance-safety-floor.md +1 -1
- package/.agent-src/rules/framework-neutrality-in-generic-skills.md +8 -8
- package/.agent-src/rules/git-history-discipline.md +1 -1
- package/.agent-src/rules/improve-before-implement.md +2 -2
- package/.agent-src/rules/language-and-tone.md +2 -2
- package/.agent-src/rules/media-governance-routing.md +5 -5
- package/.agent-src/rules/no-attribution-footers.md +1 -0
- package/.agent-src/rules/no-cheap-questions.md +3 -0
- package/.agent-src/rules/no-decorative-emojis-in-git-surfaces.md +111 -0
- package/.agent-src/rules/no-pr-progress-comments.md +118 -0
- package/.agent-src/rules/no-roadmap-references.md +3 -3
- package/.agent-src/rules/non-destructive-by-default.md +1 -1
- package/.agent-src/rules/persona-governance.md +3 -3
- package/.agent-src/rules/preservation-guard.md +15 -15
- package/.agent-src/rules/roadmap-ci-steps-policy.md +7 -3
- package/.agent-src/rules/rule-type-governance.md +1 -1
- package/.agent-src/rules/skill-quality.md +1 -1
- package/.agent-src/rules/{caveman-speak.md → telegraph-speak.md} +15 -15
- package/.agent-src/rules/token-optimizer-maintenance.md +6 -6
- package/.agent-src/skills/agent-docs-writing/SKILL.md +17 -11
- package/.agent-src/skills/agents-md-thin-root/SKILL.md +9 -9
- package/.agent-src/skills/check-refs/SKILL.md +2 -2
- package/.agent-src/skills/code-refactoring/SKILL.md +2 -2
- package/.agent-src/skills/command-writing/SKILL.md +19 -19
- package/.agent-src/skills/comp-banding/SKILL.md +1 -1
- package/.agent-src/skills/condense-memory/SKILL.md +131 -0
- package/.agent-src/skills/context-authoring/SKILL.md +2 -2
- package/.agent-src/skills/context-document/SKILL.md +5 -3
- package/.agent-src/skills/copilot-agents-optimization/SKILL.md +3 -3
- package/.agent-src/skills/description-assist/SKILL.md +2 -2
- package/.agent-src/skills/git-workflow/SKILL.md +1 -1
- package/.agent-src/skills/guideline-writing/SKILL.md +5 -5
- package/.agent-src/skills/learning-to-rule-or-skill/SKILL.md +4 -4
- package/.agent-src/skills/lint-skills/SKILL.md +3 -3
- package/.agent-src/skills/md-language-check/SKILL.md +2 -2
- package/.agent-src/skills/module-detect-on-the-fly/SKILL.md +138 -0
- package/.agent-src/skills/module-management/SKILL.md +166 -94
- package/.agent-src/skills/override-management/SKILL.md +1 -1
- package/.agent-src/skills/persona-writing/SKILL.md +5 -5
- package/.agent-src/skills/positioning-strategy/SKILL.md +1 -1
- package/.agent-src/skills/project-docs/SKILL.md +6 -4
- package/.agent-src/skills/readme-reviewer/SKILL.md +2 -2
- package/.agent-src/skills/roadmap-management/SKILL.md +13 -1
- package/.agent-src/skills/roadmap-writing/SKILL.md +4 -2
- package/.agent-src/skills/rule-refactor/SKILL.md +5 -5
- package/.agent-src/skills/rule-writing/SKILL.md +18 -18
- package/.agent-src/skills/script-writing/SKILL.md +1 -1
- package/.agent-src/skills/skill-improvement-pipeline/SKILL.md +6 -6
- package/.agent-src/skills/skill-management/SKILL.md +21 -21
- package/.agent-src/skills/skill-reviewer/SKILL.md +2 -2
- package/.agent-src/skills/skill-writing/SKILL.md +8 -8
- package/.agent-src/skills/skill-writing/evals/triggers.json +1 -1
- package/.agent-src/skills/token-optimizer/SKILL.md +4 -4
- package/.agent-src/skills/unit-economics-modeling/SKILL.md +1 -1
- package/.agent-src/skills/upstream-contribute/SKILL.md +17 -17
- package/.agent-src/templates/AGENTS.md +1 -0
- package/.agent-src/templates/agent-settings.md +24 -13
- package/.agent-src/templates/agents/agent-project-settings.example.yml +61 -2
- package/.agent-src/templates/command.md +5 -5
- package/.agent-src/templates/contexts.md +1 -1
- package/.agent-src/templates/copilot-instructions.md +8 -8
- package/.agent-src/templates/features.md +1 -1
- package/.agent-src/templates/hooks/pre-commit-frontmatter +2 -2
- package/.agent-src/templates/hooks/pre-commit-roadmap-progress +3 -3
- package/.agent-src/templates/persona.md +2 -2
- package/.agent-src/templates/roadmaps.md +1 -1
- package/.agent-src/templates/rule.md +13 -13
- package/.agent-src/templates/scripts/memory_lookup.py +1 -1
- package/.agent-src/templates/scripts/memory_status.py +2 -2
- package/.agent-src/templates/scripts/work_engine/_lib/agent_settings.py +195 -1
- package/.agent-src/templates/scripts/work_engine/orchestration.py +1 -1
- package/.agent-src/templates/skill-archive-note.md +5 -5
- package/.agent-src/templates/skill.md +1 -1
- package/.claude-plugin/marketplace.json +4 -4
- package/AGENTS.md +16 -17
- package/CHANGELOG.md +216 -3
- package/CONTRIBUTING.md +31 -12
- package/README.md +21 -12
- package/config/agent-settings.template.yml +22 -2
- package/config/discovery/unassigned-artefacts.yml +24 -24
- package/config/profiles/full.ini +1 -1
- package/dist/cli/agent-config.js +52 -3
- package/dist/cli/agent-config.js.map +1 -1
- package/dist/cli/commands/uiServe.js +9 -0
- package/dist/cli/commands/uiServe.js.map +1 -1
- package/dist/cli/registry.js +2 -1
- package/dist/cli/registry.js.map +1 -1
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +649 -606
- package/dist/discovery/discovery-manifest.json.sha256 +1 -1
- package/dist/discovery/discovery-manifest.summary.md +4 -4
- package/dist/discovery/orphan-report.md +1 -1
- package/dist/discovery/packs.json +439 -437
- package/dist/discovery/trust-report.md +5 -5
- package/dist/discovery/workspaces.json +450 -448
- package/dist/install/atomic.js +92 -0
- package/dist/install/atomic.js.map +1 -0
- package/dist/install/conflict.js +196 -0
- package/dist/install/conflict.js.map +1 -0
- package/dist/install/detect.js +218 -0
- package/dist/install/detect.js.map +1 -0
- package/dist/install/paths.js +82 -0
- package/dist/install/paths.js.map +1 -0
- package/dist/install/plan.js +157 -0
- package/dist/install/plan.js.map +1 -0
- package/dist/install/txlog.js +140 -0
- package/dist/install/txlog.js.map +1 -0
- package/dist/install/types.js +19 -0
- package/dist/install/types.js.map +1 -0
- package/dist/install/wizard-plan.js +184 -0
- package/dist/install/wizard-plan.js.map +1 -0
- package/dist/mcp/registry-manifest.json +4 -4
- package/dist/router.json +67 -19
- package/dist/server/app.js +6 -0
- package/dist/server/app.js.map +1 -1
- package/dist/server/routes/install.js +358 -0
- package/dist/server/routes/install.js.map +1 -0
- package/dist/server/routes/wizard.js +468 -32
- package/dist/server/routes/wizard.js.map +1 -1
- package/dist/server/routes/workspace.js +396 -0
- package/dist/server/routes/workspace.js.map +1 -0
- package/dist/server/schemas/settings.js +5 -3
- package/dist/server/schemas/settings.js.map +1 -1
- package/dist/ui/assets/index-BDAhhpDV.js +40 -0
- package/dist/ui/assets/index-BDAhhpDV.js.map +1 -0
- package/dist/ui/assets/index-BXZILUxe.css +1 -0
- package/dist/ui/index.html +2 -2
- package/docs/MIGRATION.md +1 -1
- package/docs/adrs/cost/0001-hard-stop-hook.md +1 -1
- package/docs/adrs/router/0001-three-tier-routing.md +4 -4
- package/docs/adrs/schema/0001-json-schema-frontmatter.md +1 -1
- package/docs/adrs/smoke/0001-per-tier-smoke-scripts.md +4 -4
- package/docs/adrs/{caveman → telegraph}/0001-default-off-until-bench.md +9 -9
- package/docs/adrs/telegraph/README.md +9 -0
- package/docs/architecture/augment-projection.md +4 -4
- package/docs/architecture/claude-bundle.md +1 -1
- package/docs/architecture/current-onboard-baseline.md +3 -3
- package/docs/architecture/multi-tool-projection.md +10 -10
- package/docs/architecture/source-projection.md +27 -27
- package/docs/architecture.md +19 -15
- package/docs/archive/CHANGELOG-pre-2.11.0.md +2 -2
- package/docs/archive/CHANGELOG-pre-2.15.0.md +3 -3
- package/docs/archive/CHANGELOG-pre-2.16.0.md +1 -1
- package/docs/archive/CHANGELOG-pre-2.2.0.md +70 -70
- package/docs/archive/CHANGELOG-pre-2.20.0.md +2 -2
- package/docs/archive/CHANGELOG-pre-2.25.0.md +15 -15
- package/docs/archive/CHANGELOG-pre-3.0.0.md +4 -4
- package/docs/archive/CHANGELOG-pre-3.1.0.md +2 -2
- package/docs/archive/CHANGELOG-pre-3.2.0.md +3 -3
- package/docs/benchmark.md +65 -0
- package/docs/benchmarks.md +16 -16
- package/docs/catalog.md +17 -15
- package/docs/contracts/CHANGELOG-conventions.md +1 -1
- package/docs/contracts/STABILITY.md +2 -2
- package/docs/contracts/adoption-signal-floor.md +110 -0
- package/docs/contracts/adr-chat-history-split.md +4 -4
- package/docs/contracts/adr-command-suggestion.md +4 -4
- package/docs/contracts/adr-gtm-context-spine.md +1 -1
- package/docs/contracts/adr-implement-ticket-runtime.md +4 -4
- package/docs/contracts/adr-install-user-type-axis.md +1 -1
- package/docs/contracts/adr-layout.md +2 -2
- package/docs/contracts/adr-product-ui-track.md +10 -10
- package/docs/contracts/adr-user-types-axis.md +3 -3
- package/docs/contracts/adr-wing4-context-spine.md +1 -1
- package/docs/contracts/agent-memory-contract.md +3 -3
- package/docs/contracts/agents-md-tech-stack.md +2 -2
- package/docs/contracts/ai-council-config.md +2 -2
- package/docs/contracts/at-rest-encryption.md +4 -0
- package/docs/contracts/audit-log-v1.md +1 -1
- package/docs/contracts/benchmark-ab-contract.md +101 -0
- package/docs/contracts/benchmark-corpus-spec.md +1 -1
- package/docs/contracts/branch-protection-policy.md +98 -0
- package/docs/contracts/ci-cost-budget.md +106 -0
- package/docs/contracts/ci-green-floor.md +141 -0
- package/docs/contracts/command-clusters.md +6 -6
- package/docs/contracts/command-surface-tiers.md +2 -2
- package/docs/contracts/command-taxonomy.md +2 -2
- package/docs/contracts/{compression-default-kill-criterion.md → condensation-default-kill-criterion.md} +29 -29
- package/docs/contracts/config-presets.md +1 -1
- package/docs/contracts/context-paths.md +3 -3
- package/docs/contracts/context-spine.md +1 -1
- package/docs/contracts/cost-summary-schema.md +12 -12
- package/docs/contracts/cross-wing-handoff.md +4 -4
- package/docs/contracts/daily-workspace.md +4 -0
- package/docs/contracts/decision-trace-v1.md +2 -2
- package/docs/contracts/discovery-manifest.md +4 -4
- package/docs/contracts/explain-modes.md +4 -0
- package/docs/contracts/file-ownership-matrix.json +3493 -3318
- package/docs/contracts/file-ownership-matrix.md +3 -3
- package/docs/contracts/frontmatter-contract.md +4 -4
- package/docs/contracts/ghostwriter-schema.md +3 -3
- package/docs/contracts/gui-wizard.md +110 -97
- package/docs/contracts/harness-expectations.md +123 -0
- package/docs/contracts/host-agent-protocol.md +4 -0
- package/docs/contracts/implement-ticket-flow.md +9 -9
- package/docs/contracts/install-scopes.md +77 -0
- package/docs/contracts/iron-law-overrides.txt +1 -1
- package/docs/contracts/kernel-membership.md +26 -26
- package/docs/contracts/linear-ai-rules-inclusion.md +1 -1
- package/docs/contracts/linter-structural-model.md +2 -2
- package/docs/contracts/load-context-budget-model.md +4 -4
- package/docs/contracts/load-context-schema.md +13 -13
- package/docs/contracts/local-analytics.md +4 -0
- package/docs/contracts/local-knowledge-ingestion.md +1 -1
- package/docs/contracts/mcp-cloud-scope.md +2 -2
- package/docs/contracts/mcp-phase-1-scope.md +3 -3
- package/docs/contracts/measurement-baseline.md +5 -5
- package/docs/contracts/mental-models.md +30 -30
- package/docs/contracts/multi-tool-projection-fidelity.md +4 -4
- package/docs/contracts/namespace.md +4 -4
- package/docs/contracts/orchestration-dsl-v1.md +7 -7
- package/docs/contracts/package-self-orientation.md +12 -12
- package/docs/contracts/persona-schema.md +6 -6
- package/docs/contracts/pilot/language-and-tone.md +1 -1
- package/docs/contracts/plain-language-surface.md +117 -0
- package/docs/contracts/profile-system.md +3 -3
- package/docs/contracts/release-pr-gating.md +103 -0
- package/docs/contracts/role-experience.md +3 -3
- package/docs/contracts/rule-classification.md +13 -13
- package/docs/contracts/rule-interactions.md +4 -4
- package/docs/contracts/rule-interactions.yml +30 -30
- package/docs/contracts/rule-priority-hierarchy.md +13 -13
- package/docs/contracts/rule-router.md +2 -2
- package/docs/contracts/safety-model.md +1 -1
- package/docs/contracts/skill-distribution-channels.md +61 -0
- package/docs/contracts/skill-domains.md +2 -2
- package/docs/contracts/smoke-contracts.md +5 -5
- package/docs/contracts/telegraph-telemetry.md +83 -0
- package/docs/contracts/trust-and-safety.md +5 -5
- package/docs/contracts/ui-stack-extension.md +7 -7
- package/docs/contracts/ui-track-flow.md +9 -9
- package/docs/contracts/user-type-schema.md +4 -4
- package/docs/contracts/workflow-packs.md +4 -4
- package/docs/contracts/workspace-documents.md +4 -0
- package/docs/customization.md +28 -8
- package/docs/decisions/ADR-001-kernel-swap-deferred.md +6 -6
- package/docs/decisions/ADR-002-kernel-bucket-overrides.md +11 -11
- package/docs/decisions/ADR-003-flat-cluster-subs-and-colon-syntax.md +2 -2
- package/docs/decisions/ADR-004-rule-governance-pruning.md +4 -4
- package/docs/decisions/ADR-005-subagent-worktrees.md +7 -7
- package/docs/decisions/ADR-011-domain-pack-readiness.md +6 -6
- package/docs/decisions/ADR-013-discovery-frontmatter-contract.md +3 -3
- package/docs/decisions/ADR-015-discovery-manifest-contract.md +3 -3
- package/docs/decisions/ADR-017-monorepo-physical-layout.md +10 -10
- package/docs/decisions/ADR-018-trust-and-safety-layer.md +6 -6
- package/docs/decisions/ADR-019-router-json-dist-location.md +2 -2
- package/docs/decisions/ADR-020-global-only-consumer-scope.md +2 -2
- package/docs/decisions/ADR-021-deployment-shape.md +3 -3
- package/docs/decisions/ADR-022-daily-workspace-decomposition.md +1 -1
- package/docs/decisions/ADR-027-changelog-machine-vs-manual.md +2 -2
- package/docs/decisions/ADR-028-root-layout.md +7 -7
- package/docs/decisions/ADR-029-multi-workspace-deferred.md +2 -2
- package/docs/decisions/ADR-rule-kernel-and-router.md +5 -5
- package/docs/deploy/connector-setup.md +2 -2
- package/docs/deploy/policy-cookbook.md +2 -2
- package/docs/deploy/team-deployment-posture.md +20 -0
- package/docs/development.md +17 -17
- package/docs/distribution/registries.md +32 -0
- package/docs/distribution/registry-submissions.md +85 -0
- package/docs/distribution/telemetry-schema.md +1 -1
- package/docs/getting-started-by-role.md +45 -3
- package/docs/getting-started.md +2 -2
- package/docs/guidelines/agent-infra/5w2h-analysis.md +3 -3
- package/docs/guidelines/agent-infra/ask-when-uncertain-demos.md +1 -1
- package/docs/guidelines/agent-infra/asking-and-brevity-examples.md +3 -3
- package/docs/guidelines/agent-infra/carve-out-predicates.md +3 -3
- package/docs/guidelines/agent-infra/critical-thinking.md +4 -4
- package/docs/guidelines/agent-infra/direct-answers-demos.md +1 -1
- package/docs/guidelines/agent-infra/first-principles.md +2 -2
- package/docs/guidelines/agent-infra/inversion-thinking.md +5 -5
- package/docs/guidelines/agent-infra/layered-settings.md +56 -2
- package/docs/guidelines/agent-infra/mental-models.md +3 -3
- package/docs/guidelines/agent-infra/roadmap-progress-mechanics.md +2 -2
- package/docs/guidelines/agent-infra/rule-type-governance.md +1 -1
- package/docs/guidelines/agent-infra/scqa-framework.md +5 -5
- package/docs/guidelines/agent-infra/self-improvement-pipeline.md +2 -2
- package/docs/guidelines/agent-infra/six-hats.md +3 -3
- package/docs/guidelines/agent-infra/skill-quality-checklist.md +5 -5
- package/docs/guidelines/agent-infra/systems-thinking.md +1 -1
- package/docs/guidelines/agent-infra/verify-before-complete-demos.md +1 -1
- package/docs/guidelines/augment-portability-patterns.md +4 -4
- package/docs/guidelines/cross-role-handoff.md +2 -2
- package/docs/guidelines/php/php-coding-patterns.md +1 -1
- package/docs/guidelines/prompt-templates.md +6 -6
- package/docs/maintainers/dev-mode.md +1 -1
- package/docs/mcp.md +1 -1
- package/docs/parity/bench.json +3 -3
- package/docs/parity/ruflo.md +2 -2
- package/docs/profiles.md +11 -11
- package/docs/quality.md +11 -11
- package/docs/safety.md +3 -3
- package/docs/setup/mcp-client-config.md +1 -1
- package/docs/setup/mcp-r2-bootstrap.md +1 -1
- package/docs/setup/mcp-server-docker.md +3 -3
- package/docs/setup/per-ide/windsurf.md +1 -1
- package/docs/skills-catalog.md +8 -7
- package/docs/troubleshooting.md +1 -1
- package/docs/walkthroughs/daily-workspace-a11y.md +87 -0
- package/llms.txt +7 -6
- package/package.json +1 -1
- package/scripts/__pycache__/validate_frontmatter.cpython-312.pyc +0 -0
- package/scripts/_archive/README.md +2 -2
- package/scripts/_archive/_backfill_skill_domains.py +3 -3
- package/scripts/_archive/_bootstrap_tier_frontmatter.py +3 -3
- package/scripts/_archive/_p43_bodies.py +10 -10
- package/scripts/_archive/{_p43_compress.py → _p43_condense.py} +5 -5
- package/scripts/_archive/_p4_migrate.py +7 -7
- package/scripts/_archive/_phase2_shim_helper.py +1 -1
- package/scripts/_archive/_pilot_council_question.py +5 -5
- package/scripts/_cli/explain_last/inputs.py +1 -1
- package/scripts/_lib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/scripts/_lib/__pycache__/agent_src.cpython-312.pyc +0 -0
- package/scripts/_lib/agent_settings.py +195 -1
- package/scripts/_lib/agent_src.py +19 -19
- package/scripts/_lib/bench_ab_cache.py +162 -0
- package/scripts/_lib/bench_ab_scoring.py +209 -0
- package/scripts/_lib/{bench_caveman.py → bench_telegraph.py} +21 -21
- package/scripts/_lib/{bench_caveman_report.py → bench_telegraph_report.py} +21 -21
- package/scripts/_lib/claude_desktop_bundler.py +5 -5
- package/scripts/_lib/module_detection.py +223 -0
- package/scripts/_lib/scope_guard.sh +162 -0
- package/scripts/_phase4_bucket.py +3 -3
- package/scripts/_pilot_measure.py +4 -4
- package/scripts/_tmp_scan_framework_leakage.py +1 -1
- package/scripts/adoption_report.py +195 -0
- package/scripts/adoption_snapshot.py +219 -0
- package/scripts/adoption_status.py +166 -0
- package/scripts/ai-video/lib/parse-blueprint.sh +1 -1
- package/scripts/ai_council/advisors.py +5 -5
- package/scripts/ai_council/compile_corpus.py +1 -1
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_budget_v2_audit.py +3 -3
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_context_layer_v1_review.py +2 -2
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_inject_quiet_flag.py +1 -1
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_measure_v2.sh +1 -1
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_measure_verbosity.sh +1 -1
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_nondestructive_inline_audit.py +3 -3
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_per_task.sh +1 -1
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_phase6_trigger_jaccard.py +1 -1
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_phase_2a_budget_rebalance.py +6 -6
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_rebalancing_audit.py +1 -1
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_tier_retrofit.py +6 -6
- package/scripts/annotate_discovery.py +13 -13
- package/scripts/apply_modules_config.py +290 -0
- package/scripts/audit_adr_coverage.py +2 -2
- package/scripts/audit_auto_rules.py +2 -2
- package/scripts/audit_cloud_compatibility.py +3 -3
- package/scripts/audit_command_surface.py +9 -9
- package/scripts/audit_likelihood.py +2 -2
- package/scripts/audit_user_type_axis.py +2 -2
- package/scripts/bench_ab_cache_dispatch.py +68 -0
- package/scripts/bench_ab_clone.py +170 -0
- package/scripts/bench_ab_diff.py +227 -0
- package/scripts/bench_ab_integrity.py +143 -0
- package/scripts/bench_ab_run.py +235 -0
- package/scripts/bench_ab_task_runner.py +369 -0
- package/scripts/bench_ab_tracka_run.py +202 -0
- package/scripts/{bench_compress_memory.py → bench_condense_memory.py} +16 -16
- package/scripts/bench_run.py +33 -33
- package/scripts/bench_runner.py +2 -2
- package/scripts/bootstrap.sh +99 -0
- package/scripts/build_cloud_bundle.py +6 -6
- package/scripts/build_discovery_manifest.py +7 -7
- package/scripts/build_linear_digest.py +3 -3
- package/scripts/build_rule_trigger_matrix.py +8 -8
- package/scripts/chat_history.py +5 -5
- package/scripts/check_always_budget.py +11 -5
- package/scripts/check_augment_description_cap.py +3 -3
- package/scripts/check_cluster_patterns.py +2 -2
- package/scripts/check_command_count_messaging.py +3 -3
- package/scripts/{check_compression.py → check_condensation.py} +34 -34
- package/scripts/{check_compressed_paths.py → check_condensed_paths.py} +8 -8
- package/scripts/check_context_paths.py +7 -7
- package/scripts/check_council_layout.py +2 -2
- package/scripts/check_council_references.py +9 -9
- package/scripts/check_iron_law_prominence.py +2 -2
- package/scripts/check_kernel_rule_bundle.py +2 -2
- package/scripts/check_module_management_neutral.py +149 -0
- package/scripts/check_no_roadmap_refs.py +9 -9
- package/scripts/check_portability.py +3 -3
- package/scripts/check_public_catalog_links.py +4 -4
- package/scripts/check_references.py +7 -6
- package/scripts/check_release_pr_shape.py +112 -0
- package/scripts/check_reply_consistency.py +3 -3
- package/scripts/check_safety_floor_untouched.py +1 -1
- package/scripts/check_template_pin_drift.py +5 -5
- package/scripts/check_token_optimizer_freshness.py +3 -3
- package/scripts/ci_status.py +301 -0
- package/scripts/ci_time_ratio.py +1 -1
- package/scripts/cleanup_other_scope.sh +146 -0
- package/scripts/compile_router.py +10 -10
- package/scripts/{compress.py → condense.py} +64 -64
- package/scripts/condense.sh +18 -0
- package/scripts/{compress_memory.py → condense_memory.py} +33 -33
- package/scripts/config/presets.py +2 -2
- package/scripts/config/profiles.py +1 -1
- package/scripts/cost_by_conversation.py +3 -3
- package/scripts/cost_summary.py +7 -7
- package/scripts/count_token_optimizer_usage.sh +1 -1
- package/scripts/gen_discovery_baseline.py +5 -5
- package/scripts/generate_index.py +6 -6
- package/scripts/generate_ownership_matrix.py +10 -10
- package/scripts/generate_pack_manifests.py +1 -1
- package/scripts/ghostwriter_fixture_allowlist.txt +1 -1
- package/scripts/install +3 -3
- package/scripts/install-hooks.sh +6 -6
- package/scripts/install.py +273 -45
- package/scripts/install.sh +187 -1
- package/scripts/inventory_frontmatter.py +2 -2
- package/scripts/iron_law_sha.py +3 -3
- package/scripts/lint_agents_layout.py +14 -7
- package/scripts/lint_agents_md.py +4 -4
- package/scripts/lint_archived_skills.py +3 -3
- package/scripts/lint_artefact_frontmatter.py +2 -2
- package/scripts/lint_bench_ab.py +172 -0
- package/scripts/lint_bench_corpus.py +1 -1
- package/scripts/lint_command_tiers.py +5 -5
- package/scripts/lint_context_spine_usage.py +1 -1
- package/scripts/lint_framework_leakage.py +7 -7
- package/scripts/lint_framework_leakage_allowlist.json +152 -84
- package/scripts/lint_ghostwriter_source.py +3 -3
- package/scripts/lint_handoffs.py +1 -1
- package/scripts/lint_load_context.py +11 -11
- package/scripts/lint_media_policy_linkage.py +5 -5
- package/scripts/lint_namespace.py +1 -1
- package/scripts/lint_no_new_atomic_commands.py +2 -2
- package/scripts/lint_orchestration_dsl.py +1 -1
- package/scripts/lint_pack_boundaries.py +2 -2
- package/scripts/lint_persona_governance.py +4 -4
- package/scripts/lint_role_experiences.py +237 -0
- package/scripts/lint_rule_interactions.py +2 -2
- package/scripts/lint_rule_tiers.py +1 -1
- package/scripts/lint_trust_coherence.py +2 -2
- package/scripts/mcp_registry_submit.sh +187 -0
- package/scripts/mcp_server/tools.py +1 -1
- package/scripts/measure_frugality_savings.py +10 -10
- package/scripts/measure_patterns.py +1 -1
- package/scripts/measure_projection_bytes.py +5 -5
- package/scripts/measure_rule_budget.py +3 -3
- package/scripts/measure_skill_reduction.py +1 -1
- package/scripts/memory_lookup.py +1 -1
- package/scripts/memory_status.py +2 -2
- package/scripts/migrate_command_suggestions.py +3 -3
- package/scripts/mine_session.py +1 -1
- package/scripts/move_artefact.py +3 -3
- package/scripts/new_skill.py +2 -2
- package/scripts/pack_mcp_content.py +9 -9
- package/scripts/plan_physical_move.py +6 -6
- package/scripts/print_required_checks.py +196 -0
- package/scripts/probe_skill_registration.py +413 -0
- package/scripts/propose_modules_config.py +145 -0
- package/scripts/prototype_lint_contradictions.py +1 -1
- package/scripts/recruit_preflight.sh +152 -0
- package/scripts/refine_ticket_detect.py +3 -3
- package/scripts/release.py +20 -0
- package/scripts/render_benchmark_md.py +308 -0
- package/scripts/roadmap_progress_hook.py +1 -1
- package/scripts/run_skill_evals.py +2 -2
- package/scripts/runtime_registry.py +4 -4
- package/scripts/schemas/command.schema.json +4 -4
- package/scripts/schemas/rule.schema.json +5 -5
- package/scripts/schemas/skill.schema.json +3 -3
- package/scripts/schemas/user-type.schema.json +1 -1
- package/scripts/score_skill_selection.py +1 -1
- package/scripts/skill_collision_clusters.py +2 -2
- package/scripts/skill_linter.py +81 -81
- package/scripts/skill_overlap.py +5 -5
- package/scripts/skill_tools/audit_persona_coverage.py +2 -2
- package/scripts/skill_tools/audit_user_type_coverage.py +2 -2
- package/scripts/skill_tools/run_block_d_eval.py +1 -1
- package/scripts/skill_tools/score_skill_relevance.py +1 -1
- package/scripts/skill_tools/suggest_skill_for_task.py +1 -1
- package/scripts/skill_trigger_eval.py +3 -3
- package/scripts/smoke/kernel.sh +7 -1
- package/scripts/smoke/router.sh +5 -5
- package/scripts/smoke/skills.sh +1 -1
- package/scripts/smoke_quickstart.py +1 -1
- package/scripts/snapshot_agent_outputs.py +3 -3
- package/scripts/spotcheck_thin_root.py +1 -1
- package/scripts/{caveman_stats.py → telegraph_stats.py} +18 -18
- package/scripts/update_counts.py +1 -1
- package/scripts/validate_decision_engine.py +1 -1
- package/scripts/validate_frontmatter.py +1 -1
- package/scripts/validate_safe_paths.py +3 -3
- package/scripts/{validate_caveman_carveouts.py → validate_telegraph_carveouts.py} +7 -7
- package/scripts/verify_roadmap_closure.py +6 -6
- package/templates/consumer-settings/ONBOARDING.md +41 -0
- package/.agent-src/commands/install-via-agent.md +0 -129
- package/.agent-src/skills/compress-memory/SKILL.md +0 -131
- package/dist/ui/assets/index-D-DY1ywI.js +0 -35
- package/dist/ui/assets/index-D-DY1ywI.js.map +0 -1
- package/dist/ui/assets/index-Dqfhmg-d.css +0 -1
- package/docs/adrs/caveman/README.md +0 -9
- package/docs/contracts/caveman-telemetry.md +0 -83
- package/scripts/compress.sh +0 -18
package/.agent-src/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Agent Infrastructure
|
|
2
2
|
|
|
3
3
|
> **⚠️ DO NOT edit files in `.agent-src/` or `.augment/` directly.**
|
|
4
|
-
> The source of truth is `.agent-src.
|
|
5
|
-
> See `.agent-src.
|
|
4
|
+
> The source of truth is `.agent-src.uncondensed/`. Edit there, then run `task sync`.
|
|
5
|
+
> See `.agent-src.uncondensed/commands/condense.md` for the full workflow.
|
|
6
6
|
|
|
7
7
|
This directory contains the shared agent infrastructure: skills, commands, rules, guidelines,
|
|
8
8
|
templates, and contexts that power the AI coding assistant across all projects.
|
|
@@ -5,8 +5,9 @@ skills: [agent-docs-writing]
|
|
|
5
5
|
description: Generate a context summary for continuing work in a fresh chat. Replaces the session system.
|
|
6
6
|
disable-model-invocation: true
|
|
7
7
|
suggestion:
|
|
8
|
-
eligible:
|
|
9
|
-
|
|
8
|
+
eligible: true
|
|
9
|
+
trigger_description: "user asks for an agent handoff, fresh-chat summary, or context-summary to paste into a new chat"
|
|
10
|
+
trigger_context: "explicit verbatim ask — 'agent handoff', 'agend handoff' (typo), 'fasse für neuen chat zusammen', 'handoff summary', 'context summary for fresh chat'. Never inferred without a direct handoff / summary intent."
|
|
10
11
|
workspaces:
|
|
11
12
|
- agent-config-maintainer
|
|
12
13
|
packs:
|
|
@@ -70,6 +71,33 @@ Show the handoff prompt in a fenced code block and say:
|
|
|
70
71
|
> Copy this into a new chat to continue where we left off.
|
|
71
72
|
```
|
|
72
73
|
|
|
74
|
+
## Iron Law — output is ALWAYS a fenced code block
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
THE HANDOFF MUST BE WRAPPED IN A FENCED ```markdown CODE BLOCK
|
|
78
|
+
SO THE USER CAN COPY IT IN ONE CLICK. NEVER RENDER IT AS LIVE
|
|
79
|
+
MARKDOWN. NEVER SPLIT IT ACROSS MULTIPLE BLOCKS.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Use ` ```markdown ` as the fence so consumers get syntax highlighting
|
|
83
|
+
and the inner content is preserved verbatim. Add one short prose line
|
|
84
|
+
above the block (e.g. *"Copy this into a new chat:"*) and nothing
|
|
85
|
+
after — no follow-up questions, no numbered options.
|
|
86
|
+
|
|
87
|
+
## Detection — when natural-language triggers count as explicit
|
|
88
|
+
|
|
89
|
+
The user does not need to type `/agent-handoff` literally. Treat as
|
|
90
|
+
explicit invocation when the prompt contains a verbatim mention of:
|
|
91
|
+
|
|
92
|
+
- `agent handoff` / `agend handoff` (typo) / `handoff`
|
|
93
|
+
- `fresh chat`, `neuer chat`, `for a new chat`
|
|
94
|
+
- `context summary for {fresh,new} chat`
|
|
95
|
+
- `fasse … für … chat zusammen`
|
|
96
|
+
|
|
97
|
+
A vague *"summarize this conversation"* without handoff/new-chat
|
|
98
|
+
framing → NOT a trigger. Surface `/agent-handoff` as a numbered option,
|
|
99
|
+
do not auto-execute.
|
|
100
|
+
|
|
73
101
|
## Rules
|
|
74
102
|
|
|
75
103
|
- **Keep it concise** — the prompt should be <30 lines. More context = more input tokens in the new chat.
|
|
@@ -78,6 +106,7 @@ Show the handoff prompt in a fenced code block and say:
|
|
|
78
106
|
- **Open tasks are critical** — the new chat needs to know what's left.
|
|
79
107
|
- **Decisions are important** — prevents the new chat from re-asking settled questions.
|
|
80
108
|
- **File list is optional** — only include if the new chat will need to edit specific files.
|
|
109
|
+
- **NEVER render the handoff as live markdown** — see Iron Law above.
|
|
81
110
|
|
|
82
111
|
## When to use this vs. `agents/runtime/.agent-chat-history`
|
|
83
112
|
|
|
@@ -69,19 +69,19 @@ Extract from latest record:
|
|
|
69
69
|
Pricing source: [`internal/bench/pricing.yaml`](../../bench/pricing.yaml). Reader
|
|
70
70
|
implementation: [`scripts/cost/track.mjs`](../../scripts/cost/track.mjs).
|
|
71
71
|
|
|
72
|
-
### 3b. Read
|
|
72
|
+
### 3b. Read telegraph delta + per-conversation cost lens
|
|
73
73
|
|
|
74
74
|
Run two read-only Python helpers (stdlib-only, no-op safe if JSONL missing):
|
|
75
75
|
|
|
76
|
-
- `python3 scripts/
|
|
77
|
-
per-conversation + lifetime
|
|
78
|
-
multiplier (see [`docs/contracts/
|
|
76
|
+
- `python3 scripts/telegraph_stats.py --format json` — per-session +
|
|
77
|
+
per-conversation + lifetime telegraph delta. Honors suspended
|
|
78
|
+
multiplier (see [`docs/contracts/telegraph-telemetry.md`](../docs/contracts/telegraph-telemetry.md)) — delta reads `0` while suspended; display version + ACTIVE/SUSPENDED state regardless.
|
|
79
79
|
- `python3 scripts/cost_by_conversation.py --format json` — per-conversation
|
|
80
80
|
total cost + model breakdown for current conversation, sourced
|
|
81
81
|
from same `agents/cost-tracking/sessions.jsonl` ledger.
|
|
82
82
|
|
|
83
83
|
Surface in dashboard as one line:
|
|
84
|
-
`[
|
|
84
|
+
`[telegraph: {lifetime.delta_tokens:+,} tok lifetime · {current_conv.delta_tokens:+,} this conv · multiplier v{multiplier_version} {ACTIVE|SUSPENDED}] · [conv cost: ${current_conv.total_cost_usd:.4f}]`.
|
|
85
85
|
|
|
86
86
|
If both JSONLs missing or empty, omit line silently.
|
|
87
87
|
|
|
@@ -32,7 +32,7 @@ duplicate triggers, verifies the Thin-Root contract, and flags stale references.
|
|
|
32
32
|
**Suggest only — never auto-apply.** Fixes happen via `/agents optimize` (file
|
|
33
33
|
refactor) or rule-/skill-level commands.
|
|
34
34
|
|
|
35
|
-
**Source of truth:** `.agent-src.
|
|
35
|
+
**Source of truth:** `.agent-src.uncondensed/` — never read or edit
|
|
36
36
|
`.agent-src/` or `.augment/` directly.
|
|
37
37
|
|
|
38
38
|
## Steps
|
|
@@ -43,7 +43,7 @@ Count lines affecting token consumption:
|
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
45
|
# Always-loaded (per chat)
|
|
46
|
-
for f in .agent-src.
|
|
46
|
+
for f in .agent-src.uncondensed/rules/*.md; do
|
|
47
47
|
type=$(head -5 "$f" | grep 'type:' | sed 's/.*"\(.*\)"/\1/')
|
|
48
48
|
[ "$type" = "auto" ] && continue
|
|
49
49
|
lines=$(wc -l < "$f"); echo "always | $lines | $(basename "$f")"
|
|
@@ -51,15 +51,15 @@ done | sort -t'|' -k2 -rn
|
|
|
51
51
|
agents=$(wc -l < AGENTS.md); echo "always | $agents | AGENTS.md"
|
|
52
52
|
|
|
53
53
|
# Auto-loaded rules
|
|
54
|
-
for f in .agent-src.
|
|
54
|
+
for f in .agent-src.uncondensed/rules/*.md; do
|
|
55
55
|
type=$(head -5 "$f" | grep 'type:' | sed 's/.*"\(.*\)"/\1/')
|
|
56
56
|
[ "$type" != "auto" ] && continue
|
|
57
57
|
lines=$(wc -l < "$f"); echo "auto | $lines | $(basename "$f")"
|
|
58
58
|
done | sort -t'|' -k2 -rn
|
|
59
59
|
|
|
60
60
|
# Skills (top 20 by size)
|
|
61
|
-
for f in .agent-src.
|
|
62
|
-
name=$(echo "$f" | sed 's|.agent-src.
|
|
61
|
+
for f in .agent-src.uncondensed/skills/*/SKILL.md; do
|
|
62
|
+
name=$(echo "$f" | sed 's|.agent-src.uncondensed/skills/||;s|/SKILL.md||')
|
|
63
63
|
lines=$(wc -l < "$f"); echo "$lines | $name"
|
|
64
64
|
done | sort -rn | head -20
|
|
65
65
|
```
|
|
@@ -74,7 +74,7 @@ Report totals (always + auto + skills + AGENTS.md).
|
|
|
74
74
|
- **Merge candidates**: rules under 15 lines that belong inside a sibling rule.
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
|
-
for f in .agent-src.
|
|
77
|
+
for f in .agent-src.uncondensed/rules/*.md; do
|
|
78
78
|
desc=$(head -5 "$f" | grep 'description:' | sed 's/.*"\(.*\)"/\1/')
|
|
79
79
|
[ -n "$desc" ] && echo "$desc | $(basename "$f")"
|
|
80
80
|
done | sort | awk -F' \\| ' '{descs[$1]=descs[$1] " " $2} END {for (d in descs) {n=split(descs[d], a, " "); if (n>1) print "⚠️ " d " →" descs[d]}}'
|
|
@@ -115,7 +115,7 @@ python3 scripts/check_references.py
|
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
Confirm counts/lists in `.augment/contexts/augment-infrastructure.md` and
|
|
118
|
-
`docs/architecture.md` match the actual `.agent-src.
|
|
118
|
+
`docs/architecture.md` match the actual `.agent-src.uncondensed/` tree.
|
|
119
119
|
|
|
120
120
|
### 6. Run skill linter
|
|
121
121
|
|
|
@@ -150,7 +150,7 @@ Then ask:
|
|
|
150
150
|
- **No edits** — read-only audit. Fixes route to `/agents optimize`,
|
|
151
151
|
`skill-reviewer`, or `/optimize skills`.
|
|
152
152
|
- **No edits to `.agent-src/` or `.augment/`** — those regenerate from
|
|
153
|
-
`.agent-src.
|
|
153
|
+
`.agent-src.uncondensed/`. Edit the source.
|
|
154
154
|
- **No `agents/` folder ops** — scaffolding, folder-audit, folder-cleanup
|
|
155
155
|
live in `/optimize agents-dir`.
|
|
156
156
|
- **No commits, no push, no PR** — finishing the audit is a user decision
|
|
@@ -156,7 +156,31 @@ Next steps:
|
|
|
156
156
|
3. Run `/agents optimize` periodically to deduplicate against .augment/
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
### 7.
|
|
159
|
+
### 7. Module-root proposal (optional)
|
|
160
|
+
|
|
161
|
+
Surface configurable-module candidates so the team file can opt in to
|
|
162
|
+
module-aware skills (road-to-configurable-modules Phase B). Skips
|
|
163
|
+
silently when the helper finds no candidates.
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
python3 scripts/propose_modules_config.py --json
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
If the JSON `candidates` array is non-empty, render the proposed
|
|
170
|
+
`modules:` block as numbered options:
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
> 1. Accept all candidates — patch .agent-project-settings.yml
|
|
174
|
+
> 2. Pick a subset — choose root paths interactively
|
|
175
|
+
> 3. Skip — leave modules.enabled: false (default)
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
On accept, append the `modules:` block to the team file
|
|
179
|
+
`.agent-project-settings.yml` (preserve comments + ordering per the
|
|
180
|
+
[`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md)
|
|
181
|
+
contract). On skip, do nothing — the block stays opt-in.
|
|
182
|
+
|
|
183
|
+
### 8. Follow-ups
|
|
160
184
|
|
|
161
185
|
If `agents/` directory does not exist, suggest running `/optimize agents-dir --scaffold`.
|
|
162
186
|
If `.agent-settings.yml` does not exist, suggest running `scripts/install` (then `/onboard` for first-run setup).
|
|
@@ -60,7 +60,7 @@ Default: the AGENTS.md the user is editing right now. If unclear,
|
|
|
60
60
|
ask:
|
|
61
61
|
|
|
62
62
|
> 1. project root — `AGENTS.md`
|
|
63
|
-
> 2. consumer template — `.agent-src.
|
|
63
|
+
> 2. consumer template — `.agent-src.uncondensed/templates/AGENTS.md`
|
|
64
64
|
> 3. package root — `AGENTS.md` of `event4u/agent-config` itself
|
|
65
65
|
> 4. monorepo package — `<path>/AGENTS.md` (specify path)
|
|
66
66
|
|
|
@@ -110,7 +110,7 @@ For every link in the file, verify:
|
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
112
|
diff <(awk '/^## Emergency triage/,/^## [^E]/' "$target") \
|
|
113
|
-
.agent-src.
|
|
113
|
+
.agent-src.uncondensed/contexts/contracts/emergency-triage-block.md
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
Drift = revert in-file block to the canonical variant (package-root
|
|
@@ -176,7 +176,7 @@ final reply per
|
|
|
176
176
|
## What this command does NOT do
|
|
177
177
|
|
|
178
178
|
- **No edits to** `.augment/` **or** `.agent-src/` — those regenerate
|
|
179
|
-
from `.agent-src.
|
|
179
|
+
from `.agent-src.uncondensed/`. Edit the source.
|
|
180
180
|
- **No commits, no push, no PR** — finishing the refactor is a user
|
|
181
181
|
decision; cite [`commit-policy`](../../rules/commit-policy.md).
|
|
182
182
|
- **No broader agent-infra audit** — for token overhead, rule
|
|
@@ -68,7 +68,7 @@ Schema contract:
|
|
|
68
68
|
- **Do NOT introduce network code** in this package. External
|
|
69
69
|
enrichment is rejected for v1 — see the
|
|
70
70
|
[determinism floor](../../../docs/contracts/agent-user-schema.md#determinism-floor).
|
|
71
|
-
- **Edit `.agent-src.
|
|
71
|
+
- **Edit `.agent-src.uncondensed/` only.** `.agent-src/` and
|
|
72
72
|
`.augment/` regenerate from source.
|
|
73
73
|
|
|
74
74
|
## See also
|
|
@@ -65,5 +65,5 @@ Sub-command names match the locked contract in
|
|
|
65
65
|
- **Do NOT chain sub-commands.** One `/agents <sub>` per turn.
|
|
66
66
|
- If the user invokes `/agents` with no argument, **show the menu** — do
|
|
67
67
|
not guess which sub-command they meant.
|
|
68
|
-
- **Edit `.agent-src.
|
|
68
|
+
- **Edit `.agent-src.uncondensed/` only.** `.agent-src/` and `.augment/`
|
|
69
69
|
regenerate from source.
|
|
@@ -106,7 +106,7 @@ rather than guess.
|
|
|
106
106
|
### 4. Compare against this project
|
|
107
107
|
|
|
108
108
|
Add a **this-repo** column per axis. Sources of truth:
|
|
109
|
-
`.agent-src.
|
|
109
|
+
`.agent-src.uncondensed/` (skills/rules/commands), `docs/architecture.md`
|
|
110
110
|
(stable/experimental), `scripts/` (installer), `.github/workflows/` (CI).
|
|
111
111
|
Never invent capabilities — if we don't have it, say so.
|
|
112
112
|
|
|
@@ -101,12 +101,12 @@ Apply all fixes** for ≤2 findings or when all are pure translations.
|
|
|
101
101
|
|
|
102
102
|
Edit only the source-of-truth file:
|
|
103
103
|
|
|
104
|
-
- Path under `.agent-src.
|
|
104
|
+
- Path under `.agent-src.uncondensed/` → edit there directly
|
|
105
105
|
- Path under `.agent-src/` → edit the matching
|
|
106
|
-
`.agent-src.
|
|
107
|
-
`bash scripts/
|
|
106
|
+
`.agent-src.uncondensed/` file instead, then run
|
|
107
|
+
`bash scripts/condense.sh --sync`
|
|
108
108
|
- Path under `.augment/` → same as `.agent-src/` (it's a projection)
|
|
109
|
-
- Path under `agents/` → edit directly (no
|
|
109
|
+
- Path under `agents/` → edit directly (no condensation layer)
|
|
110
110
|
|
|
111
111
|
After all fixes, re-run:
|
|
112
112
|
|
|
@@ -114,21 +114,21 @@ After all fixes, re-run:
|
|
|
114
114
|
python3 scripts/check_md_language.py <path> [<path> …]
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
### 6. Mark hashes (only if `.agent-src.
|
|
117
|
+
### 6. Mark hashes (only if `.agent-src.uncondensed/` was edited)
|
|
118
118
|
|
|
119
119
|
For each modified source file:
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
|
-
python3 scripts/
|
|
122
|
+
python3 scripts/condense.py --mark-done "{relative_path}"
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
This keeps `.
|
|
125
|
+
This keeps `.condensation-hashes.json` consistent with the new content.
|
|
126
126
|
|
|
127
127
|
## Rules
|
|
128
128
|
|
|
129
129
|
- **Never edit `.augment/` directly** — it's a generated projection.
|
|
130
130
|
Per [`augment-source-of-truth`](../rules/augment-source-of-truth.md),
|
|
131
|
-
the source is `.agent-src.
|
|
131
|
+
the source is `.agent-src.uncondensed/`.
|
|
132
132
|
- **Per-line ignore marker is reserved** for meta-documentation that
|
|
133
133
|
must quote German tokens; do NOT use it as a generic mute.
|
|
134
134
|
- **Frontmatter is exempt** — the checker skips YAML frontmatter at
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: condense
|
|
3
3
|
tier: 1
|
|
4
4
|
skills: []
|
|
5
|
-
description:
|
|
5
|
+
description: Condense .md files from .agent-src.uncondensed/ into telegraph format and write to .agent-src/
|
|
6
6
|
disable-model-invocation: true
|
|
7
7
|
suggestion:
|
|
8
8
|
eligible: false
|
|
@@ -21,44 +21,44 @@ install:
|
|
|
21
21
|
removable: false
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# condense
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
and write the
|
|
26
|
+
Condense agent config `.md` files from `.agent-src.uncondensed/` into token-efficient telegraph format
|
|
27
|
+
and write the condensed output to `.agent-src/`.
|
|
28
28
|
|
|
29
|
-
Uses SHA-256 hashes to track which source files changed since last
|
|
30
|
-
Only changed files need
|
|
29
|
+
Uses SHA-256 hashes to track which source files changed since last condensation.
|
|
30
|
+
Only changed files need recondensation — saving tokens and time.
|
|
31
31
|
|
|
32
32
|
## Step 1: Sync non-.md files
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
bash scripts/
|
|
35
|
+
bash scripts/condense.sh --sync
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
This copies non-`.md` files (`.php`, etc.), deletes stale files, and shows the count of
|
|
39
|
-
changed `.md` files that need
|
|
39
|
+
changed `.md` files that need condensation.
|
|
40
40
|
|
|
41
41
|
## Step 2: Get changed files
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
bash scripts/
|
|
44
|
+
bash scripts/condense.sh --changed
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
This lists only `.md` files whose source has changed since the last
|
|
47
|
+
This lists only `.md` files whose source has changed since the last condensation (based on
|
|
48
48
|
stored SHA-256 hashes). If no files changed → you're done.
|
|
49
49
|
|
|
50
50
|
If you need to see ALL files regardless of change status:
|
|
51
|
-
`bash scripts/
|
|
51
|
+
`bash scripts/condense.sh --list`.
|
|
52
52
|
|
|
53
|
-
## Step 3:
|
|
53
|
+
## Step 3: Condense each changed .md file
|
|
54
54
|
|
|
55
|
-
**Core principle:**
|
|
56
|
-
A
|
|
55
|
+
**Core principle:** Condensation must improve execution quality, not just reduce length.
|
|
56
|
+
A condensed file should be easier to scan, easier to trigger, and easier to execute than the original.
|
|
57
57
|
|
|
58
58
|
For each changed `.md` file:
|
|
59
59
|
|
|
60
|
-
1. Read the source from `.agent-src.
|
|
61
|
-
2.
|
|
60
|
+
1. Read the source from `.agent-src.uncondensed/{path}`
|
|
61
|
+
2. Condense the prose using these rules:
|
|
62
62
|
- **Remove:** articles (a, an, the), filler (just, really, basically, actually, simply, essentially),
|
|
63
63
|
pleasantries, hedging, connective fluff (however, furthermore, additionally),
|
|
64
64
|
redundant wording, obvious framework knowledge, repeated explanations, decorative prose
|
|
@@ -79,18 +79,18 @@ For each changed `.md` file:
|
|
|
79
79
|
- **Drop:** "you should", "make sure to", "remember to" — state action directly
|
|
80
80
|
- **Merge** redundant bullets that say the same thing differently
|
|
81
81
|
- **Prefer** bullets over prose, direct instructions over explanatory paragraphs, one-line decisions over paragraphs
|
|
82
|
-
3. **Copy-paste first,
|
|
83
|
-
Before
|
|
84
|
-
They go into the
|
|
82
|
+
3. **Copy-paste first, condense second:**
|
|
83
|
+
Before condensing ANY prose, extract and set aside these elements from the source.
|
|
84
|
+
They go into the condensed output **unchanged, byte-for-byte**:
|
|
85
85
|
- **All code blocks** (``` fenced or indented) — copy EVERY code block from source to output FIRST
|
|
86
86
|
- **YAML frontmatter** — copy verbatim
|
|
87
87
|
- **All inline code** (`backtick content`)
|
|
88
88
|
- **All URLs, links, file paths, commands**
|
|
89
89
|
- **All H1/H2 headings** — exact text preserved
|
|
90
|
-
- **Tables** (structure preserved,
|
|
90
|
+
- **Tables** (structure preserved, condense cell text only)
|
|
91
91
|
- **Technical terms, library names, API names**
|
|
92
92
|
- **Dates, version numbers, numeric values**
|
|
93
|
-
Then
|
|
93
|
+
Then condense ONLY the prose around these preserved elements.
|
|
94
94
|
4. **NEVER remove (even if verbose):**
|
|
95
95
|
- Trigger clarity (When to use / description)
|
|
96
96
|
- Decision hints that prevent mistakes
|
|
@@ -98,7 +98,7 @@ For each changed `.md` file:
|
|
|
98
98
|
- Gotchas based on real failure patterns
|
|
99
99
|
- Anti-patterns that prevent recurring failures
|
|
100
100
|
- **Iron Law sections** — see "Iron Laws — do not touch" below
|
|
101
|
-
5. **Enrich (SKILL.md files only):** During
|
|
101
|
+
5. **Enrich (SKILL.md files only):** During condensation, also improve agent-effectiveness:
|
|
102
102
|
- **Validation steps:** If a Procedure ends with a vague validation ("check if it works"),
|
|
103
103
|
replace with concrete checks (expected output, commands to verify, specific conditions)
|
|
104
104
|
- **Mini examples:** If no `Examples` section exists, add a short safe/unsafe or good/bad example
|
|
@@ -109,16 +109,16 @@ For each changed `.md` file:
|
|
|
109
109
|
- **Do NOT invent content.** Only concretize what the source implies. If the source says
|
|
110
110
|
"validate copy/paste safety", you can add "Check: no nested backticks, fully selectable".
|
|
111
111
|
But don't add unrelated sections.
|
|
112
|
-
- **Do NOT
|
|
113
|
-
- **Reference skill:** See `.agent-src.
|
|
114
|
-
6. Write the
|
|
115
|
-
7. **MANDATORY: Run
|
|
112
|
+
- **Do NOT condense weak skills.** If the source has no procedure or no validation, fix structure first.
|
|
113
|
+
- **Reference skill:** See `.agent-src.uncondensed/skills/skill-writing/SKILL.md` for the gold standard
|
|
114
|
+
6. Write the condensed output to `.agent-src/{path}`
|
|
115
|
+
7. **MANDATORY: Run condensation quality check on this file:**
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
|
-
python3 scripts/
|
|
118
|
+
python3 scripts/check_condensation.py --format text 2>&1 | grep "{path}"
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
If the output contains 🔴 (error) for this file: **STOP. Fix the
|
|
121
|
+
If the output contains 🔴 (error) for this file: **STOP. Fix the condensed file before continuing.**
|
|
122
122
|
Common errors and how to fix them:
|
|
123
123
|
- `lost_code_blocks` → You dropped a code block. Copy ALL code blocks from source.
|
|
124
124
|
- `modified_code_block` → Code block content changed. Replace with exact source content.
|
|
@@ -126,12 +126,12 @@ Common errors and how to fix them:
|
|
|
126
126
|
|
|
127
127
|
**Do NOT call `mark-done` until this file has zero 🔴 errors.**
|
|
128
128
|
|
|
129
|
-
8. Show word count: `{original} → {
|
|
130
|
-
9. **Mark as done:** `bash scripts/
|
|
129
|
+
8. Show word count: `{original} → {condensed} words ({saved}% saved)`
|
|
130
|
+
9. **Mark as done:** `bash scripts/condense.sh --mark-done {path}`
|
|
131
131
|
|
|
132
132
|
### Batch processing
|
|
133
133
|
|
|
134
|
-
When
|
|
134
|
+
When condensing multiple files, process them in batches of ~10.
|
|
135
135
|
Mark each file done after writing it. After each batch, show a progress summary:
|
|
136
136
|
|
|
137
137
|
```
|
|
@@ -143,13 +143,13 @@ Batch 1/5 complete: 10 files, avg 42% saved
|
|
|
143
143
|
Run BOTH checks. Both must pass before finishing.
|
|
144
144
|
|
|
145
145
|
```bash
|
|
146
|
-
bash scripts/
|
|
146
|
+
bash scripts/condense.sh --check
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
Must show ✅ (hashes in sync).
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
|
-
python3 scripts/
|
|
152
|
+
python3 scripts/check_condensation.py
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
Must show **zero 🔴 errors**. Warnings (🟡) are acceptable.
|
|
@@ -161,23 +161,23 @@ Read `verbosity.post_action_reports` from `.agent-settings.yml` (default
|
|
|
161
161
|
`minimal`).
|
|
162
162
|
|
|
163
163
|
- `off` → emit nothing on success; surface errors only.
|
|
164
|
-
- `minimal` (default) → one line: `→ N files
|
|
165
|
-
- `full` → multi-line table with per-category stats (files
|
|
164
|
+
- `minimal` (default) → one line: `→ N files condensed (avg X% savings)`.
|
|
165
|
+
- `full` → multi-line table with per-category stats (files condensed,
|
|
166
166
|
avg savings).
|
|
167
167
|
|
|
168
168
|
## Hash management
|
|
169
169
|
|
|
170
|
-
- Hashes are stored in `.augment/.
|
|
171
|
-
- `bash scripts/
|
|
172
|
-
- `bash scripts/
|
|
173
|
-
(useful after an initial full
|
|
170
|
+
- Hashes are stored in `.augment/.condensation-hashes.json` (committed to Git).
|
|
171
|
+
- `bash scripts/condense.sh --sync` automatically cleans up hashes for deleted source files.
|
|
172
|
+
- `bash scripts/condense.sh --mark-all-done` marks ALL current `.md` files as condensed
|
|
173
|
+
(useful after an initial full condensation or when bootstrapping the hash file).
|
|
174
174
|
- A file with no stored hash is always treated as "changed".
|
|
175
175
|
|
|
176
176
|
## Iron Laws — do not touch
|
|
177
177
|
|
|
178
178
|
Sections under headings matching `Iron Law`, `Iron Laws`, or `The Iron Law` (any
|
|
179
179
|
heading level, numbered variants like `Iron Law 1` included) are **load-bearing
|
|
180
|
-
behavioral rules**.
|
|
180
|
+
behavioral rules**. Condensation rules above do **not** apply to them.
|
|
181
181
|
|
|
182
182
|
For every Iron Law section in a source file:
|
|
183
183
|
|
|
@@ -187,27 +187,27 @@ For every Iron Law section in a source file:
|
|
|
187
187
|
breaks, and trailing punctuation.
|
|
188
188
|
- **Copy the negation clauses verbatim** — `NO X`, `NEVER Y`, `NOT Z`. These
|
|
189
189
|
are the law's exception denials; stripping them weakens the rule.
|
|
190
|
-
- **
|
|
190
|
+
- **Telegraph the prose, keep every passage** — every paragraph, every list
|
|
191
191
|
item, and every fenced code block from the source must appear in the
|
|
192
|
-
|
|
192
|
+
condensed output, in order. Drop articles, shorten phrasing, primitive
|
|
193
193
|
grammar, terse cave-speak — all encouraged. What's forbidden is dropping
|
|
194
194
|
whole sentences, merging two paragraphs into one, or skipping a bullet.
|
|
195
195
|
One paragraph → one paragraph; one bullet → one bullet.
|
|
196
|
-
- **No word-count budget** —
|
|
196
|
+
- **No word-count budget** — condense the prose as hard as telegraph style
|
|
197
197
|
allows. The check is structural (passage count), not quantitative.
|
|
198
198
|
|
|
199
|
-
`scripts/
|
|
199
|
+
`scripts/check_condensation.py` enforces these mechanically — `iron_law_missing`,
|
|
200
200
|
`iron_law_passage_dropped`, and `iron_law_heading_downgrade` are `error`-level
|
|
201
201
|
and block CI.
|
|
202
202
|
|
|
203
203
|
If an Iron Law section genuinely contains filler (rare): edit the SOURCE in
|
|
204
|
-
`.agent-src.
|
|
204
|
+
`.agent-src.uncondensed/`, not the condensed copy. Source is the truth.
|
|
205
205
|
|
|
206
|
-
##
|
|
206
|
+
## Condensation quality checklist
|
|
207
207
|
|
|
208
|
-
**Also apply the `preservation-guard` rule** — strongest validation, example, anti-pattern, and decision hints must survive
|
|
208
|
+
**Also apply the `preservation-guard` rule** — strongest validation, example, anti-pattern, and decision hints must survive condensation. Iron Laws are non-negotiable.
|
|
209
209
|
|
|
210
|
-
After
|
|
210
|
+
After condensing each file, verify:
|
|
211
211
|
|
|
212
212
|
- [ ] All code blocks preserved exactly (no content changes)
|
|
213
213
|
- [ ] All inline code, URLs, file paths unchanged
|
|
@@ -216,11 +216,11 @@ After compressing each file, verify:
|
|
|
216
216
|
- [ ] Tables structure preserved (cell text may be shortened)
|
|
217
217
|
- [ ] "NEVER", "MUST", "Do NOT" and other strong language preserved
|
|
218
218
|
- [ ] Technical terms, library names, API names unchanged
|
|
219
|
-
- [ ] No meaning lost —
|
|
219
|
+
- [ ] No meaning lost — condensed version says the same thing, shorter
|
|
220
220
|
- [ ] No sections accidentally removed
|
|
221
221
|
- [ ] Word count reduction is 20-50% (typical range for prose-heavy files)
|
|
222
222
|
|
|
223
|
-
### Safe vs unsafe
|
|
223
|
+
### Safe vs unsafe condensation
|
|
224
224
|
|
|
225
225
|
Safe:
|
|
226
226
|
- "You should always make sure to run the tests before committing" → "Run tests before commit"
|
|
@@ -236,8 +236,8 @@ Unsafe (DO NOT do this):
|
|
|
236
236
|
## Rules
|
|
237
237
|
|
|
238
238
|
- **Do NOT commit or push.** Only write files.
|
|
239
|
-
- **Do NOT modify `.agent-src.
|
|
240
|
-
- **Only write to `.augment/`** — the
|
|
241
|
-
- **Preserve ALL technical content** — only
|
|
239
|
+
- **Do NOT modify `.agent-src.uncondensed/`** — it is the source of truth.
|
|
240
|
+
- **Only write to `.augment/`** — the condensed output directory.
|
|
241
|
+
- **Preserve ALL technical content** — only condense natural language prose.
|
|
242
242
|
- **YAML frontmatter** in command/skill files must be preserved exactly.
|
|
243
|
-
- **Always run `bash scripts/
|
|
243
|
+
- **Always run `bash scripts/condense.sh --mark-done {path}`** after writing each condensed file.
|
|
@@ -44,18 +44,21 @@ Examples:
|
|
|
44
44
|
|
|
45
45
|
### 2. Determine scope (module vs. project-wide)
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Resolve module roots via `scripts/_lib/agent_settings.py::enumerate_modules()`
|
|
48
|
+
(reads `modules.root_paths` + `modules.agent_folder` from
|
|
49
|
+
`.agent-project-settings.yml`). If at least one module is discovered, ask:
|
|
48
50
|
|
|
49
51
|
```
|
|
50
52
|
Should the context be created in a module or in the project root?
|
|
51
53
|
|
|
52
|
-
1. 📦 In a module →
|
|
54
|
+
1. 📦 In a module → {module_root}/{Module}/{agent_folder}/settings/contexts/
|
|
53
55
|
2. 🌐 Project root → agents/settings/contexts/
|
|
54
56
|
```
|
|
55
57
|
|
|
56
58
|
If module:
|
|
57
|
-
-
|
|
58
|
-
- Target: `
|
|
59
|
+
- Render the list of modules from `enumerate_modules()` and ask which one.
|
|
60
|
+
- Target: `{module_root}/{Module}/{agent_folder}/settings/contexts/`
|
|
61
|
+
(Laravel example: `app/Modules/{Module}/agents/settings/contexts/`)
|
|
59
62
|
- Create directory if it doesn't exist.
|
|
60
63
|
|
|
61
64
|
If project-wide:
|
|
@@ -30,7 +30,9 @@ install:
|
|
|
30
30
|
### 1. Find the context
|
|
31
31
|
|
|
32
32
|
- List all context documents in `agents/settings/contexts/`.
|
|
33
|
-
- Also check module-level `
|
|
33
|
+
- Also check module-level contexts via `enumerate_modules()` — for each
|
|
34
|
+
module, look in `{module_path}/{modules.agent_folder}/settings/contexts/`
|
|
35
|
+
(Laravel shape: `app/Modules/*/agents/settings/contexts/`).
|
|
34
36
|
|
|
35
37
|
If only one context exists, ask if that's the one to refactor.
|
|
36
38
|
If the user has a context file open in their editor, use that one.
|
|
@@ -59,7 +59,7 @@ Do NOT use for single-line fixes, trivial changes, or urgent hotfixes.
|
|
|
59
59
|
- Architecture patterns in the affected area
|
|
60
60
|
- Key files, services, models, routes involved
|
|
61
61
|
2. Read identified files to build deep understanding.
|
|
62
|
-
3. Check module docs (`app/Modules/*/agents/`) if applicable.
|
|
62
|
+
3. Check module docs via `enumerate_modules()` — for each module, look in `{module_path}/{modules.agent_folder}/` (Laravel shape: `app/Modules/*/agents/`) if applicable.
|
|
63
63
|
4. Check existing contexts (`agents/settings/contexts/`) for the affected area.
|
|
64
64
|
5. Present findings with file references.
|
|
65
65
|
|
|
@@ -128,7 +128,7 @@ While exploring, proactively research:
|
|
|
128
128
|
|
|
129
129
|
- Use `codebase-retrieval` to find related code, existing patterns, and affected areas.
|
|
130
130
|
- Check `agents/features/` for existing feature plans that might overlap.
|
|
131
|
-
- Check the module structure (`app/Modules/`) for where this would live.
|
|
131
|
+
- Check the module structure via `enumerate_modules()` (resolves `modules.root_paths`; Laravel shape: `app/Modules/`) for where this would live.
|
|
132
132
|
- Look for existing services, models, or endpoints that could be extended.
|
|
133
133
|
|
|
134
134
|
**Share findings naturally:**
|