Skip to content

Commit 2bc902e

Browse files
Merge remote-tracking branch 'origin/main' into feat/fts-prose-content
# Conflicts: # src/store/store.c
2 parents 411ad44 + 0488acf commit 2bc902e

182 files changed

Lines changed: 789556 additions & 1557 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/_build.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# runner); revisit the Intel leg before that retirement.
4848
timeout-minutes: 240
4949
steps:
50-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
50+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5151

5252
- name: Install deps (Ubuntu)
5353
if: startsWith(matrix.os, 'ubuntu')
@@ -122,7 +122,7 @@ jobs:
122122
runs-on: windows-latest
123123
timeout-minutes: 240
124124
steps:
125-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
125+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
126126

127127
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
128128
with:
@@ -197,7 +197,7 @@ jobs:
197197
runs-on: ${{ matrix.runner }}
198198
timeout-minutes: 240
199199
steps:
200-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
200+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
201201

202202
- name: Install deps
203203
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev

‎.github/workflows/_lint.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 15
1515
steps:
16-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
16+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1717

1818
# Tests must pass or fail — no SKIPs except genuinely platform-specific
1919
# ones (SKIP_PLATFORM / #ifdef). Fails the lint phase on any plain SKIP().
@@ -30,7 +30,7 @@ jobs:
3030
sudo apt-get update
3131
sudo apt-get install -y clang-format-20
3232
33-
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
33+
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
3434
id: cppcheck-cache
3535
with:
3636
path: /opt/cppcheck

‎.github/workflows/_security.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 5
1616
steps:
17-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
17+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1818
- name: "Layer 1: Static allow-list audit"
1919
run: scripts/security-audit.sh
2020
- name: "Layer 6: UI security audit"
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
timeout-minutes: 240
2828
steps:
29-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
29+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3030
- name: Install ScanCode Toolkit
3131
run: pipx install scancode-toolkit
3232
- name: "Gate self-test (a planted violation must be detected)"
@@ -51,8 +51,8 @@ jobs:
5151
CURRENT_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
5252
echo "Waiting for CodeQL to complete on $CURRENT_SHA..."
5353
for attempt in $(seq 1 90); do
54-
LATEST=$(gh api repos/${{ github.repository }}/actions/workflows/codeql.yml/runs?per_page=5 \
55-
--jq '.workflow_runs[] | select(.head_sha == "'"$CURRENT_SHA"'") | "\(.conclusion) \(.status)"' 2>/dev/null | head -1 || echo "")
54+
LATEST=$(gh api "repos/${{ github.repository }}/actions/workflows/codeql.yml/runs?head_sha=$CURRENT_SHA&per_page=1" \
55+
--jq '.workflow_runs[] | "\(.conclusion) \(.status)"' 2>/dev/null | head -1 || echo "")
5656
if [ -z "$LATEST" ]; then
5757
echo " $attempt/90: no run yet..."; sleep 30; continue
5858
fi

