Skip to content

Commit c6503f7

Browse files
cdeustclaude
andcommitted
merge: main into fix/hc-cortex-002-sqlite-transaction-isolation
Resolves the CHANGELOG.md [Unreleased] conflict: main's "### Added" block (HOL scanner, Codex package, package-lock) is kept, and the HC-CORTEX-002 entry joins main's test_pg_schema_provision_live.py entry under a single "### Fixed" heading. No code conflict; the SQLite transaction-isolation diff is byte-identical to 9faa80d. Co-Authored-By: Claude Fable 5.1 <[email protected]>
2 parents 9faa80d + bc6fe7b commit c6503f7

37 files changed

Lines changed: 446 additions & 121 deletions

‎.devcontainer/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# docker-content-digest header, fetched 2026-07-27.
2222
# Refresh: Dependabot's `docker` ecosystem (.github/dependabot.yml) opens a
2323
# PR when the tag moves; do not hand-edit without re-fetching the header.
24-
FROM python:3.14-slim@sha256:a7fb1e634c4a578f9e0bd6327f11a3cde11b7a9395f48e24360c0988bcc5c2bc
24+
FROM python:3.14-slim@sha256:ce40764625a4ff50df3548277632e7f96c4e77fe75fa848aae9885476e7df5a4
2525

2626
LABEL org.opencontainers.image.source="https://github.com/cdeust/Cortex"
2727
LABEL org.opencontainers.image.description="Cortex development container (issue #118)"

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ jobs:
212212
node-version: "24"
213213

214214
- name: Install uv (pinned)
215-
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
215+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
216216
with:
217217
version: "0.11.3"
218218

@@ -512,7 +512,7 @@ jobs:
512512
# that closes the other 21 — and the policy clears the check only at
513513
# score 10. Same form as release.yml's SBOM job.
514514
- name: Install uv (pinned)
515-
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
515+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
516516
with:
517517
version: "0.11.3"
518518

@@ -716,7 +716,7 @@ jobs:
716716
df -h /
717717
718718
- name: Set up Docker Buildx
719-
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
719+
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
720720

721721
- name: Build docker/Dockerfile
722722
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
@@ -741,7 +741,7 @@ jobs:
741741
df -h /
742742
743743
- name: Set up Docker Buildx
744-
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
744+
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
745745

746746
- name: Build .devcontainer/Dockerfile
747747
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
@@ -768,7 +768,7 @@ jobs:
768768
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
769769

770770
- name: Set up Docker Buildx
771-
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
771+
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
772772

773773
# GitHub Actions cache (type=gha) persists Docker layer cache across
774774
# workflow runs, scoped to this repo. Without it, every run repeats the
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: HOL plugin scanner
2+
3+
# The HOL Plugin Registry (hol.org/registry/plugins/cdeust%2Fcortex) scans
4+
# this repository independently and applies a 10% trust-score reduction to
5+
# projects that do not run the scanner in their own CI (source:
6+
# hashgraph-online/awesome-ai-plugins SCANNER_GUIDE.md, "Scanner CI",
7+
# read 2026-09-02). Beyond the score, the scan is a useful supply-chain
8+
# check in its own right: committed secrets, dangerous hooks or MCP
9+
# commands, unpinned actions, over-broad workflow permissions, and
10+
# malformed plugin metadata — evaluated against the same rules the
11+
# registry applies, so a regression is caught here before it is published
12+
# there.
13+
#
14+
# The action installs an exact `plugin-scanner` PyPI release and verifies
15+
# its provenance before running; the default scan reads local repository
16+
# content only (no live network probing, no submission automation).
17+
# Non-blocking for merges (not in ci.yml's `CI Green` gate): the registry's
18+
# rule set evolves on its own schedule, and a new upstream rule must not
19+
# freeze unrelated PRs. The severity/score gates below still make the job
20+
# red on a real regression.
21+
22+
on:
23+
push:
24+
branches: [main]
25+
pull_request:
26+
schedule:
27+
- cron: "30 7 * * 2" # Tuesdays 07:30 UTC — rule sets drift by inaction
28+
workflow_dispatch:
29+
30+
permissions:
31+
contents: read
32+
33+
jobs:
34+
scan:
35+
name: HOL plugin scan
36+
runs-on: ubuntu-latest
37+
permissions:
38+
contents: read
39+
security-events: write # SARIF upload to code scanning
40+
steps:
41+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
42+
with:
43+
persist-credentials: false
44+
45+
- name: Scan the plugin repository
46+
uses: hashgraph-online/ai-plugin-scanner-action@5943e732726b177c9a46baa57f6df5b493ca3429 # v1.2.576
47+
with:
48+
plugin_dir: "."
49+
format: sarif
50+
output: hol-plugin-scan.sarif
51+
upload_sarif: "true"
52+
sarif_category: hol-plugin-scanner
53+
# source: measured 2026-09-02 on a `git archive HEAD` export of
54+
# a093c7ef with plugin-scanner 3.0.48 — repository score 83/100
55+
# (grade B) before this workflow's sibling fixes, 0 critical/high
56+
# findings. The floor sits under the measured value so it catches
57+
# a regression, not routine rule churn.
58+
min_score: "80"
59+
fail_on_severity: high
60+
cisco_skill_scan: "off"

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ jobs:
231231
python-version: "3.12"
232232

