@amsterdamdatalabs/adl-agent-control-darwin-arm64 0.1.59 → 0.1.63
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
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
version = 1
|
|
2
2
|
revision = 3
|
|
3
|
-
requires-python = ">=3.
|
|
4
|
-
|
|
5
|
-
[[package]]
|
|
6
|
-
name = "annotated-types"
|
|
7
|
-
version = "0.8.0"
|
|
8
|
-
source = { registry = "https://pypi.org/simple" }
|
|
9
|
-
sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" }
|
|
10
|
-
wheels = [
|
|
11
|
-
{ url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" },
|
|
12
|
-
]
|
|
13
|
-
|
|
14
|
-
[[package]]
|
|
15
|
-
name = "colorama"
|
|
16
|
-
version = "0.4.6"
|
|
17
|
-
source = { registry = "https://pypi.org/simple" }
|
|
18
|
-
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
|
|
19
|
-
wheels = [
|
|
20
|
-
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
|
21
|
-
]
|
|
3
|
+
requires-python = ">=3.15"
|
|
22
4
|
|
|
23
5
|
[[package]]
|
|
24
6
|
name = "adl-compliance"
|
|
@@ -43,6 +25,24 @@ requires-dist = [
|
|
|
43
25
|
[package.metadata.requires-dev]
|
|
44
26
|
dev = [{ name = "pytest", specifier = ">=8.3.0" }]
|
|
45
27
|
|
|
28
|
+
[[package]]
|
|
29
|
+
name = "annotated-types"
|
|
30
|
+
version = "0.8.0"
|
|
31
|
+
source = { registry = "https://pypi.org/simple" }
|
|
32
|
+
sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" }
|
|
33
|
+
wheels = [
|
|
34
|
+
{ url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" },
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[[package]]
|
|
38
|
+
name = "colorama"
|
|
39
|
+
version = "0.4.6"
|
|
40
|
+
source = { registry = "https://pypi.org/simple" }
|
|
41
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
|
|
42
|
+
wheels = [
|
|
43
|
+
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
|
44
|
+
]
|
|
45
|
+
|
|
46
46
|
[[package]]
|
|
47
47
|
name = "iniconfig"
|
|
48
48
|
version = "2.3.0"
|
|
@@ -72,7 +72,7 @@ wheels = [
|
|
|
72
72
|
|
|
73
73
|
[[package]]
|
|
74
74
|
name = "pydantic"
|
|
75
|
-
version = "2.
|
|
75
|
+
version = "2.14.1"
|
|
76
76
|
source = { registry = "https://pypi.org/simple" }
|
|
77
77
|
dependencies = [
|
|
78
78
|
{ name = "annotated-types" },
|
|
@@ -80,50 +80,50 @@ dependencies = [
|
|
|
80
80
|
{ name = "typing-extensions" },
|
|
81
81
|
{ name = "typing-inspection" },
|
|
82
82
|
]
|
|
83
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
83
|
+
sdist = { url = "https://files.pythonhosted.org/packages/7c/0b/8e10b2e693af8ec54346a14caf36221334775975a747c9ceaa3f8371d96d/pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26", size = 900362, upload-time = "2026-10-11T18:37:55.396Z" }
|
|
84
84
|
wheels = [
|
|
85
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
85
|
+
{ url = "https://files.pythonhosted.org/packages/35/ea/a56b9fe5066f3537b7882f77e9c5dfb26d8c2eefdaed9b5fc73d57b4dc22/pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454", size = 488106, upload-time = "2026-10-11T18:37:53.437Z" },
|
|
86
86
|
]
|
|
87
87
|
|
|
88
88
|
[[package]]
|
|
89
89
|
name = "pydantic-core"
|
|
90
|
-
version = "2.
|
|
90
|
+
version = "2.50.1"
|
|
91
91
|
source = { registry = "https://pypi.org/simple" }
|
|
92
92
|
dependencies = [
|
|
93
93
|
{ name = "typing-extensions" },
|
|
94
94
|
]
|
|
95
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
95
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a6/24/af4ec4be49fbc810f35b0bdcacc3d433b56bbfa469fd3bfd4ae116cd9bf1/pydantic_core-2.50.1.tar.gz", hash = "sha256:e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09", size = 513515, upload-time = "2026-10-11T18:35:44.82Z" }
|
|
96
96
|
wheels = [
|
|
97
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
98
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
99
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
100
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
101
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
102
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
103
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
104
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
105
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
106
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
107
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
108
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
109
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
110
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
111
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
112
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
113
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
114
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
115
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
116
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
117
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
118
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
119
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
120
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
121
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
122
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
123
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
124
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
125
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
126
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
97
|
+
{ url = "https://files.pythonhosted.org/packages/b2/84/23984b763d8862a02a13d27a44b6e8169428fd85ecfed88f54c29108604d/pydantic_core-2.50.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:8a6791afa2245e6c6b180122d105941644f5bd410bb18623b408808cc41a3102", size = 2224599, upload-time = "2026-10-11T18:34:04.016Z" },
|
|
98
|
+
{ url = "https://files.pythonhosted.org/packages/4d/90/a63cf8586abc1d1a3f6d9b18f0224789ebf003851f092ebda3c7c863fd32/pydantic_core-2.50.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:84f34323a61a365b4e9295de6028474754829aaddd59c7bf1a040e7487ef8f3c", size = 2024191, upload-time = "2026-10-11T18:34:05.901Z" },
|
|
99
|
+
{ url = "https://files.pythonhosted.org/packages/a6/6a/f34bff9808ffb4907fbf5f5040457d253cacf2da7fce9efbc99ca1b1a44d/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23edad659e8dbd8ca7e4e877fe6c81573abbdf215bd25a68b53e1272f58b80c7", size = 2048252, upload-time = "2026-10-11T18:34:07.757Z" },
|
|
100
|
+
{ url = "https://files.pythonhosted.org/packages/b2/54/13f419bf1eb59852003818e25935aaf175687d978f4c4bca70e08fe40a3b/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a5fce22f1e87d181e924e12da7d81cfe031fb3881a5ddf26ad28f141756ca43", size = 2173376, upload-time = "2026-10-11T18:34:09.592Z" },
|
|
101
|
+
{ url = "https://files.pythonhosted.org/packages/6d/6c/b5a34d24cd0c81669d8f8339d74e6815abcf2f8fb48ab4b49b84c09be1d5/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c73622ef819328873b53109ee4f77ceb598bffedd02daf916102be3228866b78", size = 2364559, upload-time = "2026-10-11T18:34:11.534Z" },
|
|
102
|
+
{ url = "https://files.pythonhosted.org/packages/eb/8d/d64d6216a8df365082665927ff923f183056f9049fee08e9777c9ac05296/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ce8c25ca38cc0e3d7753ba180808de2c0c8cb24eae0df64491e40921454e9831", size = 2444697, upload-time = "2026-10-11T18:34:13.535Z" },
|
|
103
|
+
{ url = "https://files.pythonhosted.org/packages/b8/0d/1b1149f60a00ea21ba5f70e28acbd40feb4598af414f80f53c921fac07c9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7689580e72a642ab5ec64d5f55b2e33636fa43b4ebe63c0c2c965ef307c7d1aa", size = 2159961, upload-time = "2026-10-11T18:34:15.56Z" },
|
|
104
|
+
{ url = "https://files.pythonhosted.org/packages/1e/35/f236549299dcc78e71e945495d7ec67e78d20844d0999c60601685003031/pydantic_core-2.50.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:d5c0e32fdbce7f1e8ef4d11f655694bf5f4175c757a9f1dc2be09b8864e5bcf5", size = 2234581, upload-time = "2026-10-11T18:34:17.502Z" },
|
|
105
|
+
{ url = "https://files.pythonhosted.org/packages/6a/85/26901a490522b7f75ef9bb9a7afb73e5bb550f0e1cb5b99a0069183e2eb9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:40f523349960fa30f3ea51404308ff50f9997a90df639590f47a057c1f32b415", size = 2244090, upload-time = "2026-10-11T18:34:19.402Z" },
|
|
106
|
+
{ url = "https://files.pythonhosted.org/packages/ca/2c/481bcfc70ceeb77a778ca6e5b705fe592cb64735c108157f81b7dd9c280e/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:d4193206b6587047437f6f11d7e776df23e1c1e23af2a54d9347275614791e10", size = 2277948, upload-time = "2026-10-11T18:34:21.317Z" },
|
|
107
|
+
{ url = "https://files.pythonhosted.org/packages/24/eb/f1e09333faa7ba447cde967310f758430cc7c5e987bdab5228816c70030d/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:84bc765b282a9d5b7fe0348b8648904f25a6a04b2139da52b1dd30c8ac3a2c8f", size = 2449688, upload-time = "2026-10-11T18:34:23.321Z" },
|
|
108
|
+
{ url = "https://files.pythonhosted.org/packages/d1/b3/036bde636db8f76d92996e81aefc75678ab5cec4a07eea1ad0c72a893fc3/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:ed1e728b39a383c81035b2459cfcb35d99dfb01f7d6ebe3a913bc1cc5b81e459", size = 2479286, upload-time = "2026-10-11T18:34:25.214Z" },
|
|
109
|
+
{ url = "https://files.pythonhosted.org/packages/d0/a3/07f018294ee18d144afeb6df1a47d9e92960f014be45c5ed13519fa5af95/pydantic_core-2.50.1-cp315-cp315-win32.whl", hash = "sha256:bc94f474417604bd383d2cd445d071b07dd55fedceed3ce33407bf1fcc107290", size = 2103683, upload-time = "2026-10-11T18:34:27.42Z" },
|
|
110
|
+
{ url = "https://files.pythonhosted.org/packages/5f/98/f9bd7e1f9b6709f155acb9ef826d9c3884fe925f811fd8e55b9b52280bad/pydantic_core-2.50.1-cp315-cp315-win_amd64.whl", hash = "sha256:983a662de2571cb2502fc8ff47b6770b03d025d2eb314c92f77b3f07c74720ed", size = 2171681, upload-time = "2026-10-11T18:34:29.508Z" },
|
|
111
|
+
{ url = "https://files.pythonhosted.org/packages/10/87/4bb3e1e7f385c076ab5af4d6dd0571b22042cd8207eb810d5b9fef15ae31/pydantic_core-2.50.1-cp315-cp315-win_arm64.whl", hash = "sha256:94845ff54dc5193f228cab81b2662a04bfbb892e95bdc15edf7399000ce57d54", size = 2156251, upload-time = "2026-10-11T18:34:31.455Z" },
|
|
112
|
+
{ url = "https://files.pythonhosted.org/packages/47/47/83643225b08f2aef6c8cc4bbe6e3f79c5e139c4364a6e450d0f399d87774/pydantic_core-2.50.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:4a53d13cdfbedbfa87f08b83c1a0a5efcc767d785a4b41934fa9cb672670493a", size = 2234363, upload-time = "2026-10-11T18:34:33.65Z" },
|
|
113
|
+
{ url = "https://files.pythonhosted.org/packages/5e/66/127ca649ba2f2462039dc1e694c6c01e00a3689f023a617364d3507e6d97/pydantic_core-2.50.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:efbecf43d321f7b9281441f1f213f7c21c66988b0e06c2730ba13ed47a46bb08", size = 2000972, upload-time = "2026-10-11T18:34:36.037Z" },
|
|
114
|
+
{ url = "https://files.pythonhosted.org/packages/5e/4f/e421e0a5d653b1203b090b2e48745976988d7338a647940704b5b9c2b399/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bc1f08f68dac9f9e83845a8039880aba2ab553eb9b2259c3243a313182c253fe", size = 2022925, upload-time = "2026-10-11T18:34:37.972Z" },
|
|
115
|
+
{ url = "https://files.pythonhosted.org/packages/d5/4e/ea5568e2491e1a71100f15ae8c2d01ef52db42a184a2d4e716bc79e5eb8f/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5dfe41f232befddb9c4377f6cfc702b51595e2d78ed082672adf8758d2c4619f", size = 2192867, upload-time = "2026-10-11T18:34:39.921Z" },
|
|
116
|
+
{ url = "https://files.pythonhosted.org/packages/ae/5e/3b8c3a35acbe219909ada5defad5d7d9fed845fb2b37bd5ec518f453c119/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:adc06d218a1cadfd2ec4628424d7d79ce4eba69c2965e7e7b55106f0da5208c8", size = 2388687, upload-time = "2026-10-11T18:34:42.184Z" },
|
|
117
|
+
{ url = "https://files.pythonhosted.org/packages/b6/aa/7889b4e515f91a2e8c0ae6b5081fec0feb30c4398d1434e14793c60f173a/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2cf91809d0721ab81592ba67bea7694821679c10b1a2e3c3460082b286c1918a", size = 2464415, upload-time = "2026-10-11T18:34:44.384Z" },
|
|
118
|
+
{ url = "https://files.pythonhosted.org/packages/08/78/93449e628eb8a6fdcce3eff9043081179d1bc7ce6f1bff32dc5006f41e00/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:23923ab9292c40da026330b1ecf4dc2618c8e86e0422e5d1fbf50d94d64ca4f8", size = 2150823, upload-time = "2026-10-11T18:34:46.392Z" },
|
|
119
|
+
{ url = "https://files.pythonhosted.org/packages/f4/f1/72c5bc129fceb0d00f05dc1e67f518c1728de1928c55f81fc13d7690de39/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:f3377c8c2b3ce898423c5e5dd94c7982e30aa7717a7e6ab2470b9de364963709", size = 2245806, upload-time = "2026-10-11T18:34:48.805Z" },
|
|
120
|
+
{ url = "https://files.pythonhosted.org/packages/28/2a/922a0e78f3aa6ab837b59f88190233fb8dad546c17995fde9bb3ed3b9b49/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:455a773617b5913bf5c20d0692e5787b119e52c4d40ea644ca31f5758fd31be2", size = 2264160, upload-time = "2026-10-11T18:34:50.876Z" },
|
|
121
|
+
{ url = "https://files.pythonhosted.org/packages/52/a8/0f1449e3e1b20941c9372faa18e7b6a092e30cdfa841902473f7989532ac/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:1a9006395dece0e32e704c315eff8a00bede494f6108546cfc5539c89fef4f9a", size = 2294031, upload-time = "2026-10-11T18:34:52.876Z" },
|
|
122
|
+
{ url = "https://files.pythonhosted.org/packages/d1/d0/1031f492857de70355fb16524bbb03efce5fd34c93ed4a1ec60be07e0d4b/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:d2d82aa62521c55ddfb000ae70f88cdd8de974078f6024e821dfe5addd0c818f", size = 2468423, upload-time = "2026-10-11T18:34:54.995Z" },
|
|
123
|
+
{ url = "https://files.pythonhosted.org/packages/46/52/269ffffa645b8e47906395a39cf9db1151ae9fa4bcd7f47b960bc31baf37/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:009634b83993777ddcd69cad0ffcace43dabde692109528e35f0fde91e386a8b", size = 2512598, upload-time = "2026-10-11T18:34:57.149Z" },
|
|
124
|
+
{ url = "https://files.pythonhosted.org/packages/31/5c/e47e28281f20326ff6f3c31d626f0a83e615d2d94ba41bb0ad6ec237184a/pydantic_core-2.50.1-cp315-cp315t-win32.whl", hash = "sha256:3fde4fdc6487a58d944ca87cf5adc95d5f266e872c19599f5f4c0a8a1b1f9f9f", size = 2098535, upload-time = "2026-10-11T18:34:59.313Z" },
|
|
125
|
+
{ url = "https://files.pythonhosted.org/packages/03/ad/759e181e69c1b472c60b2049e5f61d5da1deefdd5ce1df4bb2ebcf771f25/pydantic_core-2.50.1-cp315-cp315t-win_amd64.whl", hash = "sha256:1c8632d4ac04e6f91128fca584b3a8a507d81604c24eeaaad00d4be42765c32b", size = 2148645, upload-time = "2026-10-11T18:35:01.571Z" },
|
|
126
|
+
{ url = "https://files.pythonhosted.org/packages/6d/56/8a702c27e5be9f47e5f19d8669227424290e4c024e7c370279cbaf244b4e/pydantic_core-2.50.1-cp315-cp315t-win_arm64.whl", hash = "sha256:c3ede305158e75510be50869b319550ab072008c13d64d4ab1e094fb286b6f44", size = 2175297, upload-time = "2026-10-11T18:35:04.079Z" },
|
|
127
127
|
]
|
|
128
128
|
|
|
129
129
|
[[package]]
|
|
@@ -156,26 +156,6 @@ name = "pyyaml"
|
|
|
156
156
|
version = "6.0.3"
|
|
157
157
|
source = { registry = "https://pypi.org/simple" }
|
|
158
158
|
sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }
|
|
159
|
-
wheels = [
|
|
160
|
-
{ url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" },
|
|
161
|
-
{ url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" },
|
|
162
|
-
{ url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" },
|
|
163
|
-
{ url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" },
|
|
164
|
-
{ url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" },
|
|
165
|
-
{ url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" },
|
|
166
|
-
{ url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" },
|
|
167
|
-
{ url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" },
|
|
168
|
-
{ url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" },
|
|
169
|
-
{ url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" },
|
|
170
|
-
{ url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" },
|
|
171
|
-
{ url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" },
|
|
172
|
-
{ url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" },
|
|
173
|
-
{ url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" },
|
|
174
|
-
{ url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" },
|
|
175
|
-
{ url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" },
|
|
176
|
-
{ url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" },
|
|
177
|
-
{ url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },
|
|
178
|
-
]
|
|
179
159
|
|
|
180
160
|
[[package]]
|
|
181
161
|
name = "typing-extensions"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// The shipped automation-override policy: docs/operations/automation-override.md.
|
|
2
|
+
import policy from '../assets/automation-exempt.json'
|
|
3
|
+
|
|
4
|
+
/** The env marker that activates the override — see `./hook.ts`. */
|
|
5
|
+
export const AUTOMATION_OVERRIDE_ENV = 'ADL_AGENT_HOOKS_OVERRIDE'
|
|
6
|
+
|
|
7
|
+
/** The hook-step ids the automation override switches off, read from the shipped policy file. */
|
|
8
|
+
export const AUTOMATION_EXEMPT_STEPS: Readonly<Record<string, true>> = Object.fromEntries(
|
|
9
|
+
policy.steps.filter((step) => step.state === 'exempt').map((step) => [step.id, true]),
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
/** The hook-step ids the shipped policy keeps enforced while the override is active. */
|
|
13
|
+
export const AUTOMATION_ENFORCED_STEPS: Readonly<Record<string, true>> = Object.fromEntries(
|
|
14
|
+
policy.steps.filter((step) => step.state !== 'exempt').map((step) => [step.id, true]),
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
/** The hook-step ids that carry no gate config of their own and are never exemptible. */
|
|
18
|
+
export const AUTOMATION_NEVER_EXEMPT_STEPS: Readonly<Record<string, true>> = Object.fromEntries(
|
|
19
|
+
policy.notAStep.map((step) => [step.id, true]),
|
|
20
|
+
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs'
|
|
2
2
|
import { join } from 'node:path'
|
|
3
3
|
import { BRANCH_PREFIXES, COMMIT_TYPES } from '../../azdo/src/lib/commit-types.ts'
|
|
4
|
-
import { CONFIG_REL, INSTALL_HINT } from './constants.ts'
|
|
4
|
+
import { CONFIG_REL, HOOK_STEPS, INSTALL_HINT, isHookStep } from './constants.ts'
|
|
5
5
|
import { MERGE_STRATEGIES, type MergeStrategy } from './promote.ts'
|
|
6
6
|
|
|
7
7
|
export interface StaticCheck {
|
|
@@ -107,6 +107,16 @@ export interface RepoControlsConfig {
|
|
|
107
107
|
coverage: CoverageConfig
|
|
108
108
|
findings: FindingsConfig
|
|
109
109
|
integrity: { watched: string[] }
|
|
110
|
+
/**
|
|
111
|
+
* The config-owned half of the two-key automation override (Tarun's brief:
|
|
112
|
+
* dispatcher-driven agent sessions run with selectively disabled gates).
|
|
113
|
+
* `exempt` names `HOOK_STEPS` entries; a named step is skipped at hook time
|
|
114
|
+
* ONLY when the hook process environment also carries
|
|
115
|
+
* `ADL_AGENT_HOOKS_OVERRIDE=1`. Neither key alone changes anything, the
|
|
116
|
+
* list starts empty, and every skip prints one loud stderr line. Names are
|
|
117
|
+
* validated here against `HOOK_STEPS` — an unknown name fails config load.
|
|
118
|
+
*/
|
|
119
|
+
automation: { exempt: string[] }
|
|
110
120
|
}
|
|
111
121
|
|
|
112
122
|
/**
|
|
@@ -498,7 +508,7 @@ export function parseConfig(text: string): RepoControlsConfig {
|
|
|
498
508
|
// has its own schema and its own strict decoder in `compliance-config.ts`. Listing it
|
|
499
509
|
// keeps a typo elsewhere in `[controls]` failing loud without this decoder having to
|
|
500
510
|
// know anything about the compliance schema.
|
|
501
|
-
problems.unknownKeys(controls, ['branches', 'pre_commit', 'pre_push', 'commit_msg', 'post_commit', 'compliance', 'coverage', 'findings', 'integrity', 'release'], '')
|
|
511
|
+
problems.unknownKeys(controls, ['branches', 'pre_commit', 'pre_push', 'commit_msg', 'post_commit', 'compliance', 'coverage', 'findings', 'integrity', 'release', 'automation'], '')
|
|
502
512
|
|
|
503
513
|
const branches = problems.table(controls, 'branches', ['protected', 'prefixes'])
|
|
504
514
|
if (branches.prefixes !== undefined) problems.add('branches.prefixes is no longer configurable — delete it; branch prefixes are fixed to the commit types')
|
|
@@ -534,6 +544,12 @@ export function parseConfig(text: string): RepoControlsConfig {
|
|
|
534
544
|
// for it — the same shape `pre_push.static_checks` already uses for an
|
|
535
545
|
// opaque, repo-authored shell command this package never interprets.
|
|
536
546
|
const findings = problems.optionalTable(controls, 'findings', ['floor', 'counters'])
|
|
547
|
+
// The two-key automation override's config half: which named runHook steps
|
|
548
|
+
// MAY be skipped when the hook environment carries ADL_AGENT_HOOKS_OVERRIDE=1.
|
|
549
|
+
// Absent (or an empty list) is the starting state: nothing is exempt. Entry
|
|
550
|
+
// names are validated against the exported HOOK_STEPS vocabulary here —
|
|
551
|
+
// a name no step uses is a config error, never a silently ignored string.
|
|
552
|
+
const automation = problems.optionalTable(controls, 'automation', ['exempt'])
|
|
537
553
|
// Every hook gets the same seam. `post_commit` in particular is not
|
|
538
554
|
// decoration: a producer that defers work from pre-commit has nowhere to
|
|
539
555
|
// land it without one.
|
|
@@ -584,6 +600,7 @@ export function parseConfig(text: string): RepoControlsConfig {
|
|
|
584
600
|
remote: problems.string(prePush, 'remote', 'pre_push.remote', REMOTE_RE),
|
|
585
601
|
},
|
|
586
602
|
integrity: { watched: parseWatched(integrity.watched, problems) },
|
|
603
|
+
automation: { exempt: parseAutomationExempt(automation.exempt, problems) },
|
|
587
604
|
coverage: {
|
|
588
605
|
summary: problems.optionalString(coverage, 'summary', 'coverage.summary', DEFAULT_COVERAGE_SUMMARY),
|
|
589
606
|
produce: problems.optionalString(coverage, 'produce', 'coverage.produce', ''),
|
|
@@ -658,6 +675,30 @@ function parseWatched(value: unknown, problems: Problems): string[] {
|
|
|
658
675
|
return watched
|
|
659
676
|
}
|
|
660
677
|
|
|
678
|
+
/**
|
|
679
|
+
* `[controls.automation].exempt` — the runHook step names the two-key
|
|
680
|
+
* automation override may skip. Absent means nothing is exempt (the empty
|
|
681
|
+
* list is a valid, explicit spelling of the same). Every entry must name a
|
|
682
|
+
* step in the exported `HOOK_STEPS` vocabulary: an exemption that names no
|
|
683
|
+
* real gate would read as protection but protect nothing.
|
|
684
|
+
*/
|
|
685
|
+
function parseAutomationExempt(value: unknown, problems: Problems): string[] {
|
|
686
|
+
if (value === undefined) return []
|
|
687
|
+
if (!Array.isArray(value) || value.some((entry) => typeof entry !== 'string')) {
|
|
688
|
+
problems.add('automation.exempt must be an array of strings')
|
|
689
|
+
return []
|
|
690
|
+
}
|
|
691
|
+
const exempt: string[] = []
|
|
692
|
+
for (const entry of value as string[]) {
|
|
693
|
+
if (!isHookStep(entry)) {
|
|
694
|
+
problems.add(`automation.exempt entry is not a known hook step: '${entry}' (expected one of: ${HOOK_STEPS.join(', ')})`)
|
|
695
|
+
continue
|
|
696
|
+
}
|
|
697
|
+
exempt.push(entry)
|
|
698
|
+
}
|
|
699
|
+
return exempt
|
|
700
|
+
}
|
|
701
|
+
|
|
661
702
|
function parseExportLinks(value: unknown, problems: Problems): string[] {
|
|
662
703
|
if (value === undefined) return []
|
|
663
704
|
if (!Array.isArray(value) || value.some((entry) => typeof entry !== 'string')) {
|
|
@@ -41,6 +41,33 @@ export const COMPLIANCE_ROOT = join(PACKAGE_ROOT, 'package', 'adl-compliance')
|
|
|
41
41
|
export const HOOK_NAMES = ['pre-commit', 'commit-msg', 'pre-push', 'post-commit', 'post-checkout', 'post-merge'] as const
|
|
42
42
|
export type HookName = (typeof HOOK_NAMES)[number]
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* The named steps `runHook` can run, in chain order — the stable vocabulary
|
|
46
|
+
* `[controls.automation] exempt` names and the skip line quotes. Adding a
|
|
47
|
+
* step to `runHook` without adding it here means the config decoder cannot
|
|
48
|
+
* validate it, so the two lists must move together.
|
|
49
|
+
*
|
|
50
|
+
* The steps that carry no gate config of their own are NOT steps and are
|
|
51
|
+
* never exempt: the LFS chain, the bundled standard script, repository
|
|
52
|
+
* declared `static_checks`, and the post-checkout worktree backstop. That
|
|
53
|
+
* exclusion set lives in `src/automation-exempt.ts` (the shipped policy),
|
|
54
|
+
* not here — this list is only the vocabulary a repo may name.
|
|
55
|
+
*/
|
|
56
|
+
export const HOOK_STEPS = [
|
|
57
|
+
'integrity',
|
|
58
|
+
'doctor',
|
|
59
|
+
'doc-freshness',
|
|
60
|
+
'compliance',
|
|
61
|
+
'staged-coverage',
|
|
62
|
+
'protected-branch',
|
|
63
|
+
'promotion-governance',
|
|
64
|
+
'coverage-produce',
|
|
65
|
+
'coverage-ratchet',
|
|
66
|
+
'findings-ratchet',
|
|
67
|
+
] as const
|
|
68
|
+
export type HookStep = (typeof HOOK_STEPS)[number]
|
|
69
|
+
export const isHookStep = (name: string): name is HookStep => (HOOK_STEPS as readonly string[]).includes(name)
|
|
70
|
+
|
|
44
71
|
|
|
45
72
|
|
|
46
73
|
// Repository-relative paths written into target repositories.
|
|
@@ -3,7 +3,8 @@ import { tmpdir } from 'node:os'
|
|
|
3
3
|
import { join } from 'node:path'
|
|
4
4
|
import { declaredComplianceTree, LOCKFILE_KEYS, loadComplianceConfig, parseComplianceConfig } from './compliance-config.ts'
|
|
5
5
|
import { configEnv, type FindingsConfig, loadConfig, parseConfig, type StaticCheck } from './config.ts'
|
|
6
|
-
import { BUNDLE_ROOT, COMPLIANCE_ROOT, CONFIG_REL, HOOK_NAMES, type HookName } from './constants.ts'
|
|
6
|
+
import { BUNDLE_ROOT, COMPLIANCE_ROOT, CONFIG_REL, HOOK_NAMES, type HookName, type HookStep } from './constants.ts'
|
|
7
|
+
import { AUTOMATION_EXEMPT_STEPS, AUTOMATION_OVERRIDE_ENV } from './automation-exempt.ts'
|
|
7
8
|
import { docFreshnessProblems, inScope } from './doc-freshness.ts'
|
|
8
9
|
import { doctor, type DoctorReport } from './doctor.ts'
|
|
9
10
|
import { commitRequiredProblems, integrityProblems } from './integrity.ts'
|
|
@@ -212,6 +213,25 @@ export interface StagedComplianceGate {
|
|
|
212
213
|
enabled: string[]
|
|
213
214
|
}
|
|
214
215
|
|
|
216
|
+
/**
|
|
217
|
+
* The repo's own automation exemptions, read from the CANDIDATE COMMIT's
|
|
218
|
+
* `adl-config.toml` (the staged index), not the working tree — the same
|
|
219
|
+
* source `stagedComplianceGate` reads the compliance flag from.
|
|
220
|
+
*
|
|
221
|
+
* `adl-config.toml` is deliberately editable by agents (Tarun, 2026-10-13:
|
|
222
|
+
* "adl-config.toml can be editted but not committed by the agents"), so the
|
|
223
|
+
* working-tree copy is agent-writable. Reading the exemption list from the
|
|
224
|
+
* staged index means an exemption only takes effect when it is COMMITTED —
|
|
225
|
+
* an agent that edits the working tree cannot stand a gate down for the
|
|
226
|
+
* commit it is making, and cannot land the edit either (the commit is
|
|
227
|
+
* refused by the integrity gate, which watches this file).
|
|
228
|
+
*/
|
|
229
|
+
function stagedAutomationExempt(repo: string, env: Env): string[] {
|
|
230
|
+
const shown = capture(['git', 'show', ':adl-config.toml'], repo, env)
|
|
231
|
+
if (shown.code !== 0) return []
|
|
232
|
+
return parseConfig(shown.stdout).automation.exempt
|
|
233
|
+
}
|
|
234
|
+
|
|
215
235
|
/** The compliance flag and the enabled gate list, both read from the candidate commit's adl-config.toml. */
|
|
216
236
|
export function stagedComplianceGate(repo: string, env: Env): StagedComplianceGate {
|
|
217
237
|
const shown = capture(['git', 'show', ':adl-config.toml'], repo, env)
|
|
@@ -807,6 +827,28 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
807
827
|
const repo = top.stdout.trim()
|
|
808
828
|
const bashNote = bashWarning(context.env)
|
|
809
829
|
if (bashNote) context.err(bashNote)
|
|
830
|
+
// The automation override (Tarun's dispatcher-driven-automation brief): a
|
|
831
|
+
// named step is skipped when the hook environment carries
|
|
832
|
+
// ADL_AGENT_HOOKS_OVERRIDE=1 AND the step is exempt — either by the SHIPPED
|
|
833
|
+
// policy (assets/automation-exempt.json) or by the repo's own
|
|
834
|
+
// [controls.automation].exempt list. Without the env var nothing is
|
|
835
|
+
// skipped; each skip prints one loud line so automation always leaves an
|
|
836
|
+
// audit trail. The exempt set resolves lazily — a hook that never consults
|
|
837
|
+
// it never loads config for it, and without the env var it is never loaded
|
|
838
|
+
// at all.
|
|
839
|
+
const automationOverride = context.env[AUTOMATION_OVERRIDE_ENV] === '1'
|
|
840
|
+
let automationExemptSteps: Readonly<Record<string, true>> | null = null
|
|
841
|
+
const skipForAutomation = (step: HookStep): boolean => {
|
|
842
|
+
if (!automationOverride) return false
|
|
843
|
+
automationExemptSteps ??= {
|
|
844
|
+
...AUTOMATION_EXEMPT_STEPS,
|
|
845
|
+
...Object.fromEntries(stagedAutomationExempt(repo, context.env).map((name) => [name, true] as const)),
|
|
846
|
+
}
|
|
847
|
+
if (automationExemptSteps[step] !== true) return false
|
|
848
|
+
context.err(`adl repo controls: automation override — skipping '${step}' (ADL_AGENT_HOOKS_OVERRIDE)`)
|
|
849
|
+
logHookEvent(name, `OVERRIDE skip=${step}`, 'ADL_AGENT_HOOKS_OVERRIDE=1', `automation override skipped the '${step}' step`, repo)
|
|
850
|
+
return true
|
|
851
|
+
}
|
|
810
852
|
// The worktree-count backstop (docs/operations/worktree-guard.md). Git has no
|
|
811
853
|
// pre-worktree hook, so this cannot stop `git worktree add` from creating
|
|
812
854
|
// the checkout — it runs after, in the NEW worktree, and actively removes it
|
|
@@ -822,7 +864,7 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
822
864
|
// The atomic index gate comes first. A modified managed hook can make doctor
|
|
823
865
|
// fail too, but integrity must name every protected path rather than masking
|
|
824
866
|
// it behind that secondary symptom.
|
|
825
|
-
if (name === 'pre-commit') {
|
|
867
|
+
if (name === 'pre-commit' && !skipForAutomation('integrity')) {
|
|
826
868
|
const code = integrityGate(
|
|
827
869
|
() => capture(['git', 'status', '--porcelain=v1', '-z', '--untracked-files=all'], repo, context.env),
|
|
828
870
|
() => capture(['git', 'diff', '--cached', '--name-only', '--no-renames', '-z'], repo, context.env),
|
|
@@ -836,11 +878,11 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
836
878
|
// governance checks are deliberately excluded here (2026-09-28, Tarun):
|
|
837
879
|
// they need network access and a minted token, which a commit must never
|
|
838
880
|
// require — see azureDevOpsPromotionGovernanceGate below, run at pre-push.
|
|
839
|
-
if (name === 'pre-commit') {
|
|
881
|
+
if (name === 'pre-commit' && !skipForAutomation('doctor')) {
|
|
840
882
|
const code = doctorGate(() => doctor(repo, context.env, { includeAzureDevOpsGovernance: false }), context.err)
|
|
841
883
|
if (code !== 0) return code
|
|
842
884
|
}
|
|
843
|
-
if (name === 'pre-commit' && loadConfig(repo).preCommit.docFreshness) {
|
|
885
|
+
if (name === 'pre-commit' && loadConfig(repo).preCommit.docFreshness && !skipForAutomation('doc-freshness')) {
|
|
844
886
|
const code = stagedDocFreshness(repo, new Date(), context)
|
|
845
887
|
if (code !== 0) return code
|
|
846
888
|
}
|
|
@@ -851,7 +893,7 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
851
893
|
// when `[controls.compliance].enabled` is empty -- the same "wrapper on,
|
|
852
894
|
// work gated by configured state" shape as stagedCoverage/coverageRatchet/
|
|
853
895
|
// findingsRatchet above and the docFreshness floor's empty-files case.
|
|
854
|
-
if (name === 'pre-commit') {
|
|
896
|
+
if (name === 'pre-commit' && !skipForAutomation('compliance')) {
|
|
855
897
|
const code = stagedComplianceStep(
|
|
856
898
|
stagedComplianceGate(repo, context.env),
|
|
857
899
|
() =>
|
|
@@ -865,7 +907,7 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
865
907
|
// Staged coverage, through the repository's declared command. Was a hardcoded
|
|
866
908
|
// shell-out inside the bundled pre-commit into this package's copy of the
|
|
867
909
|
// consumer's coverage code; see `stagedCoverageStep`.
|
|
868
|
-
if (name === 'pre-commit' && loadConfig(repo).preCommit.stagedCoverage) {
|
|
910
|
+
if (name === 'pre-commit' && loadConfig(repo).preCommit.stagedCoverage && !skipForAutomation('staged-coverage')) {
|
|
869
911
|
const code = stagedCoverageStep(
|
|
870
912
|
loadConfig(repo).coverage,
|
|
871
913
|
(command) => capture(['bash', '-c', command], repo, context.env),
|
|
@@ -889,7 +931,7 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
889
931
|
// commits; this gate is for repositories that want the same protection on
|
|
890
932
|
// the host-bypass path. Runs LAST in the pre-commit chain so file-level
|
|
891
933
|
// gates deny a commit on content grounds first.
|
|
892
|
-
if (name === 'pre-commit' && loadConfig(repo).preCommit.branchProtection) {
|
|
934
|
+
if (name === 'pre-commit' && loadConfig(repo).preCommit.branchProtection && !skipForAutomation('protected-branch')) {
|
|
893
935
|
const code = protectedBranchGate(repo, context.env, context.err)
|
|
894
936
|
if (code !== 0) return code
|
|
895
937
|
}
|
|
@@ -899,7 +941,7 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
899
941
|
// itself returns `[]` (an unconditional pass) when the repository declares
|
|
900
942
|
// no `[controls.release]` at all, so this runs on every pre-push rather than
|
|
901
943
|
// behind its own config flag.
|
|
902
|
-
if (name === 'pre-push') {
|
|
944
|
+
if (name === 'pre-push' && !skipForAutomation('promotion-governance')) {
|
|
903
945
|
const code = azureDevOpsPromotionGovernanceGate(() => doctor(repo, context.env), context.err)
|
|
904
946
|
if (code !== 0) return code
|
|
905
947
|
}
|
|
@@ -907,7 +949,7 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
907
949
|
// wrote. Opt-in: `coverageProduce` defaults OFF (new gates opt in), unlike
|
|
908
950
|
// the ratchet's ON. Armed with no declared command, the step itself fails
|
|
909
951
|
// loud — a step that measures nothing is not a pass; off is a no-op.
|
|
910
|
-
if (name === 'pre-push' && loadConfig(repo).prePush.coverageProduce) {
|
|
952
|
+
if (name === 'pre-push' && loadConfig(repo).prePush.coverageProduce && !skipForAutomation('coverage-produce')) {
|
|
911
953
|
const code = coverageProduceStep(
|
|
912
954
|
loadConfig(repo).coverage.producePush,
|
|
913
955
|
(command) => capture(['bash', '-c', command], repo, context.env),
|
|
@@ -917,7 +959,7 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
917
959
|
}
|
|
918
960
|
// The coverage ratchet at push. Was `command.ts check-push` inside the bundled
|
|
919
961
|
// pre-push, running the package's copy of the consumer's coverage code.
|
|
920
|
-
if (name === 'pre-push' && loadConfig(repo).prePush.coverageRatchet) {
|
|
962
|
+
if (name === 'pre-push' && loadConfig(repo).prePush.coverageRatchet && !skipForAutomation('coverage-ratchet')) {
|
|
921
963
|
const rel = loadConfig(repo).coverage.summary
|
|
922
964
|
const at = (ref: string): string | null => {
|
|
923
965
|
const shown = capture(['git', 'show', `${ref}:${rel}`], repo, context.env)
|
|
@@ -960,7 +1002,7 @@ export function runHook(name: HookName, args: string[], context: RunContext): nu
|
|
|
960
1002
|
// that check's captured stdout, so the tool runs once per push. Grading
|
|
961
1003
|
// reads the manifest the script just wrote; a counter with no row is
|
|
962
1004
|
// could-not-run and blocks, never zero findings.
|
|
963
|
-
if (name === 'pre-push' && loadConfig(repo).prePush.findingsRatchet) {
|
|
1005
|
+
if (name === 'pre-push' && loadConfig(repo).prePush.findingsRatchet && !skipForAutomation('findings-ratchet')) {
|
|
964
1006
|
const code = gradePushedFindings(repo, context)
|
|
965
1007
|
if (code !== 0) return code
|
|
966
1008
|
}
|