‎.github/workflows/_smoke.yml‎

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,24 @@ jobs:
4040
# Broad legs reuse existing goos/goarch artifacts on newer/older OS
4141
# versions (e.g. ubuntu-22.04 = older glibc) to widen the run-anywhere
4242
# signal without building new targets.
43+
# Broad legs are REQUIRED gates (no optional / continue-on-error):
44+
# every smoke leg must pass. No `optional` flags anywhere.
4345
BROAD_UNIX='[
44-
{"os":"ubuntu-22.04","goos":"linux","goarch":"amd64","optional":true},
45-
{"os":"ubuntu-22.04-arm","goos":"linux","goarch":"arm64","optional":true},
46-
{"os":"macos-15","goos":"darwin","goarch":"arm64","optional":true}
46+
{"os":"ubuntu-22.04","goos":"linux","goarch":"amd64"},
47+
{"os":"ubuntu-22.04-arm","goos":"linux","goarch":"arm64"},
48+
{"os":"macos-15","goos":"darwin","goarch":"arm64"}
4749
]'
4850
CORE_WIN='[{"os":"windows-latest"}]'
4951
# windows-11-arm runs the shipped x86_64 binary under emulation —
5052
# verifies the Windows artifact still launches on ARM hardware.
51-
BROAD_WIN='[{"os":"windows-2025","optional":true},{"os":"windows-11-arm","optional":true}]'
53+
BROAD_WIN='[{"os":"windows-2025"},{"os":"windows-11-arm"}]'
5254
CORE_PORTABLE='[
5355
{"arch":"amd64","runner":"ubuntu-latest"},
5456
{"arch":"arm64","runner":"ubuntu-24.04-arm"}
5557
]'
5658
BROAD_PORTABLE='[
57-
{"arch":"amd64","runner":"ubuntu-22.04","optional":true},
58-
{"arch":"arm64","runner":"ubuntu-22.04-arm","optional":true}
59+
{"arch":"amd64","runner":"ubuntu-22.04"},
60+
{"arch":"arm64","runner":"ubuntu-22.04-arm"}
5961
]'
6062
if [ "$BROAD" = "true" ]; then
6163
UNIX=$(jq -cn --argjson a "$CORE_UNIX" --argjson b "$BROAD_UNIX" '$a + $b')
@@ -66,20 +68,29 @@ jobs:
6668
WIN=$(jq -cn --argjson a "$CORE_WIN" '$a')
6769
PORTABLE=$(jq -cn --argjson a "$CORE_PORTABLE" '$a')
6870
fi
69-
echo "unix={\"variant\":[\"standard\",\"ui\"],\"include\":$UNIX}" >> "$GITHUB_OUTPUT"
70-
echo "windows={\"variant\":[\"standard\",\"ui\"],\"include\":$WIN}" >> "$GITHUB_OUTPUT"
71-
echo "portable={\"variant\":[\"standard\",\"ui\"],\"include\":$PORTABLE}" >> "$GITHUB_OUTPUT"
71+
# Expand each OS entry over both variants into a FLAT include list so
72+
# every {os,variant} runs as its own job. A {variant:[...],include:$LIST}
73+
# matrix collapses under GitHub's include-merge (later os entries
74+
# overwrite the variant combos last-wins), which silently dropped every
75+
# OS except the last — e.g. only windows-11-arm ran, never windows-latest.
76+
# Building the cartesian explicitly avoids that.
77+
VARIANTS='["standard","ui"]'
78+
UNIX_M=$(jq -cn --argjson a "$UNIX" --argjson v "$VARIANTS" '{include:[$a[] as $o | $v[] as $t | ($o + {variant:$t})]}')
79+
WIN_M=$(jq -cn --argjson a "$WIN" --argjson v "$VARIANTS" '{include:[$a[] as $o | $v[] as $t | ($o + {variant:$t})]}')
80+
PORTABLE_M=$(jq -cn --argjson a "$PORTABLE" --argjson v "$VARIANTS" '{include:[$a[] as $o | $v[] as $t | ($o + {variant:$t})]}')
81+
echo "unix=$UNIX_M" >> "$GITHUB_OUTPUT"
82+
echo "windows=$WIN_M" >> "$GITHUB_OUTPUT"
83+
echo "portable=$PORTABLE_M" >> "$GITHUB_OUTPUT"
7284
7385
smoke-unix:
7486
needs: setup-matrix
7587
strategy:
7688
fail-fast: false
7789
matrix: ${{ fromJSON(needs.setup-matrix.outputs.unix) }}
7890
runs-on: ${{ matrix.os }}
79-
continue-on-error: ${{ matrix.optional == true }}
8091
timeout-minutes: 15
8192
steps:
82-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
93+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
8394

8495
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
8596
with:
@@ -153,10 +164,9 @@ jobs:
153164
fail-fast: false
154165
matrix: ${{ fromJSON(needs.setup-matrix.outputs.windows) }}
155166
runs-on: ${{ matrix.os }}
156-
continue-on-error: ${{ matrix.optional == true }}
157167
timeout-minutes: 15
158168
steps:
159-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
169+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
160170

