@amsterdamdatalabs/adl-agent-control-darwin-arm64 0.1.59 → 0.1.64
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/bin/adl +2 -2
- package/bin/health-check +13 -1
- package/bin/job-watchdog +11 -0
- package/bin/setup +41 -0
- package/bin/validate-manifest +22 -1
- package/package.json +2 -1
- package/packages/agent-hooks/README.md +24 -0
- package/packages/agent-hooks/assets/automation-exempt.json +434 -0
- package/packages/agent-hooks/src/gating/config.ts +53 -5
- package/packages/agent-hooks/src/pre-tool-use/handler.ts +28 -6
- package/packages/agent-hooks/src/rules/automation-exempt.ts +16 -0
- package/packages/agent-hooks/src/rules/engine.ts +47 -1
- package/packages/agent-hooks/src/rules/impl/adl-human-azdo-bypass.ts +76 -13
- package/packages/agent-pool/image/provision.sh +122 -0
- package/packages/agent-skills/assets/implement-feature/SKILL.md +1 -1
- package/packages/agent-skills/assets/plan-feature/SKILL.md +10 -5
- package/packages/agent-skills/assets/workitems-process/SKILL.md +3 -3
- package/packages/agent-skills/assets/workitems-process/references/ado-and-git.md +1 -1
- package/packages/fleet/manifest.json +36 -12
- package/packages/fleet/manifest.schema.json +34 -0
- package/packages/repo-controls/README.md +39 -0
- package/packages/repo-controls/assets/automation-exempt.json +265 -0
- package/packages/repo-controls/package/adl-compliance/pyproject.toml +13 -3
- package/packages/repo-controls/package/adl-compliance/uv.lock +54 -74
- package/packages/repo-controls/src/automation-exempt.ts +20 -0
- package/packages/repo-controls/src/config.ts +43 -2
- package/packages/repo-controls/src/constants.ts +27 -0
- package/packages/repo-controls/src/hook.ts +53 -11
- package/bin/lean-ctx-observe-strip +0 -434
- package/bin/lib/lean-ctx-observe-hooks.sh +0 -634
- package/bin/update-azure-agent-pool +0 -29
- package/packages/agent-hooks/src/hooks/lean-ctx/handler.ts +0 -22
- package/packages/agent-hooks/src/hooks/lean-ctx/index.ts +0 -173
- package/packages/agent-hooks/src/hooks/lean-ctx/mapping.ts +0 -121
- package/packages/agent-hooks/src/hooks/lean-ctx/scope-rewrite.ts +0 -207
- package/packages/agent-hooks/src/lean-ctx/env.ts +0 -123
- package/packages/agent-hooks/src/lean-ctx/mcp.ts +0 -142
- package/packages/agent-hooks/src/rules/impl/adl-build-run-denied.ts +0 -51
- package/packages/agent-hooks/src/rules/impl/adl-session-required.ts +0 -403
- package/packages/agent-hooks/src/rules/impl/tool-lean-ctx-global.ts +0 -594
- package/packages/agent-settings/assets/GLOBAL-AGENTS.md +0 -112
- package/packages/agent-settings/assets/lean-ctx/config.toml +0 -42
- package/packages/agent-settings/assets/lean-ctx/gitignore +0 -10
- package/packages/agent-settings/assets/lean-ctx/layout.toml +0 -7
- package/packages/agent-settings/src/deploy/lean-ctx-deploy.ts +0 -230
- package/packages/agent-settings/src/deploy/lean-ctx-merge.ts +0 -580
- package/packages/agent-skills/assets/adl-mechanics/SKILL.md +0 -38
- package/packages/agent-skills/assets/codebase-design/SKILL.md +0 -98
- package/packages/agent-skills/assets/codebase-design/references/DEEPENING.md +0 -37
- package/packages/agent-skills/assets/codebase-design/references/DESIGN-IT-TWICE.md +0 -44
- package/packages/agent-skills/assets/codebase-design/references/TESTABILITY.md +0 -29
- package/packages/agent-skills/assets/debug-issue/SKILL.md +0 -41
- package/packages/agent-skills/assets/domain-modeling/SKILL.md +0 -86
- package/packages/agent-skills/assets/domain-modeling/references/ADR-FORMAT.md +0 -47
- package/packages/agent-skills/assets/domain-modeling/references/CONTEXT-FORMAT.md +0 -60
- package/packages/agent-skills/assets/implement/SKILL.md +0 -28
- package/packages/agent-skills/assets/review-changes/SKILL.md +0 -45
- package/packages/agent-skills/assets/tdd/SKILL.md +0 -49
- package/packages/agent-skills/assets/tdd/references/mocking.md +0 -59
- package/packages/agent-skills/assets/tdd/references/tests.md +0 -77
- package/packages/agent-skills/assets/testing/SKILL.md +0 -54
- package/packages/agent-skills/assets/testing/references/e2e.md +0 -37
- package/packages/agent-skills/assets/testing/references/integration.md +0 -37
- package/packages/agent-skills/assets/testing/references/unit.md +0 -32
- package/packages/agent-skills/assets/to-feature/SKILL.md +0 -91
- package/packages/agent-skills/assets/to-feature/references/FEATURE-SPEC-TEMPLATE.md +0 -88
- package/packages/agent-skills/assets/to-workitems/SKILL.md +0 -90
- package/packages/agent-skills/assets/to-workitems/references/AZURE-DEVOPS-HIERARCHY.md +0 -121
- package/packages/agent-skills/assets/to-workitems/references/TICKET-TEMPLATES.md +0 -70
- package/packages/azdo/src/workflow-rules-matrix.csv +0 -85
- package/packages/fleet/src/launch-agents.ts +0 -649
- package/packages/repo-controls/assets/GLOBAL-INVARIANTS.md +0 -21
- package/packages/repo-controls/assets/enable-integration-auto-complete.mjs +0 -79
- package/packages/repo-controls/assets/scaffold/docs/notes.md +0 -20
- package/packages/repo-controls/assets/scaffold/plans/GAPS-AND-FINDINGS.md +0 -12
- package/packages/repo-controls/azure-pipelines.yml +0 -274
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/docs/closed_set/fixtures/docs/notes.md +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/docs/english_only/fixtures/excluded/frontend/mobile/src/i18n/locales/zh-CN/strings.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/docs/okf_profile/fixtures/okf-ledger-clean/docs/notes.md +0 -17
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/docs/okf_profile/fixtures/okf-ledger-no-lines/docs/notes.md +0 -13
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/docs/semantics/fixtures/semantics-violations/docs/architecture/product/stable-delivery.md +0 -10
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/docs/semantics/fixtures/semantics-violations/docs/architecture/product/stable-recommendation.md +0 -12
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/docs/semantics/fixtures/semantics-violations/docs/architecture/product/target-narration.md +0 -10
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-clean/frontend/packages/desktop/src/renderer/solo/item.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-empty-register/frontend/packages/desktop/src/a.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-empty-register/frontend/packages/desktop/src/b.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/fresh/fresh.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub1/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub10/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub11/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub2/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub3/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub4/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub5/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub6/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub7/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub8/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/many/sub9/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/services/i18n/locales/de/common.json +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/renderer/solo/item.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-excluded/frontend/packages/desktop/src/vendored-crate/Cargo.toml +0 -2
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-missing-tree/frontend/packages/desktop/src/renderer/solo/item.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-no-ceilings/frontend/packages/desktop/src/a.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-no-ceilings/frontend/packages/desktop/src/b.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-no-ceilings/frontend/packages/desktop/src/c.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-stale-entry/frontend/packages/desktop/src/renderer/solo/item.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/fresh/fresh.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub1/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub10/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub11/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub2/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub3/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub4/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub5/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub6/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub7/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub8/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/many/sub9/only.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unbaselined/frontend/packages/desktop/src/renderer/solo/item.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/directory_ratchet/fixtures/directory-ratchet-unusable-register/frontend/packages/desktop/src/renderer/solo/item.ts +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/open_work_cap/fixtures/open-work-cap-clean/plans/GAPS-AND-FINDINGS.md +0 -5
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/open_work_cap/fixtures/open-work-cap-clean/plans/features/az601-clean/spec.md +0 -10
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/agent/crates/enact-providers/src/snapshots/README.md +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/backend/crates/enact-app/assets/builtin-assistants/avatars/assistant.jpg +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/backend/crates/enact-assets/assets/logos/tools/coding/tool.png +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/backend/crates/enact-session/src/backend/codex_init_prompt.md +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/frontend/mobile/assets/images/icon.png +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/frontend/packages/desktop/src/renderer/assets/logos/brand/app.png +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/frontend/packages/desktop/src/renderer/assets/themes/default-theme.png +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/frontend/public/pwa/icon-192.png +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-allowed/frontend/resources/product.png +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/placement/fixtures/placement-stray/backend/crates/enact-session/src/backend/README.md +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/plans_layout/fixtures/plans-layout-clean/plans/features/az347-test-coverage/spec.md +0 -12
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/plans_layout/fixtures/plans-layout-violation/plans/features/az347-test-coverage/spec.md +0 -12
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/__init__.py +0 -11
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/check.py +0 -62
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/NotAMigration.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/migrations/0001_long_prefix.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/migrations/001_init.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/migrations/002_add_index.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/migrations/003-dashed-slug.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/migrations/004_MixedCase.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/migrations/005_trailing space.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/migrations/01_short_prefix.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/fixtures/migration-filenames/backend/crates/demo/migrations/not-a-migration.sql +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/profile_data/test_check.py +0 -116
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/references/fixtures/link-targets-broken/docs/architecture/product/links.md +0 -20
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/references/fixtures/link-targets-broken/docs/architecture/product/route-target.md +0 -8
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/references/fixtures/link-targets-clean/docs/architecture/product/links.md +0 -20
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/references/fixtures/link-targets-clean/docs/architecture/product/route-target.md +0 -8
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/root_closed_set/fixtures/.changeset/declared.txt +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/layout/root_markdown_allowlist/fixtures/root-markdown-clean/INDEPENDENT-VERIFICATION.md +0 -3
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/lfs/integrity/fixtures/attribute-without-conversion/.gitattributes +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/lfs/integrity/fixtures/attribute-without-conversion/large file.bin +0 -3
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/lfs/integrity/fixtures/clean/.gitattributes +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/lfs/integrity/fixtures/clean/large file.bin +0 -3
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/lfs/integrity/fixtures/clean/small.txt +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/lfs/integrity/fixtures/missing-filter/large file.bin +0 -0
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/lfs/integrity/fixtures/unmatched-extension/.gitattributes +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/lfs/integrity/fixtures/unmatched-extension/payload.dat +0 -0
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/pipeline/__init__.py +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/pipeline/phase_disjoint/__init__.py +0 -12
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/pipeline/phase_disjoint/check.py +0 -129
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/pipeline/phase_disjoint/fixtures/disjoint/gate-registry.yaml +0 -13
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/pipeline/phase_disjoint/fixtures/empty/gate-registry.yaml +0 -7
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/pipeline/phase_disjoint/fixtures/overlapping/gate-registry.yaml +0 -13
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/pipeline/phase_disjoint/test_check.py +0 -109
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/__init__.py +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/changeset_plan/__init__.py +0 -11
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/changeset_plan/check.py +0 -149
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/changeset_plan/fixtures/clean/docs/readme.md +0 -4
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/changeset_plan/fixtures/relevant/VERSION +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/changeset_plan/test_check.py +0 -151
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/__init__.py +0 -11
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/check.py +0 -202
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/fixtures/aligned/.workflows/changesets/package.json +0 -5
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/fixtures/aligned/.workflows/package.json +0 -5
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/fixtures/aligned/CHANGELOG.md +0 -5
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/fixtures/aligned/VERSION +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/fixtures/mismatched/.workflows/changesets/package.json +0 -5
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/fixtures/mismatched/.workflows/package.json +0 -5
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/fixtures/mismatched/CHANGELOG.md +0 -5
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/fixtures/mismatched/VERSION +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/release/version_release/test_check.py +0 -162
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/banned_commands/check.py +0 -103
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/clean/backend/Cargo.lock +0 -7
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/clean/backend/Cargo.toml +0 -4
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/clean/backend/rust-toolchain.toml +0 -3
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/clean/backend/src/main.rs +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/clean/frontend/bun.lock +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/empty-bun-lock/backend/Cargo.lock +0 -7
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/empty-bun-lock/backend/Cargo.toml +0 -4
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/empty-bun-lock/backend/rust-toolchain.toml +0 -3
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/empty-bun-lock/backend/src/main.rs +0 -1
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/checks/repository/lockfile_integrity/fixtures/empty-bun-lock/frontend/bun.lock +0 -0
- package/packages/repo-controls/package/adl-compliance/src/adl_compliance/policy/grants-registry.yaml +0 -112
- package/packages/repo-controls/workflows/scripts/release/verify-npm-artifact.ts +0 -119
package/bin/adl
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/bin/adl
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 63720304 bytes
|
|
4
|
+
sha256: 26086f2a011da4a6165f3a0d621bec2140006cf3b203043465a76627237a1072
|
package/bin/health-check
CHANGED
|
@@ -36,7 +36,19 @@ case "$device" in
|
|
|
36
36
|
}
|
|
37
37
|
done
|
|
38
38
|
;;
|
|
39
|
-
|
|
39
|
+
strato-vps-1)
|
|
40
|
+
# services.agent_pool (Feature 758): when the manifest declares the poller for this host, its
|
|
41
|
+
# systemd unit must be running. The manifest is the one that ships beside this script.
|
|
42
|
+
manifest="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/../packages/fleet/manifest.json"
|
|
43
|
+
pool_declared="$(jq -r --arg host "$device" '(.linux.devices[$host].services.agent_pool // null) != null' "$manifest")"
|
|
44
|
+
if [[ "$pool_declared" == true ]]; then
|
|
45
|
+
systemctl is-active --quiet adl-agent-pool.service || {
|
|
46
|
+
echo "required service is not active: adl-agent-pool.service" >&2
|
|
47
|
+
exit 1
|
|
48
|
+
}
|
|
49
|
+
fi
|
|
50
|
+
;;
|
|
51
|
+
m3)
|
|
40
52
|
# Declared for plan validation, but not part of the first deployment wave.
|
|
41
53
|
;;
|
|
42
54
|
*) echo "unknown device: $device" >&2; exit 2 ;;
|
package/bin/job-watchdog
CHANGED
|
@@ -43,6 +43,17 @@ fix_mode "$log_dir/stderr.log" 644
|
|
|
43
43
|
os="$(uname -s)"
|
|
44
44
|
cause=""
|
|
45
45
|
|
|
46
|
+
# See docs/operations/agent-pool.md, section "Design notes".
|
|
47
|
+
pool_unit=adl-agent-pool.service
|
|
48
|
+
if [ "$os" = Linux ] && [ -f "$systemd_dir/$pool_unit" ]; then
|
|
49
|
+
pool_state="$(systemctl is-active "$pool_unit" 2>/dev/null)"
|
|
50
|
+
if [ "$pool_state" = active ]; then
|
|
51
|
+
log "INFO watchdog: $pool_unit is active"
|
|
52
|
+
else
|
|
53
|
+
log "WARN watchdog: $pool_unit is ${pool_state:-unknown}; systemd restarts it (Restart=always); if it stays down: journalctl -u $pool_unit, or sudo adl fleet setup NAME --rearm"
|
|
54
|
+
fi
|
|
55
|
+
fi
|
|
56
|
+
|
|
46
57
|
case "$os" in
|
|
47
58
|
Darwin)
|
|
48
59
|
[ -f "$plist" ] || fail "$plist is missing; run: sudo adl fleet setup NAME --rearm"
|
package/bin/setup
CHANGED
|
@@ -337,6 +337,47 @@ EOF
|
|
|
337
337
|
systemctl daemon-reload
|
|
338
338
|
systemctl enable --now adl-global-tools-watchdog.timer
|
|
339
339
|
systemctl restart adl-global-tools-watchdog.timer
|
|
340
|
+
|
|
341
|
+
# Long-running services the manifest declares for this host (Feature 758):
|
|
342
|
+
# services.agent_pool => adl-agent-pool.service runs `adl pool run --host NAME`
|
|
343
|
+
# always on. Everything the poller needs is read from the manifest by the
|
|
344
|
+
# command itself; the unit carries no Environment= line. A host whose block is
|
|
345
|
+
# gone has the unit stopped, disabled and deleted, so it never outlives its
|
|
346
|
+
# declaration. --rearm re-renders and restarts it like the units above.
|
|
347
|
+
pool_unit="$systemd_dir/adl-agent-pool.service"
|
|
348
|
+
pool_declared="$(jq -r --arg host "$host" '(.linux.devices[$host].services.agent_pool // null) != null' "$package_dir/packages/fleet/manifest.json")" || {
|
|
349
|
+
echo "ERROR adl fleet setup: cannot read services.agent_pool from $package_dir/packages/fleet/manifest.json" >&2
|
|
350
|
+
exit 1
|
|
351
|
+
}
|
|
352
|
+
if [[ "$pool_declared" == true ]]; then
|
|
353
|
+
cat > "$pool_unit" <<EOF
|
|
354
|
+
[Unit]
|
|
355
|
+
Description=Adl elastic Hetzner agent pool poller (adl pool run)
|
|
356
|
+
After=network-online.target
|
|
357
|
+
Wants=network-online.target
|
|
358
|
+
|
|
359
|
+
[Service]
|
|
360
|
+
Type=simple
|
|
361
|
+
ExecStart=$adl_bin pool run --host $host
|
|
362
|
+
Restart=always
|
|
363
|
+
RestartSec=30
|
|
364
|
+
User=root
|
|
365
|
+
StandardOutput=append:/var/log/adl/stdout.log
|
|
366
|
+
StandardError=append:/var/log/adl/stderr.log
|
|
367
|
+
|
|
368
|
+
[Install]
|
|
369
|
+
WantedBy=multi-user.target
|
|
370
|
+
EOF
|
|
371
|
+
systemctl daemon-reload
|
|
372
|
+
systemctl enable --now adl-agent-pool.service
|
|
373
|
+
# enable --now leaves an already-running service on its old binary.
|
|
374
|
+
systemctl restart adl-agent-pool.service
|
|
375
|
+
elif [[ -e "$pool_unit" ]]; then
|
|
376
|
+
systemctl disable --now adl-agent-pool.service
|
|
377
|
+
rm -f -- "$pool_unit"
|
|
378
|
+
systemctl daemon-reload
|
|
379
|
+
echo "adl fleet setup: removed adl-agent-pool.service: $host no longer declares services.agent_pool"
|
|
380
|
+
fi
|
|
340
381
|
;;
|
|
341
382
|
esac
|
|
342
383
|
|
package/bin/validate-manifest
CHANGED
|
@@ -17,6 +17,23 @@ if ! jq -e '
|
|
|
17
17
|
def gitcfg: type == "object" and
|
|
18
18
|
(to_entries | all((.key | test("^[A-Za-z][A-Za-z0-9-]*\\..+")) and
|
|
19
19
|
(.value | gitcfg_value or (type == "array" and length > 0 and all(gitcfg_value)))));
|
|
20
|
+
def posint: type == "number" and . >= 1 and floor == .;
|
|
21
|
+
def nonneg: type == "number" and . >= 0 and floor == .;
|
|
22
|
+
def nes: type == "string" and length > 0;
|
|
23
|
+
def agent_pool: type == "object" and
|
|
24
|
+
(keys | sort) == ["agents_per_server", "capabilities", "hour_end_window_minutes", "identity", "location", "max_lifetime_minutes", "max_servers", "org", "poll_seconds", "project", "queue_id", "queue_threshold", "register_timeout_minutes", "server_type", "snapshot_label_selector", "sp_client_id", "sp_tenant_id", "trigger_ticks", "vault_env_file"] and
|
|
25
|
+
(.org | nes) and (.project | nes) and (.queue_id | posint) and
|
|
26
|
+
(.identity | . == "agent-tarun" or . == "agent-vivek" or . == "agent-reviewer") and
|
|
27
|
+
(.server_type | nes) and (.location | nes) and (.snapshot_label_selector | nes) and
|
|
28
|
+
(.agents_per_server | posint) and (.max_servers | posint) and (.max_lifetime_minutes | posint) and
|
|
29
|
+
(.register_timeout_minutes | posint) and (.poll_seconds | posint) and (.queue_threshold | nonneg) and
|
|
30
|
+
(.trigger_ticks | posint) and (.hour_end_window_minutes | nonneg and . <= 59) and
|
|
31
|
+
(.vault_env_file | type == "string" and test("^/[A-Za-z0-9._/-]+$") and (split("/") | index("..") | not)) and
|
|
32
|
+
(.capabilities | type == "object" and all(.[]; type == "string")) and
|
|
33
|
+
(.sp_client_id | type == "string" and (. == "UNSET" or test("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"))) and
|
|
34
|
+
(.sp_tenant_id | type == "string" and test("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"));
|
|
35
|
+
def agent_pool_services: type == "object" and (keys - ["agent_pool"] | length) == 0 and
|
|
36
|
+
((has("agent_pool") | not) or (.agent_pool | agent_pool));
|
|
20
37
|
keys == ["config", "linux", "mac"] and
|
|
21
38
|
.config.schema == 1 and
|
|
22
39
|
(.config.repository | type == "string" and test("^https://dev\\.azure\\.com/[A-Za-z0-9._-]+/[A-Za-z0-9._-]+/_git/[A-Za-z0-9._-]+$")) and
|
|
@@ -51,13 +68,14 @@ if ! jq -e '
|
|
|
51
68
|
(.mac.devices | type == "object") and
|
|
52
69
|
(.linux.common.tools | type == "object") and
|
|
53
70
|
(.linux.devices | type == "object") and
|
|
71
|
+
([.mac.devices[] | has("services")] | any | not) and
|
|
54
72
|
([.mac.devices[], .linux.devices[]] |
|
|
55
73
|
all(.minimum_free_gib >= 1) and
|
|
56
74
|
all((.home | type) == "string" and (.home | startswith("/"))) and
|
|
57
75
|
all((.default_agent | type) == "string" and (.default_agent | test("^agent-[a-z0-9-]+$"))) and
|
|
58
76
|
all((.git_user | type == "object" and (keys | sort) == ["email", "name"] and
|
|
59
77
|
all(.[]; type == "string" and length > 0))) and
|
|
60
|
-
all((keys - ["administrator", "default_agent", "git_user", "home", "minimum_free_gib", "schedule_minute", "scratch_repos", "brew_upgrade_all", "brew_accept_eula", "surface_clis", "repo_location", "tools"] | length) == 0) and
|
|
78
|
+
all((keys - ["administrator", "default_agent", "git_user", "home", "minimum_free_gib", "schedule_minute", "scratch_repos", "brew_upgrade_all", "brew_accept_eula", "surface_clis", "repo_location", "services", "tools"] | length) == 0) and
|
|
61
79
|
all((.brew_accept_eula // []) | type == "array" and (. | unique | length) == length and
|
|
62
80
|
all(type == "string" and test("^[A-Za-z0-9][A-Za-z0-9@._+/-]*$"))) and
|
|
63
81
|
all((.scratch_repos // []) | type == "array" and (. | unique | length) == length and
|
|
@@ -74,6 +92,9 @@ if ! jq -e '
|
|
|
74
92
|
all((.repo_location // "/ok") | type == "string" and startswith("/") and . != "/" and
|
|
75
93
|
(endswith("/") | not) and (contains("..") | not) and (test("\\s") | not) and
|
|
76
94
|
(ascii_downcase | contains("azagent") | not) and (ascii_downcase | contains("vsts.agent") | not)) and
|
|
95
|
+
# services (Feature 758): long-running systemd units, Linux devices only. agent_pool maps 1:1 onto
|
|
96
|
+
# PoolConfig (packages/agent-pool/src/types.ts); every field is required, none is defaulted.
|
|
97
|
+
all((.services // {}) | agent_pool_services) and
|
|
77
98
|
all((.brew_upgrade_all // false) | type == "boolean") and
|
|
78
99
|
all(
|
|
79
100
|
(.surface_clis // []) as $surfaces |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amsterdamdatalabs/adl-agent-control-darwin-arm64",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.64",
|
|
4
4
|
"description": "adl CLI binary for darwin/arm64 (agent identity + Azure DevOps front door — see docs/architecture/cli-design.md)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"os": [
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"packages/fleet/manifest.json",
|
|
15
15
|
"packages/fleet/manifest.schema.json",
|
|
16
16
|
"packages/fleet/src",
|
|
17
|
+
"packages/agent-pool/image/provision.sh",
|
|
17
18
|
"packages/agent-settings",
|
|
18
19
|
"packages/agent-skills",
|
|
19
20
|
"packages/repo-controls",
|
|
@@ -294,6 +294,12 @@ unsafeAllowUncertain = false # required true to allow disabling an
|
|
|
294
294
|
|
|
295
295
|
[rules."rm-smoke"]
|
|
296
296
|
enabled = false # explicit per-rule override; always wins
|
|
297
|
+
automationExempt = false # default false; with ADL_AGENT_HOOKS_OVERRIDE=1
|
|
298
|
+
# in the hook environment the rule is NOT
|
|
299
|
+
# enforced and one loud stderr line per
|
|
300
|
+
# context build names what was dropped.
|
|
301
|
+
# Adds to the shipped policy below; the
|
|
302
|
+
# env var alone relaxes the shipped set.
|
|
297
303
|
|
|
298
304
|
[repo]
|
|
299
305
|
protectedTrees = [".code-quality/", ".agents/"]
|
|
@@ -328,6 +334,24 @@ that project's full config schema (no `paths`, `hosts`, `test`, or
|
|
|
328
334
|
the command) that would resolve to disabled without
|
|
329
335
|
`rules.unsafeAllowUncertain = true` is a **config error** (fails loud),
|
|
330
336
|
not a silent override in either direction.
|
|
337
|
+
4. The automation override applies only after the resolution above, and only
|
|
338
|
+
when the hook process carries `ADL_AGENT_HOOKS_OVERRIDE=1` (Tarun's env
|
|
339
|
+
marker for dispatcher-driven automation). What it drops is the **shipped
|
|
340
|
+
policy** — `assets/automation-exempt.json`, which lists every rule and the
|
|
341
|
+
state the override puts it in: the `git` and `filesystem` rules are
|
|
342
|
+
`disabled`, except the branch-change and worktree-change rules
|
|
343
|
+
(`git.branch-mutation`, `git.worktree`, `adl.worktree-mutation`), which
|
|
344
|
+
are `retained` and always enforced; every other category is `enforced`.
|
|
345
|
+
A rule whose entry sets `automationExempt = true` is dropped too, so a
|
|
346
|
+
repo can widen the relaxation. An `uncertain`-category rule is never
|
|
347
|
+
dropped without `rules.unsafeAllowUncertain = true`, the same explicit
|
|
348
|
+
opt-in its ordinary resolution demands. An agent command that sets the
|
|
349
|
+
marker is denied by `adl.human-azdo-bypass`, so the override is not
|
|
350
|
+
self-service. The override never re-enables a rule and
|
|
351
|
+
never touches the `uncertain` guard for any other rule; the twin half for
|
|
352
|
+
the git hooks lives in `packages/repo-controls`
|
|
353
|
+
(`assets/automation-exempt.json`, same env marker). The full contract is
|
|
354
|
+
in `docs/operations/automation-override.md`.
|
|
331
355
|
|
|
332
356
|
### `[repo]`
|
|
333
357
|
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"env": "ADL_AGENT_HOOKS_OVERRIDE",
|
|
4
|
+
"description": "agent-hooks rule policy for the automation override. With ADL_AGENT_HOOKS_OVERRIDE=1 in the hook process environment, every rule with state \"disabled\" is dropped from the enabled set at context-build time; rules with state \"retained\" (branch-change and worktree-change) and state \"enforced\" (every other category) are enforced exactly as they are without the override. The override never re-enables a rule. A repo may add further exemptions with [rules.\"<id>\"] automationExempt = true in its adl-config.toml.",
|
|
5
|
+
"rules": [
|
|
6
|
+
{
|
|
7
|
+
"id": "parse.uncertain",
|
|
8
|
+
"category": "uncertain",
|
|
9
|
+
"state": "enforced",
|
|
10
|
+
"protects": "Fail closed on shell input the parser could not classify.",
|
|
11
|
+
"notes": "fail-closed parser backstop"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "agent.secrets-stay-unread",
|
|
15
|
+
"category": "tool-call",
|
|
16
|
+
"state": "enforced",
|
|
17
|
+
"protects": "Deny reading vault files or printing AGENT_VAULT_* env vars.",
|
|
18
|
+
"notes": "security core — vault files and AGENT_VAULT_* env"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "agent.tamper-protection",
|
|
22
|
+
"category": "tool-call",
|
|
23
|
+
"state": "enforced",
|
|
24
|
+
"protects": "Deny edits (tool, shell write, or git rewrite) to the files that wire a host's hooks.",
|
|
25
|
+
"notes": "security core — the files that wire the hooks themselves"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "git.hooks-path",
|
|
29
|
+
"category": "git",
|
|
30
|
+
"state": "disabled",
|
|
31
|
+
"protects": "Deny any git invocation that overrides core.hooksPath.",
|
|
32
|
+
"notes": "hook-disarm class (core.hooksPath override)"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "git.core-bare",
|
|
36
|
+
"category": "git",
|
|
37
|
+
"state": "disabled",
|
|
38
|
+
"protects": "Deny any git invocation that flips core.bare.",
|
|
39
|
+
"notes": "hook-disarm class (core.bare flip)"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "adl.git-user-override-block",
|
|
43
|
+
"category": "git",
|
|
44
|
+
"state": "disabled",
|
|
45
|
+
"protects": "Blanket deny (2026-10-12) of every `user.*` override on a git command: inline `-c` / `--config-env`, the `GIT_CONFIG_*` env-var equivalent, AND any `git conf...",
|
|
46
|
+
"notes": "security core — the only identity path is ADL_AGENT_ID_AGENT"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "git.stash",
|
|
50
|
+
"category": "git",
|
|
51
|
+
"state": "disabled",
|
|
52
|
+
"protects": "Deny every git stash action except list/show.",
|
|
53
|
+
"notes": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "git.clean",
|
|
57
|
+
"category": "git",
|
|
58
|
+
"state": "disabled",
|
|
59
|
+
"protects": "Deny git clean outright.",
|
|
60
|
+
"notes": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "git.rebase",
|
|
64
|
+
"category": "git",
|
|
65
|
+
"state": "disabled",
|
|
66
|
+
"protects": "Deny git rebase outright.",
|
|
67
|
+
"notes": ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "git.filter-branch",
|
|
71
|
+
"category": "git",
|
|
72
|
+
"state": "disabled",
|
|
73
|
+
"protects": "Deny git filter-branch outright.",
|
|
74
|
+
"notes": ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "git.restore",
|
|
78
|
+
"category": "git",
|
|
79
|
+
"state": "disabled",
|
|
80
|
+
"protects": "Deny git restore unless it is staged-only (an unstage, not a discard).",
|
|
81
|
+
"notes": ""
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "git.reset",
|
|
85
|
+
"category": "git",
|
|
86
|
+
"state": "disabled",
|
|
87
|
+
"protects": "Deny git reset unless it names only specific pathspecs after `--` (an unstage, not a rewind).",
|
|
88
|
+
"notes": ""
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "git.update-index",
|
|
92
|
+
"category": "git",
|
|
93
|
+
"state": "disabled",
|
|
94
|
+
"protects": "Deny git update-index unless it is a plain --unstage of named pathspecs.",
|
|
95
|
+
"notes": ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "git.no-verify",
|
|
99
|
+
"category": "git",
|
|
100
|
+
"state": "disabled",
|
|
101
|
+
"protects": "Deny git commit/push/merge with --no-verify (or commit -n).",
|
|
102
|
+
"notes": "hook-disarm class (--no-verify / amend)"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "git.amend",
|
|
106
|
+
"category": "git",
|
|
107
|
+
"state": "disabled",
|
|
108
|
+
"protects": "Deny git commit --amend.",
|
|
109
|
+
"notes": ""
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "git.protected-tree-commit",
|
|
113
|
+
"category": "git",
|
|
114
|
+
"state": "disabled",
|
|
115
|
+
"protects": "Deny a git commit that touches a protected tree, explicitly or staged.",
|
|
116
|
+
"notes": "pre-tool-use twin of the repo-controls integrity step"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "git.branch-mutation",
|
|
120
|
+
"category": "git",
|
|
121
|
+
"state": "retained",
|
|
122
|
+
"protects": "Deny every mutating git branch form and branch creation via git switch -c / git checkout -b.",
|
|
123
|
+
"notes": ""
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "git.commit-protected-branch",
|
|
127
|
+
"category": "git",
|
|
128
|
+
"state": "disabled",
|
|
129
|
+
"protects": "Deny git commit (and merge, cherry-pick, revert, am) while the target repo is on a protected branch, or when the target or its branch cannot be resolved.",
|
|
130
|
+
"notes": "CANDIDATE EVIDENCE: blocked az384 catch-up merge 3x (2026-10-19..20); rule reads merge destination as target"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "git.tag-delete",
|
|
134
|
+
"category": "git",
|
|
135
|
+
"state": "disabled",
|
|
136
|
+
"protects": "Deny git tag when it force-discards history.",
|
|
137
|
+
"notes": ""
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "git.switch-force",
|
|
141
|
+
"category": "git",
|
|
142
|
+
"state": "disabled",
|
|
143
|
+
"protects": "Deny git switch when it force-discards history.",
|
|
144
|
+
"notes": ""
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "git.worktree",
|
|
148
|
+
"category": "git",
|
|
149
|
+
"state": "retained",
|
|
150
|
+
"protects": "Allow worktree reconciliation (list/remove/prune/repair) and cap-aware add/tool-call handling; deny move/lock/unlock and anything over the 3-checkout cap.",
|
|
151
|
+
"notes": ""
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "git.update-ref",
|
|
155
|
+
"category": "git",
|
|
156
|
+
"state": "disabled",
|
|
157
|
+
"protects": "Deny git update-ref in every form (set, -d/--delete, --stdin).",
|
|
158
|
+
"notes": ""
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "git.symbolic-ref-write",
|
|
162
|
+
"category": "git",
|
|
163
|
+
"state": "disabled",
|
|
164
|
+
"protects": "Deny git symbolic-ref write forms (<name> <ref>, -d/--delete); the one-argument read form is allowed.",
|
|
165
|
+
"notes": ""
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "git.read-tree",
|
|
169
|
+
"category": "git",
|
|
170
|
+
"state": "disabled",
|
|
171
|
+
"protects": "Deny git read-tree unless it is a -n/--dry-run.",
|
|
172
|
+
"notes": ""
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "git.replace",
|
|
176
|
+
"category": "git",
|
|
177
|
+
"state": "disabled",
|
|
178
|
+
"protects": "Deny git replace except its listing forms (no arguments, -l/--list, --format).",
|
|
179
|
+
"notes": ""
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"id": "git.filter-repo",
|
|
183
|
+
"category": "git",
|
|
184
|
+
"state": "disabled",
|
|
185
|
+
"protects": "Deny git filter-repo outright.",
|
|
186
|
+
"notes": ""
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": "git.reflog-rewrite",
|
|
190
|
+
"category": "git",
|
|
191
|
+
"state": "disabled",
|
|
192
|
+
"protects": "Deny git reflog expire/delete; show/list/exists are read-only.",
|
|
193
|
+
"notes": ""
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "git.prune",
|
|
197
|
+
"category": "git",
|
|
198
|
+
"state": "disabled",
|
|
199
|
+
"protects": "Deny git prune unless it is a -n/--dry-run.",
|
|
200
|
+
"notes": ""
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": "git.gc-prune",
|
|
204
|
+
"category": "git",
|
|
205
|
+
"state": "disabled",
|
|
206
|
+
"protects": "Deny git gc when it force-discards history.",
|
|
207
|
+
"notes": ""
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "git.rm",
|
|
211
|
+
"category": "git",
|
|
212
|
+
"state": "disabled",
|
|
213
|
+
"protects": "Deny git rm in every form, including --cached.",
|
|
214
|
+
"notes": ""
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "git.mv-escape",
|
|
218
|
+
"category": "git",
|
|
219
|
+
"state": "disabled",
|
|
220
|
+
"protects": "Deny git mv that moves a protected tree outside the repository.",
|
|
221
|
+
"notes": ""
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"id": "git.checkout-dashdash",
|
|
225
|
+
"category": "git",
|
|
226
|
+
"state": "disabled",
|
|
227
|
+
"protects": "Deny `git checkout -- <path>` (discards working-tree changes).",
|
|
228
|
+
"notes": ""
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "fs.git-internals",
|
|
232
|
+
"category": "filesystem",
|
|
233
|
+
"state": "disabled",
|
|
234
|
+
"protects": "Deny any filesystem write (rm/trash/mv/cp/ln/rsync/truncate/redirect/tee/sed -i/perl -i/chmod/find -delete) into a .git directory or gitdir file.",
|
|
235
|
+
"notes": "git internals writes"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "fs.rm",
|
|
239
|
+
"category": "filesystem",
|
|
240
|
+
"state": "disabled",
|
|
241
|
+
"protects": "Deny rm/unlink; --help and --version alone are not a deletion.",
|
|
242
|
+
"notes": ""
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": "fs.mv",
|
|
246
|
+
"category": "filesystem",
|
|
247
|
+
"state": "disabled",
|
|
248
|
+
"protects": "Deny mv that moves a protected tree outside the repository.",
|
|
249
|
+
"notes": ""
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"id": "fs.trash",
|
|
253
|
+
"category": "filesystem",
|
|
254
|
+
"state": "disabled",
|
|
255
|
+
"protects": "Deny trash of the working directory, a system root, $HOME, or .git.",
|
|
256
|
+
"notes": ""
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "fs.canonical-checkout",
|
|
260
|
+
"category": "filesystem",
|
|
261
|
+
"state": "disabled",
|
|
262
|
+
"protects": "Deny any command reaching into ~/enact-vps, the canonical checkout the fleet builds from.",
|
|
263
|
+
"notes": ""
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"id": "tool.cargo",
|
|
267
|
+
"category": "tool",
|
|
268
|
+
"state": "enforced",
|
|
269
|
+
"protects": "Deny direct cargo invocations; steer at the repository's just recipes.",
|
|
270
|
+
"notes": ""
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "tool.bun-test",
|
|
274
|
+
"category": "tool",
|
|
275
|
+
"state": "enforced",
|
|
276
|
+
"protects": "Deny direct `bun test`; steer at the repository's just recipes.",
|
|
277
|
+
"notes": ""
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"id": "tool.azure-devops",
|
|
281
|
+
"category": "tool",
|
|
282
|
+
"state": "enforced",
|
|
283
|
+
"protects": "Deny direct az devops/repos/pipelines/boards/artifacts, az account get-access-token, az rest to Azure DevOps, and curl/wget/httpie/xh to Azure DevOps under e...",
|
|
284
|
+
"notes": ""
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"id": "tool.find",
|
|
288
|
+
"category": "tool",
|
|
289
|
+
"state": "enforced",
|
|
290
|
+
"protects": "Deny find unconditionally; steer at rg --files -g for path patterns and `search query \"<text>\"` only for docs/plans.",
|
|
291
|
+
"notes": ""
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "tool.grep",
|
|
295
|
+
"category": "tool",
|
|
296
|
+
"state": "enforced",
|
|
297
|
+
"protects": "Deny the grep family; steer at ast-grep / search / crg / rg (per-repo allowlist).",
|
|
298
|
+
"notes": ""
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"id": "tool.native-search",
|
|
302
|
+
"category": "tool-call",
|
|
303
|
+
"state": "enforced",
|
|
304
|
+
"protects": "Deny the native Grep/Glob/Search tools; steer at search <semantic query | keywords> (markdown), crg (code graph), rg, ast-grep.",
|
|
305
|
+
"notes": ""
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"id": "tool.frontend",
|
|
309
|
+
"category": "tool",
|
|
310
|
+
"state": "enforced",
|
|
311
|
+
"protects": "Deny mutating npx/vitest/jest/biome/tsc invocations; reads and tests are permitted.",
|
|
312
|
+
"notes": ""
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "tool.chmod-hook-disarm",
|
|
316
|
+
"category": "tool",
|
|
317
|
+
"state": "enforced",
|
|
318
|
+
"protects": "Deny chmod that would clear the executable bit on a git hook.",
|
|
319
|
+
"notes": "hook-disarm class (chmod on hook files)"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "shell.remote-script-exec",
|
|
323
|
+
"category": "tool",
|
|
324
|
+
"state": "enforced",
|
|
325
|
+
"protects": "Deny piping or substituting remotely fetched content into a shell interpreter.",
|
|
326
|
+
"notes": "remote script execution"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"id": "adl.human-azdo-bypass",
|
|
330
|
+
"category": "tool",
|
|
331
|
+
"state": "enforced",
|
|
332
|
+
"protects": "Deny an agent command that sets/exports/assigns ADL_HUMAN_AZDO, clears ADL_AGENT_ID_AGENT, or fakes a TTY to defeat bin/git-ado's human/agent decision.",
|
|
333
|
+
"notes": "security core — human pass-through marker"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"id": "adl.git-credential-bypass",
|
|
337
|
+
"category": "git",
|
|
338
|
+
"state": "disabled",
|
|
339
|
+
"protects": "Deny an absolute non-managed git binary, git remote update, git submodule update/sync/foreach, git credential fill/approve/reject, a direct credential-helper...",
|
|
340
|
+
"notes": "security core — credential routing"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "adl.security-keychain-ado",
|
|
344
|
+
"category": "tool",
|
|
345
|
+
"state": "enforced",
|
|
346
|
+
"protects": "Deny `security find-generic-password`/`find-internet-password` naming Azure DevOps — read the credential through adl instead of the macOS keychain directly.",
|
|
347
|
+
"notes": "security core — ADO keychain"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"id": "adl.run-required-for-writes",
|
|
351
|
+
"category": "tool-call",
|
|
352
|
+
"state": "enforced",
|
|
353
|
+
"protects": "Deny Azure DevOps access (git, az CLI, curl/wget/httpie, adl entry points, MCP tools) with no resolvable ADL agent identity.",
|
|
354
|
+
"notes": ""
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"id": "adl.git-push-branch-policy",
|
|
358
|
+
"category": "git",
|
|
359
|
+
"state": "disabled",
|
|
360
|
+
"protects": "Deny force/bypass-policy pushes and pushes to integration/main; route feature-branch pushes by role.",
|
|
361
|
+
"notes": ""
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"id": "adl.worktree-mutation",
|
|
365
|
+
"category": "git",
|
|
366
|
+
"state": "retained",
|
|
367
|
+
"protects": "Deny agents `adl worktree add` and `adl worktree prune --apply`; read-only worktree forms stay allowed.",
|
|
368
|
+
"notes": ""
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"id": "adl.git-identity",
|
|
372
|
+
"category": "git",
|
|
373
|
+
"state": "disabled",
|
|
374
|
+
"protects": "Deny an identity-bearing command whose inline ADL_AGENT_ID_AGENT is invalid/empty, or that runs through sudo/doas.",
|
|
375
|
+
"notes": ""
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"id": "adl.token-minting-role",
|
|
379
|
+
"category": "tool-call",
|
|
380
|
+
"state": "enforced",
|
|
381
|
+
"protects": "Deny adl id token / adl-agent-id exec --agent for any agent other than the effective session identity.",
|
|
382
|
+
"notes": ""
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"id": "adl.pr-create-update-role",
|
|
386
|
+
"category": "tool-call",
|
|
387
|
+
"state": "enforced",
|
|
388
|
+
"protects": "Deny pr_create_or_update for any identity other than a builder (agent-tarun/agent-vivek) or agent-reviewer (docs/operations/agent-permissions.md row 5).",
|
|
389
|
+
"notes": ""
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"id": "adl.pr-review-role",
|
|
393
|
+
"category": "tool-call",
|
|
394
|
+
"state": "enforced",
|
|
395
|
+
"protects": "Gate pr_review: comment for a builder or agent-reviewer (row 6); vote for agent-reviewer only, main only, fail-closed without a declared target (rows 7-8).",
|
|
396
|
+
"notes": ""
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"id": "adl.pr-complete-pending-decision",
|
|
400
|
+
"category": "tool-call",
|
|
401
|
+
"state": "enforced",
|
|
402
|
+
"protects": "Deny PR completion / auto-complete for every identity (docs/operations/agent-permissions.md row 9) — the MCP tool AND its adl mcp cli equivalent.",
|
|
403
|
+
"notes": ""
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"id": "adl.workitem-requires-tarun-or-vivek",
|
|
407
|
+
"category": "tool-call",
|
|
408
|
+
"state": "enforced",
|
|
409
|
+
"protects": "Deny the workitem_create_or_update_* tools for agent-reviewer (docs/operations/agent-permissions.md row 10) — the MCP tools AND their adl mcp cli equivalents.",
|
|
410
|
+
"notes": ""
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"id": "adl.build-run-role",
|
|
414
|
+
"category": "tool-call",
|
|
415
|
+
"state": "enforced",
|
|
416
|
+
"protects": "Deny build_run except the lead (agent-tarun/agent-vivek) re-queuing its own PR’s validation pipeline on that PR’s feature branch (docs/operations/agent-permi...",
|
|
417
|
+
"notes": ""
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"id": "advisory.finder",
|
|
421
|
+
"category": "advisory",
|
|
422
|
+
"state": "enforced",
|
|
423
|
+
"protects": "Advise on finder-tool choice for grep/egrep/fgrep/rgrep/ack/ag.",
|
|
424
|
+
"notes": ""
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"id": "advisory.coverage",
|
|
428
|
+
"category": "advisory",
|
|
429
|
+
"state": "enforced",
|
|
430
|
+
"protects": "Surface the live backend coverage floor alongside a denied cargo invocation.",
|
|
431
|
+
"notes": ""
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
}
|