233233
- name: Install uv (pinned) + cyclonedx
234-
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
234+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
235235

236236
- name: Export the locked graph and build the SBOM
237237
run: |

‎.github/workflows/scorecard.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ jobs:
5656
publish_results: true
5757

5858
- name: Upload SARIF to code scanning
59-
uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
59+
uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
6060
with:
6161
sarif_file: results.sarif

‎CHANGELOG.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ adheres to [Semantic Versioning](https://semver.org/).
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- **HOL plugin scanner in CI** (`.github/workflows/hol-plugin-scanner.yml`).
12+
The HOL Plugin Registry scans this repository independently and applies a
13+
10% trust-score reduction to projects without maintainer-owned scanner CI
14+
(hashgraph-online/awesome-ai-plugins `SCANNER_GUIDE.md`, read 2026-09-02).
15+
The workflow runs the same `plugin-scanner` release the registry uses,
16+
pinned by commit SHA, on push/PR/weekly, uploads SARIF to code scanning
17+
and goes red on a high finding or a score under 80 — measured 83/100 on
18+
the clean tree before the fixes below. It is not part of the `CI Green`
19+
merge gate: the registry's rule set evolves on its own schedule.
20+
- **Codex package is registry-complete** (`plugins/hypermnesia-mcp-codex/`).
21+
The registry's per-package trust score was 59.09/100 on this package
22+
because it shipped only the manifest and `.mcp.json`: no `README.md`,
23+
`SECURITY.md`, `LICENSE` or `.codexignore`, and an `interface` block with
24+
no `privacyPolicyURL`, `termsOfServiceURL`, `composerIcon`, `logo` or
25+
`screenshots`. All eight are now present (icon as a 500-byte SVG, the two
26+
screenshots the registry listing already uses), reproduced locally with
27+
`plugin-scanner scan plugins/hypermnesia-mcp-codex --ecosystem codex`.
28+
The two frozen migration shims (`plugins/cortex-deprecated/`,
29+
`plugins/cortex-viz-deprecated/`) gain the same `LICENSE` + `SECURITY.md`
30+
pair, which were the last four `low` findings of a whole-repository scan.
31+
- **`package-lock.json`** next to `package.json` (no dependencies; npm's
32+
pinned snapshot of the manifest), and both of its version fields join
33+
`scripts/check_version_surfaces.py` (16 surfaces across 12 files) so a
34+
release bump cannot leave the lock stale.
35+
936
### Fixed
1037

1138
- **SQLite requests no longer share transaction ownership across concurrent
@@ -27,6 +54,12 @@ adheres to [Semantic Versioning](https://semver.org/).
2754
integrity checks. The
2855
fresh-process, cross-backend load ladder is tracked separately and is not
2956
claimed by this correction.
57+
- `tests_py/invariants/test_pg_schema_provision_live.py` minted its
58+
throwaway low-privilege PostgreSQL role with a literal password. It now
59+
uses `secrets.token_urlsafe(16)` per run — the role never outlives the
60+
fixture, so nothing was exposed, but a literal in source reads as a
61+
committed secret to every supply-chain scanner (it was the one `high`
62+
finding in the HOL scan of this repository).
3063

3164
## [4.18.0] - 2026-08-25
3265

‎assets/badge-mcp-toplist.svg‎

Lines changed: 7 additions & 7 deletions
Loading

‎docker/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# docker-content-digest header, fetched 2026-08-10.
2626
# Refresh: Dependabot's `docker` ecosystem (.github/dependabot.yml) opens a
2727
# PR when the tag moves; do not hand-edit without re-fetching the header.
28-
FROM python:3.14-slim-bookworm@sha256:23c59390fc717bf09f9336908199a0ae75d9c4264bf296123f94ad772fea3b52 AS builder
28+
FROM python:3.14-slim-bookworm@sha256:416f0db2a2b561945630cef9877a7ea0581b27449eb9fd9df42f03e1b74b5b63 AS builder
2929

3030
# Node.js 22 LTS.
3131
#
@@ -119,7 +119,7 @@ RUN for attempt in 1 2 3 4 5; do \
119119

120120
# ── Runtime ───────────────────────────────────────────────────────────────
121121

122-
FROM python:3.14-slim-bookworm@sha256:23c59390fc717bf09f9336908199a0ae75d9c4264bf296123f94ad772fea3b52
122+
FROM python:3.14-slim-bookworm@sha256:416f0db2a2b561945630cef9877a7ea0581b27449eb9fd9df42f03e1b74b5b63
123123

124124
# System: PostgreSQL 17 + pgvector + git + ripgrep
125125
RUN apt-get update && apt-get install -y --no-install-recommends \

‎docs/codex-plugin.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ the two packages deliberately offer different host integrations:
1313
package.
1414

1515
The Codex `.mcp.json` lives under `plugins/hypermnesia-mcp-codex/`, never at
16-
the repository root. This preserves Cortex's Claude contract: Claude Code
16+
the repository root. The package directory also carries its own `README.md`,
17+
`SECURITY.md`, `LICENSE`, `.codexignore` and `assets/` (icon, screenshots):
18+
plugin registries score each package on what is inside that directory, not
19+
on the repository root, so those files are duplicated there on purpose. This preserves Cortex's Claude contract: Claude Code
1720
must not discover a second project-scoped MCP server when this repository is
1821
the active working directory.
1922

‎package-lock.json‎

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)