161171
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
162172
with:
@@ -220,10 +230,9 @@ jobs:
220230
fail-fast: false
221231
matrix: ${{ fromJSON(needs.setup-matrix.outputs.portable) }}
222232
runs-on: ${{ matrix.runner }}
223-
continue-on-error: ${{ matrix.optional == true }}
224233
timeout-minutes: 15
225234
steps:
226-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
235+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
227236

228237
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
229238
with:
@@ -266,7 +275,7 @@ jobs:
266275
timeout-minutes: 10
267276
continue-on-error: true
268277
steps:
269-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
278+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
270279
- name: Build Glama image and verify MCP introspection
271280
run: bash pkg/glama/verify.sh
272281
- name: Test homebrew installation

‎.github/workflows/_soak.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
# the 240-min nightly with headroom (build + analysis + idle phases).
5555
timeout-minutes: 300
5656
steps:
57-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
57+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5858
- name: Install deps (Linux)
5959
if: startsWith(matrix.os, 'ubuntu')
6060
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3 git
@@ -91,7 +91,7 @@ jobs:
9191
# too. 300 covers the 240-min nightly with headroom.
9292
timeout-minutes: 300
9393
steps:
94-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
94+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
9595
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
9696
with:
9797
msystem: CLANG64
@@ -171,7 +171,7 @@ jobs:
171171
# soak-quick 30→240 mismatch above — keep the timeout above the run length.)
172172
timeout-minutes: 240
173173
steps:
174-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
174+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
175175
- name: Install deps (Linux)
176176
if: startsWith(matrix.os, 'ubuntu')
177177
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3 git
@@ -199,7 +199,7 @@ jobs:
199199
# never truncated.
200200
timeout-minutes: 240
201201
steps:
202-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
202+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
203203
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
204204
with:
205205
msystem: CLANG64

‎.github/workflows/_test.yml‎

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ jobs:
3838
{"os":"macos-14","cc":"cc","cxx":"c++"},
3939
{"os":"macos-15-intel","cc":"cc","cxx":"c++"}
4040
]'
41+
# Broad matrix legs are REQUIRED gates (no optional/continue-on-error
42+
# escape hatches): the release dry run must be all-green, every platform.
4143
BROAD_UNIX='[
42-
{"os":"ubuntu-22.04","cc":"gcc","cxx":"g++","optional":true},
43-
{"os":"ubuntu-22.04-arm","cc":"gcc","cxx":"g++","optional":true},
44-
{"os":"macos-15","cc":"cc","cxx":"c++","optional":true}
44+
{"os":"ubuntu-22.04","cc":"gcc","cxx":"g++"},
45+
{"os":"ubuntu-22.04-arm","cc":"gcc","cxx":"g++"},
46+
{"os":"macos-15","cc":"cc","cxx":"c++"}
4547
]'
4648
# Each Windows leg pins the msys2 environment + package arch to the
4749
# RUNNER architecture so the build is native, never emulated:
@@ -53,7 +55,7 @@ jobs:
5355
# the native ARM64 toolchain ASan instruments native ARM64 code, so it
5456
# is a real (non-optional) gate, not a tolerated emulated-flake.
5557
CORE_WIN='[{"os":"windows-latest","msystem":"CLANG64","pkg":"x86_64"}]'
56-
BROAD_WIN='[{"os":"windows-2025","optional":true,"msystem":"CLANG64","pkg":"x86_64"},{"os":"windows-11-arm","msystem":"CLANGARM64","pkg":"aarch64"}]'
58+
BROAD_WIN='[{"os":"windows-2025","msystem":"CLANG64","pkg":"x86_64"},{"os":"windows-11-arm","msystem":"CLANGARM64","pkg":"aarch64"}]'
5759
if [ "$BROAD" = "true" ]; then
5860
UNIX=$(jq -cn --argjson a "$CORE_UNIX" --argjson b "$BROAD_UNIX" '$a + $b')
5961
WIN=$(jq -cn --argjson a "$CORE_WIN" --argjson b "$BROAD_WIN" '$a + $b')
@@ -75,7 +77,7 @@ jobs:
7577
continue-on-error: ${{ matrix.optional == true }}
7678
timeout-minutes: 240
7779
steps:
78-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
80+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
7981

