Stevesolun commited on
Commit
62fc8f3
·
verified ·
1 Parent(s): 026de07

Sync ctx 38a33f8

Browse files

GitHub commit: 38a33f8784e2bf408430a98fed81206c2cf39d00

.github/workflows/publish.yml CHANGED
@@ -647,7 +647,7 @@ jobs:
647
  --sbom release-sbom/claude-ctx.cdx.json \
648
  --pyproject pyproject.toml \
649
  --inventory release-sbom/resolved-environment.json \
650
- --bind-root-purl \
651
  --extra ann \
652
  --extra browser \
653
  --extra embeddings \
@@ -659,7 +659,7 @@ jobs:
659
  --sbom release-sbom/claude-ctx.repeat.cdx.json \
660
  --pyproject pyproject.toml \
661
  --inventory release-sbom/resolved-environment.json \
662
- --bind-root-purl \
663
  --extra ann \
664
  --extra browser \
665
  --extra embeddings \
 
647
  --sbom release-sbom/claude-ctx.cdx.json \
648
  --pyproject pyproject.toml \
649
  --inventory release-sbom/resolved-environment.json \
650
+ --bind-release-identity \
651
  --extra ann \
652
  --extra browser \
653
  --extra embeddings \
 
659
  --sbom release-sbom/claude-ctx.repeat.cdx.json \
660
  --pyproject pyproject.toml \
661
  --inventory release-sbom/resolved-environment.json \
662
+ --bind-release-identity \
663
  --extra ann \
664
  --extra browser \
665
  --extra embeddings \
README.md CHANGED
@@ -16,7 +16,7 @@ tags:
16
  # ctx
17
 
