Skip to content

Commit d6dcb32

Browse files
committed
Merge origin/main into fix/hook-augment-startup-deadline
Conflicts resolved: - src/daemon/runtime.h: both sides add test seams at the end of the CBM_ENABLE_TEST_SEAMS block. Kept main's connection-cap and HELLO-order seams and placed this branch's fingerprint-cache seams after them; the branch's added lines are unchanged. - src/cli/hook_augment.c: kept main's re-arm guard, which opens the timeouts log only once and keeps that descriptor. Dropped main's early return and breadcrumb formatting after the open: this branch formats the breadcrumb before the log path is resolved, so stderr gets it even when the log cannot be opened. That formatting runs on every arm, so main's re-arm comment now says the text above is refreshed, and the #858 header comment now says the breadcrumb also goes to stderr. Signed-off-by: Martin Vogel <[email protected]>
2 parents 45bac49 + 5b87320 commit d6dcb32

1,899 files changed

Lines changed: 1993784 additions & 715404 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.

‎.claude-plugin/marketplace.json‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "codebase-memory",
3+
"description": "The codebase-memory-mcp code knowledge graph server, as a Claude Code plugin.",
4+
"owner": {
5+
"name": "DeusData",
6+
"url": "https://github.com/DeusData"
7+
},
8+
"plugins": [
9+
{
10+
"name": "codebase-memory",
11+
"source": "./plugin",
12+
"description": "Codebase knowledge graph for AI agents: sub-ms queries, 99% fewer tokens."
13+
}
14+
]
15+
}

‎.codebase-memory.json‎

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"test_impact": {
3+
"version": 1,
4+
"tests": {
5+
"presets": {
6+
"c-cbm": true
7+
}
8+
},
9+
"rules": [
10+
{
11+
"id": "harness",
12+
"paths": ["tests/test_framework.h", "tests/test_helpers.*", "tests/test_main.c"],
13+
"action": "run_all"
14+
},
15+
{
16+
"id": "engine",
17+
"paths": [
18+
".codebase-memory.json",
19+
"src/mcp/test_impact*",
20+
"src/store/store_impact.*",
21+
"scripts/test-impact/**",
22+
"scripts/ci/test-impact-*"
23+
],
24+
"action": "run_all"
25+
},
26+
{
27+
"id": "build",
28+
"paths": [
29+
"scripts/build.sh",
30+
"scripts/env.sh",
31+
"scripts/test.sh",
32+
"scripts/run-tests-parallel.sh",
33+
"scripts/run-test-wave.py",
34+
"scripts/path-safety.sh",
35+
"scripts/clean.sh",
36+
"scripts/suite-failure-report.sh",
37+
"scripts/ci/verify-shard-union.sh",
38+
"scripts/embed-frontend.sh",
39+
"/.gitattributes"
40+
],
41+
"action": "run_all"
42+
},
43+
{
44+
"id": "grammars",
45+
"paths": ["internal/cbm/vendored/**"],
46+
"action": "run_all"
47+
},
48+
{
49+
"id": "fixtures",
50+
"paths": ["tests/fixtures/*/**"],
51+
"action": "referencing_tests",
52+
"key": "path_segment:2"
53+
},
54+
{
55+
"id": "contracts",
56+
"paths": ["tests/**/*.{sh,py,json,txt,ps1}"],
57+
"action": "ignore"
58+
},
59+
{
60+
"id": "notices",
61+
"paths": ["NOTICE*", "CHANGELOG*", "THIRD_PARTY*"],
62+
"action": "ignore"
63+
},
64+
{
65+
"id": "repo-data",
66+
"paths": [
67+
"scripts/**",
68+
"pkg/**",
69+
"test-infrastructure/**",
70+
"docs/**",
71+
"**/*.md",
72+
"graph-ui/**",
73+
"tools/**",
74+
"tests/fuzz/corpus/**",
75+
"/{.clang-format,.clang-tidy,.cppcheck,.gitignore,.gitleaksignore,DCO,Formula}",
76+
"/{flake.lock,flake.nix,glama.json,install.ps1,install.sh,server.json}"
77+
],
78+
"action": "referencing_tests",
79+
"key": "path",
80+
"unreferenced": "ignore"
81+
}
82+
],
83+
"unmapped_files": "run_all",
84+
"coverage": {
85+
"compatibility_paths": [
86+
"tests/test_framework.h",
87+
"tests/test_main.c",
88+
"tests/test_helpers.h",
89+
"Makefile.cbm",
90+
"scripts/test-impact/coverage-map.py",
91+
"scripts/test-impact/coverage-merge.py"
92+
]
93+
}
94+
}
95+
}

