Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
ci(windows): give the hook bundle its own unlabelled job (#758)
rafaelkenedya8405568b551
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.ymlindex 41f42503..cf2b348e 100644--- a/.github/workflows/windows.yml+++ b/.github/workflows/windows.yml@@ -30,6 +30,10 @@ name: windows# to main: fast Linux CI gates each merge, and the full Windows suite runs# nightly, on demand, and MANDATORILY right before a release (dispatch it# on the release-candidate SHA and wait for green — see AGENTS.md).+#+# The `hooks` job is the exception and runs on every pull request. It is a+# checkout plus seconds of `sh`, so the cost argument above — which is about+# the Rust job's toolchain, linking and cache restore — does not apply to it.on:pull_request:types: [opened, synchronize, reopened, labeled]@@ -66,12 +70,24 @@ jobs:- uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable- uses: Swatinem/rust-cache@f0d9c3887740aee45f6153b24b3a6b815192ec16 # v2- run: cargo test --workspace --all-targets- # `ci.yml`'s `hooks-shell` job covers the POSIX bundle across four awks,- # all on Linux. The suite also drives `hooks/lib/ai-memory-hook.ps1`, and- # that half only ever executes where PowerShell is native — so the one- # platform its PowerShell branch is written for was the one platform no- # job ran it on. Git Bash provides `sh` on the runner; the suite is- # seconds against the ~1000s the Rust tests already cost here.++ # `ci.yml`'s `hooks-shell` job covers the POSIX bundle across four awks, all+ # on Linux. The suite also drives `hooks/lib/ai-memory-hook.ps1`, and that+ # half only ever executes where PowerShell is native — so the one platform+ # its PowerShell branch is written for was the one platform no job ran it on.+ #+ # Its own job, and deliberately outside the `windows` label gate above: this+ # is a checkout and a few seconds of `sh`. No toolchain, no cache restore —+ # none of the economics the header's cost argument is about, which is the+ # ~1000s Rust job. Behind that gate, or sequenced after `cargo test` in the+ # same job, a pull request touching `hooks/` would still get no Windows hook+ # coverage unless someone remembered the label, and a Rust failure would stop+ # the shell suite from reporting at all.+ hooks:+ name: hook bundle (windows-latest)+ runs-on: windows-latest+ steps:+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1- name: hook bundle (Git Bash)shell: bashrun: sh tests/hooks/test_lib.shdiff --git a/AGENTS.md b/AGENTS.mdindex 0d9a55cd..b19c11eb 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -316,7 +316,10 @@ no tiers.is what holds PR feedback near the eight minutes the gating jobs take.**Add the `windows` label** to a PR touching path handling, filelocking, or git plumbing, so the check runs before the merge rather- than after it.+ than after it. Its `hooks` job is the one exception: `tests/hooks/test_lib.sh`+ drives `hooks/lib/ai-memory-hook.ps1`, which only executes where PowerShell+ is native, so that job runs on every pull request. It needs no toolchain and+ costs seconds, so it does not move PR feedback time.## Code style guidelines