18
  [![CI](https://github.com/stevesolun/ctx/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
19
- [![Tests](https://img.shields.io/badge/Tests-8776_inventory-blue.svg)](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
20
  [![PyPI](https://img.shields.io/pypi/v/claude-ctx.svg)](https://pypi.org/project/claude-ctx/)
21
 
22
  **Find the cheapest AI coding setup that actually works on your repo.**
 
16
  # ctx
17
 
18
  [![CI](https://github.com/stevesolun/ctx/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
19
+ [![Tests](https://img.shields.io/badge/Tests-8780_inventory-blue.svg)](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
20
  [![PyPI](https://img.shields.io/pypi/v/claude-ctx.svg)](https://pypi.org/project/claude-ctx/)
21
 
22
  **Find the cheapest AI coding setup that actually works on your repo.**
docs/ctx-fit/STATE.md CHANGED
@@ -13,22 +13,25 @@
13
 
14
  - Updated: 2026-08-16 (Asia/Jerusalem)
15
  - Active goal: review, harden, verify, and release CTX Fit 1.0.21
16
- - Phase: SBOM recovery commit verified and ready for remote review
17
  - Release decision: **DO NOT RELEASE YET**
18
- - Branch: `codex/ctx-fit-sbom-release`
19
- - Base commit: `c1d8405b4f0c57d84408e49871fc027890e40a5d`
20
- - Last merged release candidate: `c1d8405b4f0c57d84408e49871fc027890e40a5d`
21
- - Latest merged PR: `https://github.com/stevesolun/ctx/pull/269`
 
22
  - Follow-up scope at checkpoint:
23
- - deterministic PyPI-PURL binding for generator-shaped release SBOMs, the
24
- production workflow invocation, focused regressions, and this checkpoint
25
  - user-owned and out of scope: `.scratch/`
26
- - Parallel execution: PR #269 is merged; exact-main Tests, CodeQL, docs, and
27
- Hugging Face synchronization are green. Production publish run `31910688624`
28
- failed closed before every upload/publish step when the pinned CycloneDX
29
- generator omitted project PURLs. Independent release and SBOM reviewers
30
- reproduced the contract mismatch while the coordinator owns the narrow TDD
31
- repair and controlled unpublished-tag recovery.
 
 
32
 
33
  ## Product destination
34
 
@@ -83,7 +86,7 @@ All of the following must be true before tagging or publishing:
83
  | Applied winner activation | Complete, independently accepted | Activation writer + coordinator + independent reviewer | Strict repository-root loader, nested-sidecar refusal, hash/model validation, one-use exact context, subdirectory activation, and explicit model-conflict handling passed independent refreeze as part of the 222-check baseline/activation lane |
84
  | ADR-015 stop attribution | Complete, independently accepted | Coordinator + spend/fairness reviewer | Structured stop reason/log fields flow provider → live runner → serialized result, budget-capped trials are inconclusive, and the accepted spend/fairness lane plus 446-test Fit aggregate are green |
85
  | Release metadata and publish guard | Complete, independently accepted | Metadata writer + publish writer/reviewer + coordinator | 1.0.21 metadata and changelog are current; exact-main/exact-successful-Tests production guard and changelog-backed notes have no P0/P1 review findings; P2 credential/doc hardening is integrated |
86
- | Final verification and release | SBOM recovery ready for remote review | Coordinator + release/SBOM reviewers | PR #269 merged as `c1d8405b`; its exact-main Tests, CodeQL, docs, and Hugging Face sync succeeded. Annotated tag object `2514da44` pointed `v1.0.21` to that exact commit. Publish run `31910688624` passed provenance, graph, stats, static, clean-host, build, package checks, wheel/all-extras smoke, then failed closed because cyclonedx-bom 7.3.0 omits the required PyPI PURL from the generated release root while CTX correctly requires it. It uploaded zero artifacts; attest/release/PyPI jobs skipped, GitHub release is absent, and PyPI returns 404. Repair commit `4ff0e890` is independently accepted; its committed fast gate passed 8,779 tests with 92.16% coverage and its 19-lane PR preflight passed, including reproducible wheel/sdist and Twine. Push, PR, fresh exact-main CI, and explicit delete/recreate of the still-unpublished tag remain. |
87
 
88
  ## Open release blockers
89
 
@@ -98,20 +101,19 @@ verification is explicitly a non-adversarial trust boundary.
98
 
99
  ### P1 — must resolve or explicitly de-scope before release
100
 
101
- One active blocker remains. cyclonedx-bom 7.3.0 intentionally emits the
102
- pyproject root without its optional PURL and can do the same for a matching
103
- installed local-project component; CTX's stricter release validator requires
104
- the relevant PyPI identities. Production
105
- run `31910688624` therefore failed deterministically at SBOM validation after
106
- all package smokes but before artifact upload, attestation, GitHub release, or
107
- PyPI publication. The repair derives the canonical PURL from verified project
108
- name/version, binds the root and optional matching component without changing
109
- bom-refs or dependency edges, refuses conflicts and duplicates, normalizes
110
- both generator outputs, and retains the strict validator. Commit `4ff0e890`
111
- passed the committed fast gate and all 19 PR-preflight lanes, and independent
112
- review accepted the exact commit with no P0-P2 finding. Push, follow-up
113
- review/merge, and a new exact-main Tests success remain mandatory before
114
- controlled tag recovery.
115
 
116
  The release also deliberately discloses that qualification did not include a
117
  paid provider call or a complete provider-plus-filesystem-MCP launch on this
@@ -245,18 +247,49 @@ be overwritten.
245
 
246
  ## Immediate next actions
247
 
248
- 1. Push accepted commit `4ff0e890`, open the narrow SBOM-recovery PR, and merge
249
- only with required checks green.
250
- 2. Require a fresh successful exact-main Tests run. Reconfirm that failed run
251
- `31910688624` has zero artifacts, GitHub release is absent, and PyPI is 404;
252
- then explicitly delete the old local/remote `v1.0.21` tag and recreate an
253
- annotated tag on the new exact tested main commit without a force-push.
 
254
  3. Monitor production publish to completion, then verify PyPI, GitHub release
255
  assets/attestations, clean install, and Hugging Face synchronization before
256
  declaring the release complete.
257
 
258
  ## Checkpoint log
259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  - 2026-08-16: Committed the accepted SBOM repair as `4ff0e890`. Its committed
261
  fast gate passed 8,779 tests, 5 skips, 92.16% coverage, static checks, and the
262
  clean-host contract. The authoritative PR preflight passed all 19 lanes:
 
13
 
14
  - Updated: 2026-08-16 (Asia/Jerusalem)
15
  - Active goal: review, harden, verify, and release CTX Fit 1.0.21
16
+ - Phase: remote review of the pinned-attestation CycloneDX compatibility repair
17
  - Release decision: **DO NOT RELEASE YET**
18
+ - Branch: `codex/ctx-fit-sbom-attestation`
19
+ - Base commit: `2714f9be88a1c3a3b680e344b25a962829d18ca8`
20
+ - Active repair commit: `b3145c49`
21
+ - Last merged release candidate: `2714f9be88a1c3a3b680e344b25a962829d18ca8`
22
+ - Latest merged PR: `https://github.com/stevesolun/ctx/pull/270`
23
  - Follow-up scope at checkpoint:
24
+ - deterministic content-derived CycloneDX serial binding for the pinned
25
+ attestation action, exact compatibility regressions, and this checkpoint
26
  - user-owned and out of scope: `.scratch/`
27
+ - Parallel execution: PR #270 is merged; exact-main Tests run `31912497654`
28
+ and CodeQL run `31912497612` are green. Publish run `31913053842` proved the
29
+ PURL/closure repair, build, package smokes, and graph paths, then failed
30
+ closed because the pinned attestation action requires CycloneDX's optional
31
+ `serialNumber`. The narrow content-derived serial repair is committed as
32
+ `b3145c49`; independent format and recovery reviewers accepted it with no
33
+ P0-P2 findings, and its committed fast gate plus all 19 PR-preflight lanes
34
+ are green. Remote review/merge is next.
35
 
36
  ## Product destination
37
 
 
86
  | Applied winner activation | Complete, independently accepted | Activation writer + coordinator + independent reviewer | Strict repository-root loader, nested-sidecar refusal, hash/model validation, one-use exact context, subdirectory activation, and explicit model-conflict handling passed independent refreeze as part of the 222-check baseline/activation lane |
87
  | ADR-015 stop attribution | Complete, independently accepted | Coordinator + spend/fairness reviewer | Structured stop reason/log fields flow provider → live runner → serialized result, budget-capped trials are inconclusive, and the accepted spend/fairness lane plus 446-test Fit aggregate are green |
88
  | Release metadata and publish guard | Complete, independently accepted | Metadata writer + publish writer/reviewer + coordinator | 1.0.21 metadata and changelog are current; exact-main/exact-successful-Tests production guard and changelog-backed notes have no P0/P1 review findings; P2 credential/doc hardening is integrated |
89
+ | Final verification and release | Attestation compatibility repair ready for remote review | Coordinator + release/SBOM reviewers | PR #270 merged as `2714f9be`; exact-main Tests and CodeQL succeeded. Recovered annotated tag object `bcd5632d` points to that exact commit. Publish run `31913053842` passed the repaired SBOM normalization/strict closure gate and the complete build job. Package and graph provenance attestations were created, but the SBOM attestation failed because pinned `actions/attest@f7c74d...` requires an optional top-level CycloneDX serial; release/PyPI jobs skipped, GitHub release is absent, and PyPI is still 404. Commit `b3145c49` derives a deterministic RFC-4122 UUIDv5 from canonical normalized BOM content, validates exact equality, proves pinned-action recognition, and has independent acceptance plus green committed fast and 19-lane PR-preflight gates. PR, fresh exact-main CI, audited partial-attestation cleanup, and another explicit unpublished-tag recovery remain. |
90
 
91
  ## Open release blockers
92
 
 
101
 
102
  ### P1 — must resolve or explicitly de-scope before release
103
 
104
+ One active blocker remains at the remote-release boundary. The PURL repair is merged and passed its exact
105
+ production gate, but cyclonedx-bom 7.3.0 also removes `serialNumber` under
106
+ reproducible output. CycloneDX 1.6 permits that omission; pinned
107
+ `actions/attest@f7c74d...` has a narrower parser requiring truthy `bomFormat`,
108
+ `specVersion`, and `serialNumber`. Run `31913053842` therefore failed only at
109
+ the SBOM attestation. The active repair binds a canonical UUIDv5 derived from
110
+ the normalized BOM content with the serial omitted, so byte-identical BOMs are
111
+ reproducible and materially different BOMs get different identities. It
112
+ refuses conflicts and requires exact recomputation after strict dependency
113
+ closure validation. Focused regressions and exact uploaded-artifact schema/
114
+ parser probes are green; commit `b3145c49` passed the committed fast gate and
115
+ all 19 PR-preflight lanes. Review/merge and a new exact-main Tests success
116
+ remain mandatory before controlled tag recovery.
 
117
 
118
  The release also deliberately discloses that qualification did not include a
119
  paid provider call or a complete provider-plus-filesystem-MCP launch on this
 
247
 
248
  ## Immediate next actions
249
 
250
+ 1. Push commit `b3145c49`, open the narrow serial-repair PR, and merge it only
251
+ with required checks green.
252
+ 2. Require a fresh successful exact-main Tests run. Archive and remove the
253
+ transient Actions artifacts and deletable GitHub attestation records from
254
+ run `31913053842`, recording that Rekor history remains. Reconfirm GitHub
255
+ release absence and PyPI 404; then explicitly delete/recreate the annotated
256
+ `v1.0.21` tag on the new exact tested main commit without a force-push.
257
  3. Monitor production publish to completion, then verify PyPI, GitHub release
258
  assets/attestations, clean install, and Hugging Face synchronization before
259
  declaring the release complete.
260
 
261
  ## Checkpoint log
262
 
263
+ - 2026-08-16: Committed the independently accepted CycloneDX serial repair as
264
+ `b3145c49`. Its committed fast gate passed 8,783 tests, 5 skips, 92.16%
265
+ coverage, static checks, and clean-host/package contracts. The authoritative
266
+ PR preflight then passed all 19 lanes, including the same 8,783-test unit
267
+ equivalent, strict documentation, telemetry, similarity, browser security,
268
+ clean-host installation, reproducible distribution build, and Twine.
269
+ Reproducible artifact SHA-256 values are
270
+ `40c8e88adb6ffcd6159ed30eddc25162db6e5e17bb6f0ac035ad2162857b70d7`
271
+ for the wheel and
272
+ `ce6fb0da869d8b3b5c6ff27327940f494b98f4c4efb34d466704983144368a6f`
273
+ for the sdist. Only the user-owned `.scratch/` remains untracked; push and
274
+ remote PR review are next.
275
+
276
+ - 2026-08-16: Merged PR #270 as exact main `2714f9be`; exact-main Tests run
277
+ `31912497654` and CodeQL run `31912497612` succeeded. Explicitly deleted the
278
+ still-unpublished old `v1.0.21` tag and created annotated object `bcd5632d`
279
+ on that exact tested commit, without force-updating it. Publish run
280
+ `31913053842` passed provenance, graph, stats, static/clean-host/canaries,
281
+ reproducible build, distribution checks, wheel and all-runtime-extras smoke,
282
+ deterministic PURL normalization, strict dependency closure, and artifact
283
+ upload. Package/graph provenance attestations `40948323` and `40948329` were
284
+ created, then the SBOM attestation failed closed: the valid CycloneDX 1.6
285
+ file omitted optional `serialNumber`, while pinned `actions/attest` requires
286
+ it. Release-assets and PyPI jobs skipped; GitHub release remains absent and
287
+ PyPI 1.0.21 remains 404. The exact uploaded SBOM independently passes the
288
+ official 1.6 schema. A failing-first repair now derives a content-addressed
289
+ UUIDv5 serial, refuses conflicts, requires exact recomputation, and passes
290
+ 28 focused supply-chain tests plus the pinned action's three-field probe.
291
+ Public inventory is now 8,780.
292
+
293
  - 2026-08-16: Committed the accepted SBOM repair as `4ff0e890`. Its committed
294
  fast gate passed 8,779 tests, 5 skips, 92.16% coverage, static checks, and the
295
  clean-host contract. The authoritative PR preflight passed all 19 lanes:
docs/index.md CHANGED
@@ -356,7 +356,7 @@ graph-based discovery:
356
  ---
357
 
358
  Current main is **v1.0.21** — MIT, tested on CPython 3.11+ for Linux and macOS,
359
- 8,776 test inventory. Ships seven console scripts led by `ctx` and
360
  `ctx-init`. The maintenance
361
  tools are still shipped and still work, now via `python -m`:
362
  `ctx_monitor serve` (local dashboard with graph + wiki + load/unload for
 
356
  ---
357
 
358
  Current main is **v1.0.21** — MIT, tested on CPython 3.11+ for Linux and macOS,
359
+ 8,780 test inventory. Ships seven console scripts led by `ctx` and
360
  `ctx-init`. The maintenance
361
  tools are still shipped and still work, now via `python -m`:
362
  `ctx_monitor serve` (local dashboard with graph + wiki + load/unload for