‎.gitattributes‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ scripts/hooks/pre-commit text eol=lf
1515
# Chialisp grammar corpus: one case asserts CRLF comment termination, so this
1616
# file must keep its exact bytes on every platform (no eol conversion). (#919)
1717
tools/tree-sitter-chialisp/test/corpus/comments.txt -text
18+
19+
# llvm-profdata text captures: tests/test_profile_text_parser.py checks their
20+
# SHA-256, so they keep their exact bytes on every platform (no eol conversion).
21+
tests/fixtures/profile_text/*.proftext -text
22+
# Golden profile-map outputs: tests/test_profile_map_v2.py compares the
23+
# producer's LF bytes against them, so they keep their exact bytes too.
24+
tests/fixtures/profile_map_v2/*.tsv -text

‎.github/codeql/codeql-config.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# CodeQL scope: the repository's first-party source.
2+
#
3+
# Read by .github/workflows/codeql.yml (every scan, full and PR) and by
4+
# scripts/ci/select-lanes.sh (which changed paths select which language's PR
5+
# scan). Keep the lists plain: one path prefix per line, no globs.
6+
#
7+
# paths / paths-ignore narrow what the INTERPRETED languages extract
8+
# (javascript-typescript, python, actions). For c-cpp they have no effect:
9+
# CodeQL extracts exactly what the traced build compiles. A PR's c-cpp scan
10+
# keeps vendored C out by compiling it before tracing starts (except vendored
11+
# files the PR changes); the full scan on main, the dry run and the release
12+
# traces everything, vendored C included.
13+
name: cbm first-party source
14+
paths:
15+
- src
16+
- internal
17+
- graph-ui
18+
- pkg
19+
- scripts
20+
- tests
21+
- .github
22+
paths-ignore:
23+
- internal/cbm/vendored
24+
- graph-ui/vendor
25+
- graph-ui/fixtures
26+
- graph-ui/verification
27+
- tests/fixtures

‎.github/dependabot.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
groups:
8+
# init and analyze must run the same CodeQL Action version within a job, and
9+
# upload-sarif is kept in step with them, so one PR bumps all three.
10+
codeql-action:
11+
patterns:
12+
- "github/codeql-action*"

‎.github/scancode-constraints.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Constraints for the ScanCode install of the license gate (PIP_CONSTRAINT).
2+
# pluggy 1.7.0 (2026-10-15) no longer finds plugincode 32.0.0's class-level
3+
# hookspecs: scancode then crashes at import with "did not find any
4+
# 'pre_scan' hooks" and the gate fails on every run.
5+
pluggy==1.6.0

‎.github/workflows/_build.yml‎

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
goarch: arm64
4242
cc: gcc
4343
cxx: g++
44-
- os: macos-14
44+
# The macOS minimum (14.0) is pinned in Makefile.cbm, not inherited
45+
# from this runner's SDK, so both darwin binaries still start on macOS 14.
46+
- os: macos-15
4547
goos: darwin
4648
goarch: arm64
4749
cc: cc
@@ -64,9 +66,10 @@ jobs:
6466

6567
- name: Install deps (Ubuntu)
6668
if: startsWith(matrix.os, 'ubuntu')
67-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
69+
timeout-minutes: 10
70+
run: APT_RETRIES=3; [ -f /etc/apt/apt-mirrors.txt ] && APT_RETRIES=0; sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 --error-on=any update && sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 install -y zlib1g-dev
6871

69-
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
72+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
7073
with:
7174
node-version: "22"
7275

@@ -105,7 +108,7 @@ jobs:
105108
release-candidates/${{ matrix.goos }}-${{ matrix.goarch }}/unstripped/*
106109
release-candidates/${{ matrix.goos }}-${{ matrix.goarch }}/THIRD_PARTY_NOTICES.md
107110
108-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
111+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
109112
with:
110113
name: release-candidates-${{ matrix.goos }}-${{ matrix.goarch }}
111114
path: release-candidates/${{ matrix.goos }}-${{ matrix.goarch }}
@@ -117,7 +120,7 @@ jobs:
117120
steps:
118121
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
119122

120-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
123+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
121124
with:
122125
msystem: CLANG64
123126
path-type: inherit
@@ -129,7 +132,7 @@ jobs:
129132
unzip
130133
zip
131134
132-
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
135+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
133136
with:
134137
node-version: "22"
135138

@@ -163,7 +166,7 @@ jobs:
163166
release-candidates/windows-amd64/unstripped/*
164167
release-candidates/windows-amd64/THIRD_PARTY_NOTICES.md
165168
166-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
169+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
167170
with:
168171
name: release-candidates-windows-amd64
169172
path: release-candidates/windows-amd64
@@ -179,7 +182,7 @@ jobs:
179182
steps:
180183
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
181184

182-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
185+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
183186
with:
184187
msystem: CLANGARM64
185188
path-type: inherit
@@ -191,7 +194,7 @@ jobs:
191194
unzip
192195
zip
193196
194-
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
197+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
195198
with:
196199
node-version: "22"
197200

@@ -225,7 +228,7 @@ jobs:
225228
release-candidates/windows-arm64/unstripped/*
226229
release-candidates/windows-arm64/THIRD_PARTY_NOTICES.md
227230
228-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
231+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
229232
with:
230233
name: release-candidates-windows-arm64
231234
path: release-candidates/windows-arm64
@@ -248,9 +251,10 @@ jobs:
248251
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
249252

250253
- name: Install deps
251-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
254+
timeout-minutes: 10
255+
run: APT_RETRIES=3; [ -f /etc/apt/apt-mirrors.txt ] && APT_RETRIES=0; sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 --error-on=any update && sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 install -y zlib1g-dev
252256

253-
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
257+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
254258
with:
255259
node-version: "22"
256260

@@ -288,7 +292,7 @@ jobs:
288292
release-candidates/linux-${{ matrix.arch }}-portable/unstripped/*
289293
release-candidates/linux-${{ matrix.arch }}-portable/THIRD_PARTY_NOTICES.md
290294
291-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
295+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
292296
with:
293297
name: release-candidates-linux-${{ matrix.arch }}-portable
294298
path: release-candidates/linux-${{ matrix.arch }}-portable
@@ -313,7 +317,7 @@ jobs:
313317
persist-credentials: false
314318

315319
- name: Download all native candidate pairs
316-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
320+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
317321
with:
318322
pattern: release-candidates-*
319323
path: ${{ runner.temp }}/release-candidate-artifacts
@@ -442,7 +446,7 @@ jobs:
442446
443447
- name: Preserve candidate selection evidence
444448
if: ${{ always() }}
445-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
449+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
446450
with:
447451
name: release-selection-evidence
448452
path: selection-evidence
@@ -451,56 +455,56 @@ jobs:
451455
# Keep the established artifact names so the reusable smoke workflow and
452456
# all callers consume only the selected, byte-verified containers.
453457
- name: Upload linux-amd64 containers
454-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
458+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
455459
with:
456460
name: binaries-linux-amd64
457461
path: release-containers/linux-amd64/*
458462
if-no-files-found: error
459463

460464
- name: Upload linux-arm64 containers
461-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
465+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
462466
with:
463467
name: binaries-linux-arm64
464468
path: release-containers/linux-arm64/*
465469
if-no-files-found: error
466470

467471
- name: Upload linux-amd64-portable containers
468-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
472+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
469473
with:
470474
name: binaries-linux-amd64-portable
471475
path: release-containers/linux-amd64-portable/*
472476
if-no-files-found: error
473477

474478
- name: Upload linux-arm64-portable containers
475-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
479+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
476480
with:
477481
name: binaries-linux-arm64-portable
478482
path: release-containers/linux-arm64-portable/*
479483
if-no-files-found: error
480484

481485
- name: Upload darwin-amd64 containers
482-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
486+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
483487
with:
484488
name: binaries-darwin-amd64
485489
path: release-containers/darwin-amd64/*
486490
if-no-files-found: error
487491

488492
- name: Upload darwin-arm64 containers
489-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
493+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
490494
with:
491495
name: binaries-darwin-arm64
492496
path: release-containers/darwin-arm64/*
493497
if-no-files-found: error
494498

495499
- name: Upload windows-amd64 containers
496-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
500+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
497501
with:
498502
name: binaries-windows-amd64
499503
path: release-containers/windows-amd64/*
500504
if-no-files-found: error
501505

502506
- name: Upload windows-arm64 containers
503-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
507+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
504508
with:
505509
name: binaries-windows-arm64
506510
path: release-containers/windows-arm64/*

0 commit comments

Comments
 (0)