Skip to content

refactor(codex): install the authoritative GitKB plugin source - #6

Merged
mateodelnorte merged 3 commits into
mainfrom
refactor/harmony-codex-single-source
Oct 1, 2026
Merged

mateodelnorte merged 3 commits into
mainfrom
refactor/harmony-codex-single-source

Conversation

@mateodelnorte

@mateodelnorte mateodelnorte commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

The marketplace maintained another GitKB plugin payload, so the ATC MCP repair required identical fixes in two repositories. Remove the bundled payload and copied MCP tests. The canonical repository now owns package behavior; this repository owns catalog selection and verification.

Use Codex's supported git-subdir source for https://github.com/gitkb/gitkb-codex-plugin.git, ./plugin, pinned to d6b67ba8b244a9072996d63636bb8bf614ffc207 from canonical PR #7. The published immutable pin supplies the fixed 0.1.2 payload while that PR is open. Future behavior changes are implemented once; promotion updates the catalog SHA.

Validation and review hardening:

  • make release-check: 16 catalog/source tests with parameterized negative controls for alternate/escaping sources, invalid or mutable selectors, extra fields, duplicate identities, and renewed payload/test copies.
  • Compare every source file's bytes, size, and executable mode with the committed Git tree before running package code. Reject modified, missing, extra/ignored, symlink, and special-file entries. Git index flags, replacement refs, and local fsmonitor hooks cannot bypass that check. These weaknesses were reproduced against the previous verifier before the fixes.
  • Delegate the canonical revision's package tests and both real-Codex installation modes using a temporary home without parent credentials, session settings, or Python/shell startup overrides. Hash source bytes in bounded chunks and reject unexpected sizes before reading them.
  • Source-fetch and provided-checkout modes pass locally. Actual remote Git-backed installation passes with npm/native Codex 0.159.2, including cache equality, two distinct sessions, custom registry settings, quoted/Unicode paths, an unshimmed launch, and credential canaries. The shared driver also upgrades an installed bundled 0.1.0 fixture under the same installation identity.
  • Latest-head Linux CI passed. CI checks out the exact validated SHA and executes its own tests. Checkout credentials are removed, permissions are read-only, and execution has a bounded timeout.

No model turns or real activity sinks run in the tests. Provided source checkouts must be pristine, including ignored/generated files. These gates validate source selection and the MCP launch boundary; live installed-plugin/ATC overlay acceptance remains separate in harmony-1991 A12. Tracks [[tasks/harmony-2016]] and [[tasks/harmony-1991]].

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: b4c57481-f7d5-445c-8aaf-91bb8d82e254

📥 Commits

Reviewing files that changed from the base of the PR and between 7e75547 and 062fedd.

📒 Files selected for processing (16)
  • .agents/plugins/marketplace.json
  • .github/workflows/ci.yml
  • .gitignore
  • Makefile
  • README.md
  • plugins/gitkb/.codex-plugin/plugin.json
  • plugins/gitkb/.mcp.json
  • plugins/gitkb/LICENSE
  • plugins/gitkb/README.md
  • plugins/gitkb/hooks/hooks.json
  • plugins/gitkb/skills/gitkb-code-intelligence/SKILL.md
  • tests/catalog-policy.py
  • tests/mcp-contract.py
  • tests/mcp-startup.py
  • tests/package-policy.sh
  • tests/verify-source.py
💤 Files with no reviewable changes (8)
  • plugins/gitkb/.mcp.json
  • plugins/gitkb/LICENSE
  • plugins/gitkb/hooks/hooks.json
  • plugins/gitkb/.codex-plugin/plugin.json
  • tests/mcp-contract.py
  • plugins/gitkb/README.md
  • plugins/gitkb/skills/gitkb-code-intelligence/SKILL.md
  • tests/mcp-startup.py

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.


Walkthrough

The marketplace catalog now selects the GitKB plugin from a standalone repository at a pinned commit. The repository removes its bundled plugin and adds catalog policy tests, source checkout verification, and CI integration for the selected source.

Changes

GitKB catalog and verification

Layer / File(s) Summary
Catalog selects the standalone plugin
.agents/plugins/marketplace.json, README.md, plugins/gitkb/*, tests/mcp-*
The catalog selects the GitKB plugin subdirectory at a pinned commit. Bundled plugin files and prior MCP tests are removed. The README describes source ownership, installation, and promotion.
Catalog policy and source verification
tests/package-policy.sh, tests/verify-source.py, tests/catalog-policy.py
Policy checks validate the catalog and reject local payload paths. Source verification checks the selected revision and checkout contents before running package checks. Tests cover catalog policy, checkout integrity, and environment isolation.
CI and check integration
.github/workflows/ci.yml, .gitignore, Makefile, README.md
The Makefile and CI workflow run catalog and source checks, with CI checking out the catalog-selected revision. The README documents these checks and their isolation requirements. Ignore rules cover the canonical checkout and Python cache.

Priority: ⬇️ Low

Estimated code review effort: 4 (Complex) | ~45 minutes

Merge Risk: ⚪ Minimal · up to 062fe

The catalog delegates installation and checks to the pinned standalone source. No actionable issue remains; this change is mergeable after normal checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 96.15% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 3 files. (5 skipped: 5 …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: installing the authoritative GitKB plugin source from the standalone repository.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


A rabbit checks the pinned trail,
Then hops where GitKB files prevail.
No bundled paths remain to seek,
Source checks guard the commit each week.
CI follows the catalog’s lead.

Comment @coderabbitai help to get the list of available commands.

@mateodelnorte
mateodelnorte merged commit 7cc4eec into main Oct 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant