Skip to content

[Feature] Externalize agent registry canonical source#144

Merged
web2solutions merged 1 commit into
devfrom
codex/agent-registry-external-source
Jul 26, 2026
Merged

[Feature] Externalize agent registry canonical source#144
web2solutions merged 1 commit into
devfrom
codex/agent-registry-external-source

Conversation

@web2solutions

@web2solutions web2solutions commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

Externalizes the Jumentix agent registry into its independent canonical repository and adds an executable, fail-closed mirror check for this consumer repository.

Problem Statement

Project Tracking

Branch Promotion Path

Detailed Technical Changes

  1. Adds .agents/registry-source.json pointing at web2solutions/jumentix-agent-registry as the canonical source.
  2. Adds agent-registry:check, agent-registry:sync, and agent-registry:url commands.
  3. Uses GitHub's contents API with raw-content negotiation so registry synchronization does not read stale CDN data after a canonical update.
  4. Integrates the registry check into the standard CI gate while preserving the task, dev, and main branch-aware gates.
  5. Renumbers the external registry requirement to 089, preserving existing requirement 079 for main-branch protection.
  6. Synchronizes English and Portuguese governance specifications.

Architecture, Security, and Data Impact

  • No business domain, persistence, API contract, customer data, authentication, or authorization behavior changed.
  • No credentials or secrets are stored in the source configuration.
  • The registry check fails closed when the canonical source cannot be retrieved or the mirror is stale.

Acceptance Criteria

  • The independent registry repository is the documented canonical source.
  • The local registry mirror synchronizes and validates against the canonical repository.
  • Cache-resistant retrieval reads current canonical content.
  • Existing branch, quality, and agent-governance requirements remain intact.
  • PR target follows the required dev-first promotion path.

Validation Evidence

Executed locally on Node 22.23.1:

pnpm exec jest --runInBand --coverage=false apps/backend-template/test/unit/ci-cd/check-agent-registry-source.test.ts
node ci-cd/check-agent-registry-source.js --check
CI=true JUMENTIX_QUALITY_GATE_TARGET=codex/agent-registry-external-source JUMENTIX_TASK_TEST_MODE=range JUMENTIX_TASK_TEST_BASE=origin/dev pnpm run ci:gate:branch

Results: 5 focused tests passed; the local mirror matched the canonical registry; the task gate passed using the changed unit test.

Expected remote validation for the dev PR: complete unit suite, security checks, and coverage reporting.

Risks and Rollback

  1. Risk: canonical registry availability could block a consumer quality gate.
    Mitigation: failures are explicit and the sync command is available for recovery.
  2. Risk: a stale mirror could hide coordination changes.
    Mitigation: the CI gate checks exact normalized content against the canonical source.

Rollback: revert 5734b4ca and retain the canonical repository for future controlled migration.

Documentation Updates

  • Agent instructions and registry documentation updated.
  • Requirement 089, NFR registry, and EN/PT governance specifications synchronized.
  • Canonical repository documentation updated in its merged PR.

@web2solutions
web2solutions force-pushed the codex/agent-registry-external-source branch from 6f05657 to c952467 Compare July 26, 2026 04:32
@web2solutions web2solutions changed the title feat(governance): externalize agent registry as canonical repository [Feature] Externalize agent registry canonical source Jul 26, 2026
@web2solutions
web2solutions changed the base branch from main to dev July 26, 2026 04:33
@web2solutions
web2solutions force-pushed the codex/agent-registry-external-source branch from c952467 to 5734b4c Compare July 26, 2026 04:43
@web2solutions
web2solutions merged commit 975c484 into dev Jul 26, 2026
3 checks passed
web2solutions added a commit that referenced this pull request Jul 26, 2026
## Summary

Promotes the reviewed development baseline from dev to main. This is a
release-promotion boundary and contains no task-specific changes beyond
commits already reviewed in dev.

## Project Tracking

- Release task: #155
- Project: Jumentix
- Priority: P0
- Size: S
- Estimate: 3 story points
- Schedule: 2026-07-26 through 2026-07-27

## Included Reviewed Work

- #144 External agent registry canonical source
- #148 Branch-aware quality gates
- #150 Change-focused task testing
- #152 CircleCI badges for dev and main

## Release Boundary

- Source branch: dev at 975c484
- Target branch: main at 5d66c02
- No direct task branch is promoted to main.
- No unreviewed changes are added in this pull request.

## Acceptance Criteria

- [x] The source is dev and the target is main.
- [x] All included work was previously reviewed through dev-targeted
pull requests.
- [ ] The strict full matrix reports every required cell as green.
- [ ] Security, coverage, and repository governance checks are green.
- [ ] The pull request is clean and ready to merge.

## Validation Evidence

- Agent registry mirror check passed locally.
- The isolated Express integration suite completed normally during
release verification.
- The authoritative full matrix will run on this main-targeted promotion
pull request.

## Risk and Rollback

Risk is limited to the reviewed dev delta. Rollback is a new audited
revert pull request from dev; direct main changes are prohibited.
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