@amsterdamdatalabs/adl-agent-control-darwin-arm64 0.1.58 → 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/repo-search-mcp +2 -2
- 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/agent-skills/dist/manifest.d.ts.map +1 -1
- package/packages/agent-skills/dist/manifest.js +7 -1
- package/packages/agent-skills/dist/manifest.js.map +1 -1
- package/packages/agent-skills/src/manifest.ts +8 -3
- package/packages/fleet/manifest.json +36 -12
- package/packages/fleet/manifest.schema.json +34 -0
- package/packages/fleet/src/repo-maintain.ts +16 -16
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,sBAAsB,mCAAmC,CAAC;AAGvE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,yJAAyJ;IACzJ,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACpD;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,gHAAgH;AAChH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,sBAAsB,mCAAmC,CAAC;AAGvE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,yJAAyJ;IACzJ,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACpD;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,gHAAgH;AAChH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,CAmB9D;AAED,kMAAkM;AAClM,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAAG,IAAI,CAQ/H;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAGjG;AAED,6EAA6E;AAC7E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAUnG;AAED,+HAA+H;AAC/H,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAQxE"}
|
|
@@ -24,7 +24,13 @@ export function readManifest(targetRepo) {
|
|
|
24
24
|
const path = manifestPathFor(targetRepo);
|
|
25
25
|
if (!existsSync(path))
|
|
26
26
|
return { schema: MANIFEST_SCHEMA, files: [] };
|
|
27
|
-
|
|
27
|
+
let raw;
|
|
28
|
+
try {
|
|
29
|
+
raw = JSON.parse(readFileSync(path, "utf8"));
|
|
30
|
+
}
|
|
31
|
+
catch (cause) {
|
|
32
|
+
throw new Error(`agent-skills deploy manifest is not valid JSON: ${path} (${cause.message})`);
|
|
33
|
+
}
|
|
28
34
|
if (raw === null || typeof raw !== "object" || raw.schema !== MANIFEST_SCHEMA || !Array.isArray(raw.files)) {
|
|
29
35
|
throw new Error(`agent-skills deploy manifest is malformed: ${path}`);
|
|
30
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,CAAC,MAAM,sBAAsB,GAAG,gCAAgC,CAAC;AACvE,MAAM,eAAe,GAAG,CAAC,CAAC;AAU1B,MAAM,UAAU,eAAe,CAAC,UAAkB;IAChD,OAAO,IAAI,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAC;AAClD,CAAC;AAED,gHAAgH;AAChH,MAAM,UAAU,YAAY,CAAC,UAAkB;IAC7C,MAAM,IAAI,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IACzC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAErE,
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"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"}
|
|
@@ -35,16 +35,21 @@ export function readManifest(targetRepo: string): SkillManifest {
|
|
|
35
35
|
const path = manifestPathFor(targetRepo);
|
|
36
36
|
if (!existsSync(path)) return { schema: MANIFEST_SCHEMA, files: [] };
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
let raw: { schema?: unknown; files?: unknown; hashes?: unknown } | null;
|
|
39
|
+
try {
|
|
40
|
+
raw = JSON.parse(readFileSync(path, "utf8"));
|
|
41
|
+
} catch (cause) {
|
|
42
|
+
throw new Error(`agent-skills deploy manifest is not valid JSON: ${path} (${(cause as Error).message})`);
|
|
43
|
+
}
|
|
39
44
|
if (raw === null || typeof raw !== "object" || raw.schema !== MANIFEST_SCHEMA || !Array.isArray(raw.files)) {
|
|
40
45
|
throw new Error(`agent-skills deploy manifest is malformed: ${path}`);
|
|
41
46
|
}
|
|
42
|
-
const files = raw.files.map(String);
|
|
47
|
+
const files = (raw.files as unknown[]).map(String);
|
|
43
48
|
if (raw.hashes === undefined) return { schema: MANIFEST_SCHEMA, files };
|
|
44
49
|
if (raw.hashes === null || typeof raw.hashes !== "object" || Array.isArray(raw.hashes)) {
|
|
45
50
|
throw new Error(`agent-skills deploy manifest is malformed: ${path}`);
|
|
46
51
|
}
|
|
47
|
-
return { schema: MANIFEST_SCHEMA, files, hashes: Object.fromEntries(Object.entries(raw.hashes).map(([file, hash]) => [file, String(hash)])) };
|
|
52
|
+
return { schema: MANIFEST_SCHEMA, files, hashes: Object.fromEntries(Object.entries(raw.hashes as Record<string, unknown>).map(([file, hash]) => [file, String(hash)])) };
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
/** Skips the write entirely when the serialized content is already byte-identical (independent review, 2026-09-29, finding 8: a genuine no-op run must not touch the manifest's mtime either). */
|
|
@@ -165,6 +165,17 @@
|
|
|
165
165
|
"search": {"manager": "shim", "package": "enact-docs-search", "executable": "/usr/local/bin/search"},
|
|
166
166
|
"shfmt": {"manager": "brew", "package": "shfmt", "executable": "shfmt"},
|
|
167
167
|
"tailscale": {"manager": "apt", "package": "tailscale", "executable": "/usr/bin/tailscale"},
|
|
168
|
+
"build-essential": {"manager": "apt", "package": "build-essential", "executable": "/usr/bin/make"},
|
|
169
|
+
"docker-engine": {"manager": "apt", "package": "docker-ce", "executable": "/usr/bin/dockerd"},
|
|
170
|
+
"git-lfs": {"manager": "apt", "package": "git-lfs", "executable": "/usr/bin/git-lfs"},
|
|
171
|
+
"golang-go": {"manager": "apt", "package": "golang-go", "executable": "/usr/bin/go"},
|
|
172
|
+
"lsof": {"manager": "apt", "package": "lsof", "executable": "/usr/bin/lsof"},
|
|
173
|
+
"postgresql-18": {"manager": "apt", "package": "postgresql-18", "executable": "/usr/lib/postgresql/18/bin/postgres"},
|
|
174
|
+
"python3": {"manager": "apt", "package": "python3", "executable": "/usr/bin/python3"},
|
|
175
|
+
"cargo": {"manager": "apt", "package": "cargo", "executable": "/usr/bin/cargo"},
|
|
176
|
+
"rustc": {"manager": "apt", "package": "rustc", "executable": "/usr/bin/rustc"},
|
|
177
|
+
"unzip": {"manager": "apt", "package": "unzip", "executable": "/usr/bin/unzip"},
|
|
178
|
+
"xvfb": {"manager": "apt", "package": "xvfb", "executable": "/usr/bin/xvfb-run"},
|
|
168
179
|
"uv": {"manager": "brew", "package": "uv", "executable": "uv"},
|
|
169
180
|
"yq": {"manager": "brew", "package": "yq", "executable": "yq"}
|
|
170
181
|
}
|
|
@@ -186,11 +197,7 @@
|
|
|
186
197
|
{"name": "kimi", "manager": "native", "command": "kimi", "update_args": ["upgrade"]},
|
|
187
198
|
{"name": "codex", "manager": "unknown", "report_only": true, "executable": "/root/codex"}
|
|
188
199
|
],
|
|
189
|
-
"tools": {
|
|
190
|
-
"docker-engine": {"manager": "apt", "package": "docker-ce", "executable": "/usr/bin/dockerd"},
|
|
191
|
-
"lsof": {"manager": "apt", "package": "lsof", "executable": "/usr/bin/lsof"},
|
|
192
|
-
"unzip": {"manager": "apt", "package": "unzip", "executable": "/usr/bin/unzip"}
|
|
193
|
-
}
|
|
200
|
+
"tools": {}
|
|
194
201
|
},
|
|
195
202
|
"strato-vps-1": {
|
|
196
203
|
"administrator": "root",
|
|
@@ -202,17 +209,34 @@
|
|
|
202
209
|
"scratch_repos": ["/root/enact-webview"],
|
|
203
210
|
"repo_location": "/root/workspace",
|
|
204
211
|
"brew_upgrade_all": true,
|
|
212
|
+
"services": {
|
|
213
|
+
"agent_pool": {
|
|
214
|
+
"org": "amsterdamdatalabs",
|
|
215
|
+
"project": "Enact-Now-AI-AzDo",
|
|
216
|
+
"queue_id": 80,
|
|
217
|
+
"identity": "agent-tarun",
|
|
218
|
+
"server_type": "cpx42",
|
|
219
|
+
"location": "fsn1",
|
|
220
|
+
"snapshot_label_selector": "adl-pool-image=enact",
|
|
221
|
+
"agents_per_server": 2,
|
|
222
|
+
"max_servers": 5,
|
|
223
|
+
"max_lifetime_minutes": 360,
|
|
224
|
+
"register_timeout_minutes": 15,
|
|
225
|
+
"poll_seconds": 60,
|
|
226
|
+
"queue_threshold": 1,
|
|
227
|
+
"trigger_ticks": 3,
|
|
228
|
+
"hour_end_window_minutes": 10,
|
|
229
|
+
"vault_env_file": "/etc/adl/agent-pool-vault.env",
|
|
230
|
+
"capabilities": {"Agent.OS": "Linux", "docker": "present"},
|
|
231
|
+
"sp_client_id": "f34d1cd9-4fa1-47bb-9e82-ad9f5cb78a11",
|
|
232
|
+
"sp_tenant_id": "49d4be4b-06f2-42b7-91bc-a17ccde6f0ce"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
205
235
|
"surface_clis": [
|
|
206
236
|
{"name": "opencode", "manager": "bun", "package": "opencode-ai", "command": "opencode"},
|
|
207
237
|
{"name": "kimi", "manager": "native", "command": "kimi", "update_args": ["upgrade"]}
|
|
208
238
|
],
|
|
209
|
-
"tools": {
|
|
210
|
-
"docker-engine": {"manager": "apt", "package": "docker-ce", "executable": "/usr/bin/dockerd"},
|
|
211
|
-
"lsof": {"manager": "apt", "package": "lsof", "executable": "/usr/bin/lsof"},
|
|
212
|
-
"postgresql-18": {"manager": "apt", "package": "postgresql-18", "executable": "/usr/lib/postgresql/18/bin/postgres"},
|
|
213
|
-
"unzip": {"manager": "apt", "package": "unzip", "executable": "/usr/bin/unzip"},
|
|
214
|
-
"xvfb": {"manager": "apt", "package": "xvfb", "executable": "/usr/bin/xvfb-run"}
|
|
215
|
-
}
|
|
239
|
+
"tools": {}
|
|
216
240
|
}
|
|
217
241
|
}
|
|
218
242
|
}
|
|
@@ -291,6 +291,40 @@
|
|
|
291
291
|
"description": "One absolute directory on this host. `adl reconcile` maintains (fetch --prune, fast-forward integration and main, safe branch prune, then `adl install --repo`) every IMMEDIATE child of it that carries adl-config.toml and is a git top-level, as the device administrator. It is the entire scope of that step: nothing outside it is scanned or touched, and a child that resolves outside it is refused. A missing or unreadable location fails the run; a host that declares none skips the step with a log line. The case-insensitive azagent/vsts.agent ban keeps it away from Azure Pipelines agent installs (JSON Schema `pattern` has no case-insensitive flag, so the classes are spelled out).",
|
|
292
292
|
"pattern": "^/(?!$)(?!.*\\s)(?!.*/$)(?!.*\\.\\.)(?!.*[aA][zZ][aA][gG][eE][nN][tT])(?!.*[vV][sS][tT][sS]\\.[aA][gG][eE][nN][tT]).+$"
|
|
293
293
|
},
|
|
294
|
+
"services": {
|
|
295
|
+
"type": "object",
|
|
296
|
+
"description": "Long-running systemd services this device runs (Linux only; `adl fleet setup` renders and enables one unit per entry and removes a unit whose entry is gone). Declared here, never passed as environment variables.",
|
|
297
|
+
"additionalProperties": false,
|
|
298
|
+
"properties": {
|
|
299
|
+
"agent_pool": {
|
|
300
|
+
"type": "object",
|
|
301
|
+
"description": "Feature 758: `adl pool run --host NAME`, the elastic Hetzner Azure Pipelines agent poller. Maps 1:1 onto PoolConfig (packages/agent-pool/src/types.ts) in snake_case, plus `project` (the Azure DevOps project of the queue), `vault_env_file` (root-only Agent Vault env file), `sp_client_id` and `sp_tenant_id` (the service principal agents register with).",
|
|
302
|
+
"additionalProperties": false,
|
|
303
|
+
"required": ["org", "project", "queue_id", "identity", "server_type", "location", "snapshot_label_selector", "agents_per_server", "max_servers", "max_lifetime_minutes", "register_timeout_minutes", "poll_seconds", "queue_threshold", "trigger_ticks", "hour_end_window_minutes", "vault_env_file", "capabilities", "sp_client_id", "sp_tenant_id"],
|
|
304
|
+
"properties": {
|
|
305
|
+
"org": {"type": "string", "minLength": 1},
|
|
306
|
+
"project": {"type": "string", "minLength": 1},
|
|
307
|
+
"queue_id": {"type": "integer", "minimum": 1},
|
|
308
|
+
"identity": {"enum": ["agent-tarun", "agent-vivek", "agent-reviewer"]},
|
|
309
|
+
"server_type": {"type": "string", "minLength": 1},
|
|
310
|
+
"location": {"type": "string", "minLength": 1},
|
|
311
|
+
"snapshot_label_selector": {"type": "string", "minLength": 1},
|
|
312
|
+
"agents_per_server": {"type": "integer", "minimum": 1},
|
|
313
|
+
"max_servers": {"type": "integer", "minimum": 1},
|
|
314
|
+
"max_lifetime_minutes": {"type": "integer", "minimum": 1},
|
|
315
|
+
"register_timeout_minutes": {"type": "integer", "minimum": 1},
|
|
316
|
+
"poll_seconds": {"type": "integer", "minimum": 1},
|
|
317
|
+
"queue_threshold": {"type": "integer", "minimum": 0},
|
|
318
|
+
"trigger_ticks": {"type": "integer", "minimum": 1},
|
|
319
|
+
"hour_end_window_minutes": {"type": "integer", "minimum": 0, "maximum": 59},
|
|
320
|
+
"vault_env_file": {"description": "Absolute path of the root-only (0600) agent-mode Agent Vault env file on the poller host (AGENT_VAULT_ADDR/TOKEN/VAULT, same format as /etc/enact/agent-vault.env); vault-curl.ts refuses it when missing, not 0600 or not root-owned.", "type": "string", "pattern": "^/[A-Za-z0-9._/-]+$"},
|
|
321
|
+
"capabilities": {"type": "object", "additionalProperties": {"type": "string"}},
|
|
322
|
+
"sp_client_id": {"description": "Application (client) id of the identity's Entra service principal, used by `config.sh --auth SP`; the literal UNSET until Tarun fills it (`pool run` refuses while UNSET).", "type": "string", "pattern": "^(UNSET|[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})$"},
|
|
323
|
+
"sp_tenant_id": {"description": "Entra tenant id of that service principal (AGENT_TENANTS in apps/cli/src/ado-token.ts).", "type": "string", "pattern": "^[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}$"}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
294
328
|
"tools": {"$ref": "#/$defs/tools"}
|
|
295
329
|
}
|
|
296
330
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* `WARN repo-maintain: <repo>: deleted stale branch <name> at <sha> (last
|
|
31
31
|
* commit <date>)` line, which is how a deleted branch is recovered from the
|
|
32
32
|
* log (`git branch <name> <sha>`); a dry run lists them without deleting;
|
|
33
|
-
* 5. `adl install --repo
|
|
33
|
+
* 5. `cd <repo> && adl install --repo .` -- the existing per-repo enrolment.
|
|
34
34
|
*
|
|
35
35
|
* This runs as the device administrator, never root (the caller,
|
|
36
36
|
* bin/reconcile-host, drops privileges and `adl maintain --expect-user`
|
|
@@ -65,7 +65,7 @@ export interface MaintainOptions {
|
|
|
65
65
|
readonly location: string
|
|
66
66
|
/** The running adl binary, named in the Full Disk Access remedy. */
|
|
67
67
|
readonly executable: string
|
|
68
|
-
/** How to run `adl
|
|
68
|
+
/** How to run `adl`, from inside each repo: `<command> <...leadingArgs> install --repo .`. */
|
|
69
69
|
readonly install: { readonly command: string; readonly leadingArgs: readonly string[] }
|
|
70
70
|
/** Most recent non-protected local branches kept by the prune. Default 3. */
|
|
71
71
|
readonly keep?: number
|
|
@@ -120,8 +120,7 @@ interface GitResult {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
function errorCode(error: unknown): string | undefined {
|
|
123
|
-
|
|
124
|
-
return typeof code === 'string' ? code : undefined
|
|
123
|
+
return (error as { code?: string } | null)?.code
|
|
125
124
|
}
|
|
126
125
|
|
|
127
126
|
function lines(output: string): string[] {
|
|
@@ -156,7 +155,7 @@ export function maintainRepositories(options: MaintainOptions): MaintainResult {
|
|
|
156
155
|
const git = (repo: string, ...args: string[]): GitResult => {
|
|
157
156
|
const result = spawnSync('git', ['-C', repo, ...args], { encoding: 'utf8', env: childEnv() })
|
|
158
157
|
if (result.error !== undefined) throw result.error
|
|
159
|
-
return { ok: result.status === 0, stdout: result.stdout, stderr: result.stderr
|
|
158
|
+
return { ok: result.status === 0, stdout: result.stdout, stderr: result.stderr }
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
const maxAgeDays = options.branchMaxAgeDays
|
|
@@ -185,7 +184,7 @@ export function maintainRepositories(options: MaintainOptions): MaintainResult {
|
|
|
185
184
|
try {
|
|
186
185
|
agent = resolveAgentIdentity(env).agent
|
|
187
186
|
} catch (error) {
|
|
188
|
-
const message = error
|
|
187
|
+
const message = (error as Error).message
|
|
189
188
|
if (message !== NO_AGENT_IDENTITY_MESSAGE) {
|
|
190
189
|
fail(`cannot resolve an Azure DevOps agent identity: ${message}`, 'identity')
|
|
191
190
|
return { ok: false, repositories: 0, failures }
|
|
@@ -225,7 +224,7 @@ export function maintainRepositories(options: MaintainOptions): MaintainResult {
|
|
|
225
224
|
real = realpathSync(candidate)
|
|
226
225
|
} catch (error) {
|
|
227
226
|
if (errorCode(error) === 'ENOENT') continue
|
|
228
|
-
fail(`${candidate}: cannot resolve: ${error
|
|
227
|
+
fail(`${candidate}: cannot resolve: ${(error as Error).message}`, candidate)
|
|
229
228
|
continue
|
|
230
229
|
}
|
|
231
230
|
if (dirname(real) !== locationReal) continue
|
|
@@ -238,7 +237,7 @@ export function maintainRepositories(options: MaintainOptions): MaintainResult {
|
|
|
238
237
|
} catch (error) {
|
|
239
238
|
const code = errorCode(error)
|
|
240
239
|
if (code === 'ENOENT' || code === 'ENOTDIR') continue
|
|
241
|
-
fail(`${real}: cannot read ${MARKER}: ${error
|
|
240
|
+
fail(`${real}: cannot read ${MARKER}: ${(error as Error).message}`, real)
|
|
242
241
|
continue
|
|
243
242
|
}
|
|
244
243
|
seen.add(real)
|
|
@@ -270,7 +269,7 @@ export function maintainRepositories(options: MaintainOptions): MaintainResult {
|
|
|
270
269
|
fail(`${directory}: cannot run ${command}: ${top.error.message}`, directory)
|
|
271
270
|
return 'failed'
|
|
272
271
|
}
|
|
273
|
-
const stderr =
|
|
272
|
+
const stderr = top.stderr.trim()
|
|
274
273
|
if (top.status === 128 && stderr.includes('not a git repository')) return 'not-toplevel'
|
|
275
274
|
if (top.status !== 0) {
|
|
276
275
|
const shown = stderr.split('\n').slice(0, 3).join(' | ')
|
|
@@ -282,7 +281,7 @@ export function maintainRepositories(options: MaintainOptions): MaintainResult {
|
|
|
282
281
|
try {
|
|
283
282
|
return realpathSync(top.stdout.trim()) === directory ? 'toplevel' : 'not-toplevel'
|
|
284
283
|
} catch (error) {
|
|
285
|
-
fail(`${directory}: cannot resolve git toplevel ${top.stdout.trim()}: ${error
|
|
284
|
+
fail(`${directory}: cannot resolve git toplevel ${top.stdout.trim()}: ${(error as Error).message}`, directory)
|
|
286
285
|
return 'failed'
|
|
287
286
|
}
|
|
288
287
|
}
|
|
@@ -328,21 +327,22 @@ export function maintainRepositories(options: MaintainOptions): MaintainResult {
|
|
|
328
327
|
if (maxAgeDays !== undefined) pruneStale(repo, name, current, maxAgeDays)
|
|
329
328
|
|
|
330
329
|
// 5. the per-repo enrolment.
|
|
331
|
-
|
|
332
|
-
const
|
|
330
|
+
// From inside the repo with `--repo .` (Tarun, 2026-10-25): an adl-azdo checkout deploys its own skills, hooks, settings and repo-controls.
|
|
331
|
+
const argv = [...options.install.leadingArgs, 'install', '--repo', '.', '--rewire']
|
|
332
|
+
const shown = `cd ${repo} && adl install --repo . --rewire`
|
|
333
333
|
if (dry) {
|
|
334
334
|
info(`${name}: [dry] would run ${shown}`)
|
|
335
335
|
return
|
|
336
336
|
}
|
|
337
|
-
const result = spawnSync(options.install.command, argv, { encoding: 'utf8', env: childEnv() })
|
|
337
|
+
const result = spawnSync(options.install.command, argv, { cwd: repo, encoding: 'utf8', env: childEnv() })
|
|
338
338
|
if (result.error !== undefined) {
|
|
339
339
|
fail(`${name}: could not run ${options.install.command}: ${result.error.message}`, repo)
|
|
340
340
|
} else if (result.status !== 0) {
|
|
341
|
-
fail(`${name}: ${shown} exited ${result.status}: ${
|
|
341
|
+
fail(`${name}: ${shown} exited ${result.status}: ${result.stderr.trim()}`, repo)
|
|
342
342
|
} else {
|
|
343
343
|
info(`${name}: ${shown}: ok`)
|
|
344
344
|
for (const line of `${result.stdout}${result.stderr}`.split('\n')) {
|
|
345
|
-
if (
|
|
345
|
+
if (/\bWARN|FAIL|COULD-NOT-RUN/.test(line)) warn(`${name}: ${line.trim()}`)
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -391,7 +391,7 @@ export function maintainRepositories(options: MaintainOptions): MaintainResult {
|
|
|
391
391
|
// %1f (unit separator) cannot appear in a ref name, unlike `|`.
|
|
392
392
|
const format = '%(refname:short)%1f%(objectname)%1f%(committerdate:unix)%1f%(worktreepath)'
|
|
393
393
|
for (const line of lines(git(repo, 'for-each-ref', 'refs/heads/', `--format=${format}`).stdout)) {
|
|
394
|
-
const [branch
|
|
394
|
+
const [branch, sha, committed, worktree] = line.split('\x1f') as [string, string, string, string]
|
|
395
395
|
if (branch === '' || PROTECTED.has(branch) || branch === current) continue
|
|
396
396
|
const tip = Number(committed)
|
|
397
397
|
if (!Number.isFinite(tip) || tip >= cutoff) continue
|
|
@@ -401,6 +401,45 @@ gate is switched off by an explicit `false`. See "No silent skips" below.
|
|
|
401
401
|
| `release.target` | no | `""` | `"main"` | target branch for the managed promotion PR |
|
|
402
402
|
| `release.merge_strategy` | no | `"squash"` | `"no-fast-forward"` | one of `squash`, `rebase`, `rebase-merge`, or `no-fast-forward` — sent to Azure DevOps as the matching wire value (`squash`, `rebase`, `rebaseMerge`, `noFastForward`) |
|
|
403
403
|
| `release.pre_bump` | no | `[]` | — | ordered, repository-relative script paths `version-bump.sh` runs from the repo root before the bump commit (the Promote pipeline's Bump stage, on the checkout of the `integration` commit that triggered it) |
|
|
404
|
+
| `automation.exempt` | no | `[]` | — | automation override, repo half: with `ADL_AGENT_HOOKS_OVERRIDE=1` in the hook environment, the named `runHook` steps are skipped, each with one loud stderr line; names must be in the exported `HOOK_STEPS` list, an unknown name fails config load; adds to the shipped policy (see below) |
|
|
405
|
+
|
|
406
|
+
### Automation override
|
|
407
|
+
|
|
408
|
+
Dispatcher-driven automation (a separate tool spawning agent sessions inside
|
|
409
|
+
managed worktrees) sometimes needs a gate stood down for one session. The
|
|
410
|
+
switch is `ADL_AGENT_HOOKS_OVERRIDE=1` in the hook process environment — the
|
|
411
|
+
env marker Tarun named for this. Any other value leaves every gate armed.
|
|
412
|
+
|
|
413
|
+
What the switch relaxes is the **shipped policy** —
|
|
414
|
+
`assets/automation-exempt.json`, which lists every hook step and the state
|
|
415
|
+
the override puts it in:
|
|
416
|
+
|
|
417
|
+
- `exempt` — `integrity`, `protected-branch`, `findings-ratchet`. Skipped
|
|
418
|
+
while the override is active.
|
|
419
|
+
- `enforced` — every other step. Runs exactly as it does without it.
|
|
420
|
+
|
|
421
|
+
A repository may exempt FURTHER steps with
|
|
422
|
+
`[controls.automation] exempt = ["<step>", ...]`. That adds to the shipped
|
|
423
|
+
set, it never narrows it: the shipped policy is the floor, and the repo's
|
|
424
|
+
list widens it. The repo's list is read from the **staged**
|
|
425
|
+
`adl-config.toml` — the candidate commit — not the working tree, because
|
|
426
|
+
`adl-config.toml` is deliberately agent-editable: a worktree edit alone
|
|
427
|
+
exempts nothing. The step vocabulary is the exported `HOOK_STEPS` constant
|
|
428
|
+
in `src/constants.ts`, in `runHook` chain order:
|
|
429
|
+
|
|
430
|
+
`integrity`, `doctor`, `doc-freshness`, `compliance`, `staged-coverage`,
|
|
431
|
+
`protected-branch`, `promotion-governance`, `coverage-produce`,
|
|
432
|
+
`coverage-ratchet`, `findings-ratchet`.
|
|
433
|
+
|
|
434
|
+
Each skipped step prints one line —
|
|
435
|
+
`adl repo controls: automation override — skipping '<step>' (ADL_AGENT_HOOKS_OVERRIDE)` —
|
|
436
|
+
and returns as passed.
|
|
437
|
+
|
|
438
|
+
The LFS chain, the bundled standard script, repository-declared
|
|
439
|
+
`static_checks` and the worktree backstop are not steps and cannot be
|
|
440
|
+
exempted. The twin half of this mechanism lives in `packages/agent-hooks`
|
|
441
|
+
(`assets/automation-exempt.json`, same env marker). The full contract is in
|
|
442
|
+
`docs/operations/automation-override.md`.
|
|
404
443
|
|
|
405
444
|
### Release scripts — Guard and Bump (Tarun, 2026-09-30; bump moved 2026-10-01)
|
|
406
445
|
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"env": "ADL_AGENT_HOOKS_OVERRIDE",
|
|
4
|
+
"description": "repo-controls hook-step policy for the automation override. With ADL_AGENT_HOOKS_OVERRIDE=1 in the hook process environment, every step with state \"exempt\" is skipped; every other step runs exactly as it does without the override. A repo may exempt further steps with [controls.automation] exempt = [...] in its adl-config.toml. Steps with state \"not-a-step\" are never exemptible: they carry no gate config of their own.",
|
|
5
|
+
"steps": [
|
|
6
|
+
{
|
|
7
|
+
"id": "integrity",
|
|
8
|
+
"state": "exempt",
|
|
9
|
+
"protects": "atomic index gate over [controls.integrity] watched control paths (knip.jsonc, ci.yml, package.json, justfile, ...); refuses a commit touching them",
|
|
10
|
+
"notes": "CANDIDATE EVIDENCE: refused the az384 merge 2x (control files byte-identical, enter index only via merge) and the knip.jsonc fix commit 2026-10-20"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "doctor",
|
|
14
|
+
"state": "enforced",
|
|
15
|
+
"protects": "proves the local hook surface is armed (managed hooks unmodified)",
|
|
16
|
+
"notes": "may mask a skipped gate — revisit before exempting"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "doc-freshness",
|
|
20
|
+
"state": "enforced",
|
|
21
|
+
"protects": "staged docs must be newer than their sources",
|
|
22
|
+
"notes": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "compliance",
|
|
26
|
+
"state": "enforced",
|
|
27
|
+
"protects": "runs the armed compliance gates over the staged snapshot",
|
|
28
|
+
"notes": ""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "staged-coverage",
|
|
32
|
+
"state": "enforced",
|
|
33
|
+
"protects": "coverage over staged files via the repo-declared command",
|
|
34
|
+
"notes": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "protected-branch",
|
|
38
|
+
"state": "exempt",
|
|
39
|
+
"protects": "defense-in-depth: refuse commits on [controls.branches.protected",
|
|
40
|
+
"notes": "CANDIDATE EVIDENCE: az384 merge commit lands on docs/ branch; gate cannot tell passive merge from agent edit"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "promotion-governance",
|
|
44
|
+
"state": "enforced",
|
|
45
|
+
"protects": "Azure DevOps promotion-governance checks (needs network + token)",
|
|
46
|
+
"notes": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "coverage-produce",
|
|
50
|
+
"state": "enforced",
|
|
51
|
+
"protects": "produces the coverage summary at push time",
|
|
52
|
+
"notes": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "coverage-ratchet",
|
|
56
|
+
"state": "enforced",
|
|
57
|
+
"protects": "coverage floor ratchet on push",
|
|
58
|
+
"notes": ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "findings-ratchet",
|
|
62
|
+
"state": "exempt",
|
|
63
|
+
"protects": "counter findings ratchet (knip); no floor file = zero grants = every finding fails",
|
|
64
|
+
"notes": "CANDIDATE EVIDENCE: blocked az384 push 2026-10-20 (pre-push knip floor)"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"notAStep": [
|
|
68
|
+
{
|
|
69
|
+
"id": "worktree-guard",
|
|
70
|
+
"protects": "worktree-count backstop: removes a new worktree over the 3-per-repo limit",
|
|
71
|
+
"notes": ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "lfs-chain",
|
|
75
|
+
"protects": "LFS pre-push chain",
|
|
76
|
+
"notes": ""
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "bundled-script",
|
|
80
|
+
"protects": "the bundled standard hook script after the gates",
|
|
81
|
+
"notes": ""
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "static-checks",
|
|
85
|
+
"protects": "repo-declared opaque static checks",
|
|
86
|
+
"notes": ""
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"complianceGates": [
|
|
90
|
+
{
|
|
91
|
+
"id": "docs.adr-lifecycle",
|
|
92
|
+
"protects": "Run retained ADR lifecycle gate",
|
|
93
|
+
"exemptible": false,
|
|
94
|
+
"notes": "DOC-001"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "docs.english-only",
|
|
98
|
+
"protects": "Run retained English-only gate",
|
|
99
|
+
"exemptible": false,
|
|
100
|
+
"notes": "DOC-002"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "docs.index-updated",
|
|
104
|
+
"protects": "Run retained docs-index gate",
|
|
105
|
+
"exemptible": false,
|
|
106
|
+
"notes": "DOC-004"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "docs.markdown-ast",
|
|
110
|
+
"protects": "Parse Markdown through the retained AST gate",
|
|
111
|
+
"exemptible": false,
|
|
112
|
+
"notes": "DOC-005"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "docs.okf-profile",
|
|
116
|
+
"protects": "Require documents to satisfy their OKF profile",
|
|
117
|
+
"exemptible": false,
|
|
118
|
+
"notes": "DOC-006"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "docs.semantics",
|
|
122
|
+
"protects": "Run retained documentation semantics gate",
|
|
123
|
+
"exemptible": false,
|
|
124
|
+
"notes": "DOC-007"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "docs.indexes",
|
|
128
|
+
"protects": "Run retained knowledge-index gate",
|
|
129
|
+
"exemptible": false,
|
|
130
|
+
"notes": "DOC-008"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "docs.ledger",
|
|
134
|
+
"protects": "Run retained knowledge-ledger gate",
|
|
135
|
+
"exemptible": false,
|
|
136
|
+
"notes": "DOC-009"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "docs.closed-set",
|
|
140
|
+
"protects": "Require the declared docs/ folder shape",
|
|
141
|
+
"exemptible": false,
|
|
142
|
+
"notes": "DOC-010"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "docs.filename",
|
|
146
|
+
"protects": "Require docs/ Markdown stems to be lower-kebab",
|
|
147
|
+
"exemptible": false,
|
|
148
|
+
"notes": "DOC-011"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "docs.directory-size",
|
|
152
|
+
"protects": "Cap each docs/ directory's page count via the directory ratchet",
|
|
153
|
+
"exemptible": false,
|
|
154
|
+
"notes": "DOC-012"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "layout.agents-layout",
|
|
158
|
+
"protects": "Run retained AGENTS layout gate",
|
|
159
|
+
"exemptible": false,
|
|
160
|
+
"notes": "LAY-001"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "layout.ci-paths",
|
|
164
|
+
"protects": "Run retained CI paths gate",
|
|
165
|
+
"exemptible": false,
|
|
166
|
+
"notes": "LAY-002"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "layout.directory-ratchet",
|
|
170
|
+
"protects": "Prevent directory shape growth across every registered tree",
|
|
171
|
+
"exemptible": false,
|
|
172
|
+
"notes": "LAY-004"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "layout.markdown-trees",
|
|
176
|
+
"protects": "Require Markdown in approved documentation trees",
|
|
177
|
+
"exemptible": false,
|
|
178
|
+
"notes": "LAY-006"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": "layout.placement",
|
|
182
|
+
"protects": "Reject throwaway files and undeclared image placement",
|
|
183
|
+
"exemptible": false,
|
|
184
|
+
"notes": "LAY-008"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": "layout.plans-layout",
|
|
188
|
+
"protects": "Run retained plans-layout gate",
|
|
189
|
+
"exemptible": false,
|
|
190
|
+
"notes": "LAY-009"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "layout.references",
|
|
194
|
+
"protects": "Run retained references gate",
|
|
195
|
+
"exemptible": false,
|
|
196
|
+
"notes": "LAY-011"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "layout.root-closed-set",
|
|
200
|
+
"protects": "Require the declared repository root shape",
|
|
201
|
+
"exemptible": false,
|
|
202
|
+
"notes": "LAY-012"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "layout.root-markdown-allowlist",
|
|
206
|
+
"protects": "Run retained root Markdown allowlist gate",
|
|
207
|
+
"exemptible": false,
|
|
208
|
+
"notes": "LAY-013"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": "layout.scripts-size-depth",
|
|
212
|
+
"protects": "Bound workflow script directory size and depth",
|
|
213
|
+
"exemptible": false,
|
|
214
|
+
"notes": "LAY-014"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "layout.open-work-cap",
|
|
218
|
+
"protects": "Cap open plans at ten",
|
|
219
|
+
"exemptible": false,
|
|
220
|
+
"notes": "LAY-016"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "lfs.integrity",
|
|
224
|
+
"protects": "Every blob over 1 MiB enters Git through LFS",
|
|
225
|
+
"exemptible": false,
|
|
226
|
+
"notes": "LFS-001"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "repository.license-declared",
|
|
230
|
+
"protects": "Repository ships the licence it declares",
|
|
231
|
+
"exemptible": false,
|
|
232
|
+
"notes": "REP-001"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": "repository.lockfile-integrity",
|
|
236
|
+
"protects": "Require present and Cargo-valid lockfiles",
|
|
237
|
+
"exemptible": false,
|
|
238
|
+
"notes": "REP-002"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"id": "repository.no-legacy-search",
|
|
242
|
+
"protects": "Forbid standalone legacy search in shell scripts and justfiles",
|
|
243
|
+
"exemptible": false,
|
|
244
|
+
"notes": "REP-004"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "repository.ignored-paths",
|
|
248
|
+
"protects": "Never commit a path .gitignore excludes",
|
|
249
|
+
"exemptible": false,
|
|
250
|
+
"notes": "REP-005"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "repository.no-vcs-in-scripts",
|
|
254
|
+
"protects": "Forbid version-control calls in shell scripts and justfiles",
|
|
255
|
+
"exemptible": false,
|
|
256
|
+
"notes": "REP-006"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "repository.no-multiline-comments",
|
|
260
|
+
"protects": "Forbid multi-line comments in code files",
|
|
261
|
+
"exemptible": false,
|
|
262
|
+
"notes": "REP-007"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
|
@@ -3,9 +3,19 @@ name = "adl-compliance"
|
|
|
3
3
|
version = "0.1.0"
|
|
4
4
|
description = "The adl enforcement package: registry rows, checks, verdicts."
|
|
5
5
|
readme = "AGENTS.md"
|
|
6
|
-
# 3.15
|
|
7
|
-
#
|
|
8
|
-
|
|
6
|
+
# 3.15 is final as of 3.15.2, so the floor is 3.15 — not 3.14.
|
|
7
|
+
#
|
|
8
|
+
# The floor is not a preference, it is what makes `uv.lock` portable. A
|
|
9
|
+
# lock resolved for the lowest supported interpreter selects that
|
|
10
|
+
# interpreter's wheels, and `pydantic-core 2.46.5` publishes cp39-cp314
|
|
11
|
+
# only — so on a 3.15 host uv had to COMPILE it. The agent's compile
|
|
12
|
+
# produced a Mach-O with an inconsistent __LINKEDIT, the compliance
|
|
13
|
+
# engine could not be imported, and every build that graded a repository
|
|
14
|
+
# failed as if it were a product defect. Raising the floor to 3.15 moves
|
|
15
|
+
# the lock's resolution to cp315, where pydantic-core 2.50.1 ships a
|
|
16
|
+
# prebuilt wheel: no compile, no toolchain, no damaged artifact.
|
|
17
|
+
# See Bug 717.
|
|
18
|
+
requires-python = ">=3.15"
|
|
9
19
|
dependencies = ["PyYAML>=6.0.2", "pydantic>=2.9"]
|
|
10
20
|
|
|
11
21
|
[project.scripts]
|