Commit 2d2535d
feat(chapel-binding): stand up detachable CI + tests — binding-tier-1 pilot (closes #129)
This is the binding-tier-1 standup pilot for proven (per #129). It takes
bindings/chapel/ from "zero CI signal, zero tests, never linked against
current libproven" to a load-bearing detachable harness.
WAVE 1 PATH (b) — proven#88 confirmed as link blocker.
=====================================================
Static symbol audit (bindings/c/include/proven.h vs ffi/zig/src/main.zig
vs bindings/chapel/src/LibProven.chpl) shows the Zig FFI exports only
13 symbols, and only 5 of those are both present AND ABI-consistent
with the documented C ABI. Path (a) would require landing proven#88
first (multi-week ABI redesign); path (b) trims the Chapel binding's
WIRED extern set to what links today.
Detachable-harness template (ADR-0001)
=====================================
Per the architectural constraint, the binding ships as a self-contained
package extractable to a standalone proven-chapel repo:
bindings/chapel/Justfile — env-driven (PROVEN_LIB_PATH,
PROVEN_INCLUDE_PATH), no reach
into root tooling
bindings/chapel/symbol-manifest.txt — WIRED extern manifest
bindings/chapel/scripts/symbol-audit.sh — fast nm -D gate (<5s)
.github/workflows/chapel-ci.yml — 6 strict, SHA-pinned jobs
(detachability-guard, build,
symbol-audit, smoke, tests,
detachable-build)
Root Justfile gains chapel-{check,build,test,clean} as ONE-LINE thin
forwarders into bindings/chapel/Justfile — no chapel-specific logic
at root.
The chapel-detachable-build CI job is the executable form of the
contract: a sparse-checkout of bindings/chapel/, bindings/c/include/proven.h,
and chapel-ci.yml must `just test` cleanly. Detachability cannot
regress without a red CI job.
WIRED subset (5 symbols, all verified in manifest)
==================================================
proven_path_has_traversal SafePath.hasTraversal — pure
proven_header_has_crlf SafeHeader.hasCrlf (new) — pure
proven_free_string (internal: extractString)
proven_version libraryVersion()
proven_build_info libraryBuildInfo()
Test coverage
=============
smoke/hello_smoke.chpl — end-to-end "binding links + runs"
tests/TestSafePath.chpl — 8 input cases (safe / traversal / boundary)
tests/TestSafeHeader.chpl — 9 input cases (safe / CRLF / boundary)
tests/TestLibraryInfo.chpl — version + build-info shape check
tests/TestFfiContract.chpl — differential: Chapel wrapper vs raw
extern proc, bit-for-bit agreement
on the same input
CI shape (.github/workflows/chapel-ci.yml)
==========================================
Path triggers: bindings/chapel/**, ffi/zig/**, bindings/c/include/proven.h,
and the workflow itself — NO other paths. Concurrency-grouped with
cancel-in-progress (40-job Pro-plan ceiling guard). Chapel 2.3.0
pinned by URL + SHA-256
(b7c1a48cbf26cfc7ad9af22a84ea4becb1a5e2fd485ec4a1f5f8a69e8a7cd58c).
All actions SHA-pinned. Every job is strict (no continue-on-error).
GATED block + replication queue
===============================
The remaining ~45 extern decls in LibProven.chpl (SafeMath, SafeString,
SafeJson, SafeUrl, SafeEmail, SafeDateTime, SafeCrypto, lifecycle, etc.)
are kept under a GATED banner as the documented ABI contract per
proven.h. They will move to WIRED as proven#88 ramps each Zig export.
Calling them today produces a linker error; the README's coverage
matrix marks WIRED vs GATED explicitly.
Replication queue (sub-issues #130-#134): Crystal, Nim, OCaml, Haskell,
Lua. Each gets the same 6-job workflow shape via search/replace; see
ADR-0001 for the token map.
Files
=====
+.github/workflows/chapel-ci.yml — 6-job detachable CI
+audits/chapel-symbol-audit-2026-05-30.md — static audit table
+bindings/chapel/Justfile — env-driven build/test
+bindings/chapel/scripts/symbol-audit.sh — nm -D gate
+bindings/chapel/smoke/hello_smoke.chpl — end-to-end smoke
+bindings/chapel/src/SafeHeader.chpl — wraps proven_header_has_crlf
+bindings/chapel/symbol-manifest.txt — WIRED symbol list
+bindings/chapel/tests/TestFfiContract.chpl — differential test
+bindings/chapel/tests/TestLibraryInfo.chpl — version probe
+bindings/chapel/tests/TestSafeHeader.chpl — per-module test
+bindings/chapel/tests/TestSafePath.chpl — per-module test
+docs/adr/0001-binding-ci-template.adoc — detachable-harness ADR
+docs/adr/0002-chapel-binding-standup.adoc — pilot ADR
~Justfile — chapel-{check,build,test,clean} forwarders
~ROADMAP.adoc — Binding tier-1 standup section
~bindings/chapel/README.adoc — coverage matrix + detachability
~bindings/chapel/src/LibProven.chpl — WIRED / GATED restructure
~bindings/chapel/src/Proven.chpl — umbrella re-exports WIRED only
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 081c570 commit 2d2535d
18 files changed
Lines changed: 1687 additions & 129 deletions
File tree
- .github/workflows
- audits
- bindings/chapel
- scripts
- smoke
- src
- tests
- docs/adr
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
155 | 183 | | |
156 | 184 | | |
157 | 185 | | |
| |||
0 commit comments