8082
- name: Install deps (Ubuntu)
8183
if: startsWith(matrix.os, 'ubuntu')
@@ -95,7 +97,7 @@ jobs:
9597
continue-on-error: ${{ matrix.optional == true }}
9698
timeout-minutes: 240
9799
steps:
98-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
100+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
99101

100102
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
101103
with:
@@ -119,3 +121,43 @@ jobs:
119121
run: scripts/test.sh CC=clang CXX=clang++ ${{ matrix.os == 'windows-11-arm' && 'SANITIZE=' || '' }}
120122
env:
121123
CBM_SKIP_PERF: ${{ inputs.skip_perf && '1' || '' }}
124+
125+
# Windows product-surface regression guards. Distinct from test-windows above
126+
# (the sanitizer C suite): these drive a real product binary + embedded HTTP UI
127+
# over stdio / CLI / HTTP and fail if a Windows bug already fixed on main comes
128+
# back -- non-ASCII repo paths dropping definitions (#636/#357, fixed by #700),
129+
# the PreToolUse hook augmenter no-op on drive-letter cwd (#618, fixed by #619),
130+
# and the UI directory picker not enumerating drives (#548, roots field). The
131+
# still-open narrow-argv repro (#423/#20) is opt-in and excluded via -GuardsOnly.
132+
test-windows-guards:
133+
runs-on: windows-latest
134+
timeout-minutes: 60
135+
steps:
136+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
137+
138+
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
139+
with:
140+
msystem: CLANG64
141+
path-type: inherit
142+
install: >-
143+
mingw-w64-clang-x86_64-clang
144+
mingw-w64-clang-x86_64-zlib
145+
make
146+
git
147+
148+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
149+
with:
150+
node-version: "22"
151+
152+
- name: Build product binary with embedded UI
153+
shell: msys2 {0}
154+
# --with-ui builds the frontend (npm) and embeds it, so the drive-picker
155+
# guard's HTTP UI is available. Functional gate only (no sanitizers).
156+
run: scripts/build.sh --with-ui CC=clang CXX=clang++
157+
158+
- name: Windows regression guards (#636/#357, #618, #548)
159+
shell: pwsh
160+
# -GuardsOnly runs the three green guards and gates on them; the runner
161+
# runs indexing in-process (CBM_INDEX_SUPERVISOR=0) so a guard reflects the
162+
# path/hook/drive fix under test, not the orthogonal index-worker spawn.
163+
run: ./scripts/test-windows.ps1 -GuardsOnly -Binary build/c/codebase-memory-mcp.exe

‎.github/workflows/bug-repro.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ${{ matrix.os }}
5252
timeout-minutes: 240
5353
steps:
54-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
54+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5555

5656
- name: Install deps (Ubuntu)
5757
if: startsWith(matrix.os, 'ubuntu')
@@ -66,7 +66,7 @@ jobs:
6666
runs-on: windows-latest
6767
timeout-minutes: 240
6868
steps:
69-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
69+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
7070

7171
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
7272
with:

‎.github/workflows/codeql.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
actions: read
2424
contents: read
2525
steps:
26-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
26+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2727

2828
- name: Install build dependencies
2929
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev

‎.github/workflows/dco.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 5
2121
steps:
22-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
22+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2323
with:
2424
fetch-depth: 0
2525

‎.github/workflows/fast-repro.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 240
2626
steps:
27-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
27+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2828
- name: Install deps
2929
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
3030
- name: test-repro (single platform, ASan; CBM_REPRO_ONLY filters suites)

0 commit comments

Comments
 (0)