Skip to content

docs: add agent integration assets - #33

Merged
krishna916 merged 7 commits into
mainfrom
feature/issue-24-agent-integration-assets
Jul 29, 2026
Merged

docs: add agent integration assets#33
krishna916 merged 7 commits into
mainfrom
feature/issue-24-agent-integration-assets

Conversation

@krishna916

@krishna916 krishna916 commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • add source-checkout integration assets for Codex, Claude Code, generic MCP, and generic CLI clients
  • correct Claude Code skill discovery guidance to use project-local .claude/skills paths
  • strengthen deterministic integration-asset validation and fixtures
  • document compatibility evidence separately from live client testing
  • keep @iarna/toml development-only and remove the unrelated CodeGraph asset
  • document setup, troubleshooting, deferred Claude validation, and data-preserving removal

Validation

  • corepack pnpm prettier --check .
  • corepack pnpm lint
  • corepack pnpm typecheck
  • corepack pnpm test:coverage
  • corepack pnpm build
  • corepack pnpm validate:assets
  • corepack pnpm audit --audit-level high
  • corepack pnpm verify
  • focused validator and aggregate asset tests

The full local gate passed with 34 test files and 469 tests. Coverage was 88.74% statements, 81.34% branches, 88.94% functions, and 90.90% lines. The audit reported one low and one moderate vulnerability, below the configured high-severity failure threshold.

Official documentation verification

Verified on 2026-07-29 against:

Manual validation

  • Codex: not completed; local executable was blocked by an access-denied error.
  • Claude Code: not completed; the maintainer does not currently have access to Claude Code.
  • No live tool-discovery or disposable-task result is claimed by this PR.

Deferred Claude validation

The required 15-step Claude Code live validation checklist is recorded in docs/agent-integration.md. The PR remains draft while this human acceptance gate is unresolved.

Summary by CodeRabbit

  • New Features

    • Added setup guidance and example configurations for Relay integrations with Claude Code, Codex, Generic MCP, and Generic CLI.
    • Added instructions for validation, skill installation, troubleshooting, and safely disabling integrations without deleting stored task data.
  • Documentation

    • Added comprehensive agent integration and troubleshooting guides.
    • Updated the README with links to integration documentation.
  • Quality Improvements

    • Added automated checks to verify integration documentation, configuration examples, and required assets remain valid.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@krishna916, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 24 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1277ddb8-7f6b-46e1-8ee5-60e8d28f999e

📥 Commits

Reviewing files that changed from the base of the PR and between e7c5e84 and b2e3450.

📒 Files selected for processing (13)
  • docs/superpowers/tasks/2026-07-29-pr-33-review-tracker.md
  • integrations/claude-code/README.md
  • integrations/codex/README.md
  • integrations/generic-cli/README.md
  • integrations/generic-mcp/README.md
  • scripts/validate-agent-integration-assets.ts
  • tests/fixtures/agent-integrations/valid/docs/agent-integration.md
  • tests/fixtures/agent-integrations/valid/integrations/claude-code/README.md
  • tests/fixtures/agent-integrations/valid/integrations/codex/README.md
  • tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example
  • tests/fixtures/agent-integrations/valid/integrations/generic-cli/README.md
  • tests/fixtures/agent-integrations/valid/integrations/generic-mcp/README.md
  • tests/unit/scripts/validate-agent-integration-assets.test.ts
📝 Walkthrough

Walkthrough

Agent integration documentation, MCP/CLI configuration examples, validation tooling, fixtures, and tests are added. Repository asset validation now checks integration files, templates, references, compatibility claims, and removal guidance.

Changes

Agent integration assets

Layer / File(s) Summary
Integration guidance and templates
README.md, docs/agent-integration.md, docs/troubleshooting-agent-integration.md, integrations/*, docs/superpowers/..., package.json
Adds setup, troubleshooting, compatibility, validation, removal guidance, client configuration examples, and the TOML development dependency.
Asset validation and repository wiring
scripts/validate-agent-integration-assets.ts, scripts/validate-repository-assets.ts
Adds comprehensive integration asset and template validation and invokes it from repository asset validation.
Fixtures and validation tests
tests/fixtures/agent-integrations/*, tests/unit/scripts/*
Adds valid integration fixtures and tests for required assets, configuration shape, documentation rules, contradictory claims, and repository-level failures.

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

Sequence Diagram(s)

sequenceDiagram
  participant validateRepositoryAssets
  participant validateAgentIntegrationAssets
  participant IntegrationAssets
  validateRepositoryAssets->>validateAgentIntegrationAssets: validate integration assets
  validateAgentIntegrationAssets->>IntegrationAssets: read docs, READMEs, JSON, and TOML
  IntegrationAssets-->>validateAgentIntegrationAssets: contents and parsed templates
  validateAgentIntegrationAssets-->>validateRepositoryAssets: pass or validation failure
Loading

Possibly related issues

  • krishna916/relay#2 — Covers the MCP/CLI integration assets, documentation, vendor configurations, and validation tooling added here.
  • krishna916/relay#18 — Covers source-checkout integration documentation, templates, and validators.
  • krishna916/relay#24 — Directly specifies the integration assets, documentation, validation, and tests implemented here.

Possibly related PRs

  • krishna916/relay#27 — Extends the same repository asset validation pipeline with related integration contract fixtures.
  • krishna916/relay#31 — Also modifies repository asset validation with executable and CLI checks.
  • krishna916/relay#32 — Adds another validator step to the shared repository asset validation pipeline.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: adding agent integration documentation and supporting assets.
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.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/issue-24-agent-integration-assets

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@krishna916 krishna916 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review verdict: changes required before merge

The integration structure and deterministic asset validator are directionally good, but this PR is not yet correct against issue #24's authoritative specification.

High — Claude Code skill installation uses the wrong mechanism

integrations/claude-code/README.md instructs users to add @skills/relay-capture/SKILL.md and @skills/relay-session-review/SKILL.md imports to CLAUDE.md. Current official Claude Code documentation treats these as actual Agent Skills discovered from .claude/skills/<skill-name>/SKILL.md for project scope or ~/.claude/skills/<skill-name>/SKILL.md for user scope. CLAUDE.md imports load files as persistent instructions; they do not install the canonical files as skills and defeat the intended on-demand skill behavior.

Please replace this with thin copy/symlink instructions targeting .claude/skills/relay-capture/ and .claude/skills/relay-session-review/ (and optionally user-scoped equivalents), plus matching disable/removal guidance. Add a deterministic validator assertion/test so vendor guidance cannot regress back to CLAUDE.md imports.

High — Mandatory manual validation gate is waived rather than completed

Issue #24 explicitly requires manual validation in both Codex and Claude Code from a clean checkout, recording exact client versions, commands, limitations, tool discovery, a disposable session capture/retrieval, and data-preserving removal. The PR description says those tests were waived, and docs/agent-integration.md confirms neither client was tested.

That is acceptable while the PR remains draft, but it is not acceptable for merge or issue completion. Please keep the PR draft until both smoke tests are performed and record concrete versions/evidence. The compatibility table must not say Version tested: desktop/CLI current when the same document says no client test occurred; label it as documentation verified until actual testing is completed.

High — pnpm verify is currently failing

CI run 65 fails at format:check because docs/superpowers/plans/2026-07-29-issue-24-agent-integration-assets.md is not Prettier-formatted. Issue #24's acceptance gate requires pnpm verify to pass. Format the file, rerun the full gate, and confirm the new head commit is green.

Medium — TOML parser belongs in devDependencies

@iarna/toml is used only by scripts/validate-agent-integration-assets.ts, which is repository/build validation tooling. Keeping it in production dependencies unnecessarily expands Relay's runtime dependency surface. Move it to devDependencies unless runtime code genuinely imports it.

Scope hygiene

.codegraph/.gitignore is unrelated to issue #24. It is harmless, but please remove it from this PR or explain why this integration work requires it; keeping independent tooling changes separate makes AI-generated PRs easier to review and revert.

Once these are corrected and the required live validations are recorded, the remainder should be re-reviewed against the exact Codex and Claude Code versions used.

Copy link
Copy Markdown
Owner Author

Luna remediation implementation plan

Use this plan to address the review findings on PR #33. Keep the PR in draft until all automated checks pass and the documentation no longer overstates unperformed validation.

Objective

Correct the vendor integration guidance, strengthen deterministic validation, remove unrelated scope, and make the unavailable Claude Code live test an explicit deferred human validation item rather than claiming or implying that it occurred.

Constraints

  • Do not change Relay MCP, CLI, task, session, or persistence contracts to make the docs easier.
  • Keep one canonical MCP server: dist/mcp/main.js.
  • Keep canonical behavioural guidance only in:
    • skills/relay-capture/SKILL.md
    • skills/relay-session-review/SKILL.md
  • Do not automatically modify user or project configuration.
  • Removing an integration must never remove or modify the Relay SQLite database.
  • relay mcp remains future-only and unavailable until Epic Epic: Package and distribute Relay for seamless local installation #18.
  • Do not state that Codex or Claude Code was tested unless a live test was actually completed and evidence is recorded.

Task 1: Fix the existing CI failure

Files:

  • Modify: docs/superpowers/plans/2026-07-29-issue-24-agent-integration-assets.md

Steps:

  • Run Prettier on the plan file:
pnpm prettier --write docs/superpowers/plans/2026-07-29-issue-24-agent-integration-assets.md
  • Verify formatting only:
pnpm format:check

Expected: PASS.

  • Commit separately:
git add docs/superpowers/plans/2026-07-29-issue-24-agent-integration-assets.md
git commit -m "style: format issue 24 implementation plan"

Task 2: Correct Claude Code skill installation guidance

The current CLAUDE.md import guidance does not install Relay as Claude Code skills. Replace it with actual project-skill and optional personal-skill installation instructions.

Files:

  • Modify: integrations/claude-code/README.md
  • Modify: docs/agent-integration.md
  • Modify fixture: tests/fixtures/agent-integrations/valid/integrations/claude-code/README.md
  • Modify tests: tests/unit/scripts/validate-agent-integration-assets.test.ts
  • Modify validator: scripts/validate-agent-integration-assets.ts

Required behaviour:

  • Project-local Claude Code skills must be installed as:
.claude/skills/relay-capture/SKILL.md
.claude/skills/relay-session-review/SKILL.md
  • Personal/global installation may be documented separately as:
~/.claude/skills/relay-capture/SKILL.md
~/.claude/skills/relay-session-review/SKILL.md
  • The vendor README must instruct the user to copy or symlink the complete canonical skill directories, preserving each SKILL.md unchanged.
  • Do not duplicate the skill policy text into Claude-specific documentation.
  • Do not instruct users to import these files into CLAUDE.md as the primary skill-install mechanism.
  • CLAUDE.md may be mentioned only if there is a separate, verified reason to add a short project instruction; it must not be presented as skill discovery.

TDD steps:

  • Add a failing validator test that rewrites the Claude README to reference only CLAUDE.md imports and expects rejection.

Example assertion:

expect(() => validateAgentIntegrationAssets({ rootDir })).toThrow(
  /claude.*\.claude\/skills/i,
);
  • Add a failing validator test that removes one required .claude/skills/<name>/SKILL.md path from the fixture and expects rejection.
  • Update validateAgentIntegrationAssets() so the Claude README must include both project skill destinations:
.claude/skills/relay-capture/SKILL.md
.claude/skills/relay-session-review/SKILL.md
  • Update the real and fixture Claude README files.
  • Run:
pnpm vitest run tests/unit/scripts/validate-agent-integration-assets.test.ts

Expected: PASS.

  • Commit separately:
git add integrations/claude-code/README.md docs/agent-integration.md scripts/validate-agent-integration-assets.ts tests/fixtures/agent-integrations/valid/integrations/claude-code/README.md tests/unit/scripts/validate-agent-integration-assets.test.ts
git commit -m "fix: document Claude Code skill discovery correctly"

Task 3: Remove contradictory and overstated compatibility claims

The compatibility table currently implies testing while the same document says no live smoke test occurred.

Files:

  • Modify: docs/agent-integration.md
  • Modify fixture: tests/fixtures/agent-integrations/valid/docs/agent-integration.md
  • Modify: scripts/validate-agent-integration-assets.ts
  • Modify: tests/unit/scripts/validate-agent-integration-assets.test.ts
  • Modify PR description if needed

Required compatibility format:

Use separate fields for documentation verification and live validation. For example:

| Client | Official documentation verified | Live smoke test | Evidence |
| --- | --- | --- | --- |
| Codex | 2026-07-29 | Not completed | Blocked by local executable access failure |
| Claude Code | 2026-07-29 | Not completed | Client unavailable to maintainer |

Do not use phrases such as:

  • Version tested
  • tested on Windows
  • verified client version

unless the client was actually started and Relay tools were discovered.

TDD steps:

  • Add a failing test with Version tested plus Manual client smoke tests were not performed in the same fixture and expect rejection for contradictory validation claims.
  • Add validator checks that reject a document which simultaneously claims a client/version was tested and says the smoke test was not performed.
  • Update the real and fixture documentation.
  • Update the PR description so the manual-validation section says exactly:
## Manual validation

- Codex: not completed; local executable was blocked by an access-denied error.
- Claude Code: not completed; the maintainer does not currently have access to Claude Code.
- No live tool-discovery or disposable-task result is claimed by this PR.
  • Run focused validator tests.
  • Commit separately:
git add docs/agent-integration.md tests/fixtures/agent-integrations/valid/docs/agent-integration.md scripts/validate-agent-integration-assets.ts tests/unit/scripts/validate-agent-integration-assets.test.ts
git commit -m "fix: report integration validation status honestly"

Task 4: Handle the unavailable Claude Code live test explicitly

The maintainer cannot currently run Claude Code. Do not fabricate the required smoke-test result.

Files:

Required implementation:

  • Add a clearly titled section such as Deferred live validation.
  • Record:
    • official documentation verification date
    • exact official source links
    • that Claude Code was unavailable
    • that no live tool-discovery, task capture, session retrieval, or removal test was performed
    • the exact steps a future tester must execute
  • Keep the PR in draft while this remains unresolved, unless the issue owner explicitly changes issue Add Codex, Claude Code, generic MCP, and generic CLI integration assets #24 acceptance criteria to allow documentation-only delivery with a tracked follow-up.

Future Claude validation checklist:

1. Start from a clean Relay checkout.
2. Select Node 24 and pnpm 10.2.0.
3. Run pnpm install --frozen-lockfile.
4. Run pnpm build:node.
5. Create a disposable absolute RELAY_DB_PATH.
6. Add Relay as a project-local Claude MCP stdio server.
7. Install the canonical skills under .claude/skills/.
8. Restart Claude Code.
9. Confirm relay_health is discovered and succeeds.
10. Confirm task_capture, task_list, task_get, task_find_similar, and session_captures_list are discovered.
11. Capture one disposable task using a new exact session ID.
12. Retrieve that exact session and confirm the task is returned.
13. Remove only the MCP entry and Relay skill directories.
14. Confirm the SQLite database file still exists and the task remains stored.
15. Record Claude Code version, OS, commands, session ID, database path, results, and limitations.

Do not mark this checklist complete without real evidence.


Task 5: Move TOML parser to development dependencies

@iarna/toml is used only by repository validation and is not part of Relay runtime behaviour.

Files:

  • Modify: package.json
  • Modify: pnpm-lock.yaml

Steps:

  • Move @iarna/toml from dependencies to devDependencies.
  • Run:
pnpm install --lockfile-only
pnpm typecheck
pnpm vitest run tests/unit/scripts/validate-agent-integration-assets.test.ts
  • Confirm the production runtime bundles and entry points do not import @iarna/toml.
  • Commit separately:
git add package.json pnpm-lock.yaml
git commit -m "chore: keep TOML validation dependency development-only"

Task 6: Remove unrelated CodeGraph files

Files:

  • Delete: .codegraph/.gitignore

This file is unrelated to issue #24 and should not be included in this PR. If CodeGraph support is desired, submit it separately with its own rationale.

Steps:

  • Remove the file and empty directory from the branch.
  • Commit separately:
git rm .codegraph/.gitignore
git commit -m "chore: remove unrelated CodeGraph asset"

Task 7: Strengthen asset-validation coverage

The validator currently checks broad text presence but should protect the exact integration contracts introduced by this PR.

Files:

  • Modify: scripts/validate-agent-integration-assets.ts
  • Modify: tests/unit/scripts/validate-agent-integration-assets.test.ts
  • Modify valid fixtures as required

Add deterministic checks for:

  • Claude project skill paths use .claude/skills/.../SKILL.md.
  • Codex project skill paths use .agents/skills/.../SKILL.md.
  • No vendor README claims live testing when its status is not completed.
  • Every config template uses command plus a separate argument list; no shell command string.
  • The built MCP path is exactly dist/mcp/main.js after the checkout placeholder.
  • Templates contain no machine-specific Windows, macOS, or Linux home paths.
  • All four integration READMEs reference both canonical Relay skills.
  • All removal sections explicitly state that the SQLite database remains untouched.
  • relay mcp is always identified as future-only and unavailable.
  • The generic MCP README lists exactly the currently shipped MCP tools; do not claim unspecified mutation tools unless they actually exist in docs/mcp-tools.md.

For the last point, replace vague wording such as plus explicit mutation tools if the production MCP contract currently ships only the five safe task tools plus relay_health.

Run:

pnpm vitest run tests/unit/scripts/validate-agent-integration-assets.test.ts tests/unit/scripts/validate-repository-assets.test.ts

Expected: PASS.


Task 8: Full verification and PR status update

  • Run the authoritative gate:
pnpm verify

Expected: PASS with no formatting, lint, type, test, coverage, build, asset-validation, or audit failures.

  • Push all commits.
  • Confirm the GitHub Actions CI run passes on the latest head SHA.
  • Update the PR description with:
    • exact automated commands run
    • documentation verification dates and sources
    • honest Codex and Claude live-validation status
    • the deferred Claude validation checklist or follow-up issue
  • Leave the PR as draft while a mandatory acceptance gate is unmet.

Completion criteria

This remediation is complete when:

  1. CI and pnpm verify pass.
  2. Claude Code uses documented .claude/skills discovery rather than CLAUDE.md imports.
  3. Documentation distinguishes official-doc verification from live client testing.
  4. No unperformed smoke test is claimed.
  5. The unavailable Claude Code test is explicitly deferred and remains visibly unresolved unless issue Add Codex, Claude Code, generic MCP, and generic CLI integration assets #24 is amended by the owner.
  6. @iarna/toml is development-only.
  7. The unrelated .codegraph file is removed.
  8. Integration removal guidance preserves the database everywhere.

Human review checkpoints

After Luna pushes the remediation:

  1. Review the Claude skill paths against current official Claude Code documentation.
  2. Confirm the PR remains draft if live validation is still required and unavailable.
  3. Review the compatibility table for any wording that implies unperformed testing.
  4. Inspect the latest CI run rather than relying only on Luna's local report.
  5. Follow the Codex setup from a clean checkout when Codex access is available.
  6. Arrange Claude Code validation later, or explicitly amend issue Add Codex, Claude Code, generic MCP, and generic CLI integration assets #24 to defer it to a separately tracked follow-up.

@krishna916 krishna916 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up review after remediation

The previously reported implementation findings are addressed:

  • Claude Code guidance now uses project-local .claude/skills/<name>/SKILL.md discovery and optional personal ~/.claude/skills/... locations rather than CLAUDE.md imports.
  • The documented claude mcp add command follows the current official ordering: options before the server name, then --, command, and arguments.
  • Compatibility documentation now separates official-doc verification from live smoke-test evidence and makes no contradictory tested-version claim.
  • The unavailable Claude Code validation is explicitly deferred with a reproducible checklist; no live result is fabricated.
  • @iarna/toml is development-only.
  • The unrelated .codegraph change is removed.
  • Asset validation now checks exact MCP tools, template shape, canonical skill paths, data-preserving removal language, and contradictory compatibility claims.
  • CI is green on head e7c5e8452da29bfcd257339486c91e61a6fd42b4.

I found no new correctness blocker in the changed implementation/assets.

One acceptance/process gate remains: issue #24 requires live validation in both Codex and Claude Code. The PR honestly records that neither live smoke test is complete and remains draft, which is the correct state. Before merge, either:

  1. complete and record the required live validations, or
  2. explicitly amend issue #24 so unavailable client validation may be deferred to a later tracked issue/release gate.

Given the maintainer currently lacks Claude Code access, option 2 is reasonable, but it should be an explicit product/acceptance decision rather than silently merging against the existing requirement.

@krishna916
krishna916 marked this pull request as ready for review July 29, 2026 15:42

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@integrations/claude-code/README.md`:
- Line 5: Update the installation targets in integrations/claude-code/README.md
at line 5 to the sibling directories .claude/skills/relay-capture/ and
.claude/skills/relay-session-review/, preserving each complete skill directory.
Update integrations/codex/README.md at line 5 similarly to target
.agents/skills/relay-capture/ and .agents/skills/relay-session-review/. Keep the
existing canonical-skill copying or symlinking guidance and do not target
individual SKILL.md files.

In `@integrations/generic-mcp/README.md`:
- Line 3: Require an explicit isolated RELAY_DB_PATH in all documented
validation flows. In integrations/generic-mcp/README.md lines 3-3, clarify that
omitting RELAY_DB_PATH is permitted only for non-validation use; in
integrations/generic-cli/README.md lines 3-10, export or inline the isolated
RELAY_DB_PATH before every example command.

In `@integrations/generic-mcp/server-config.json.example`:
- Around line 4-5: The Codex valid fixture lacks isolated database coverage.
Update
tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example
to include the same isolated RELAY_DB_PATH configuration used by the root Codex
fixture, with negative coverage ensuring validation rejects fallback to the
default database; integrations/generic-mcp/server-config.json.example requires
no direct change.

In `@scripts/validate-agent-integration-assets.ts`:
- Around line 157-176: Update the Claude validation flow, including
validateVendorClaims and the accepted Claude fixture, to require explicit
markers for unavailable/deferred status, official-source evidence, stated
limitations, and a 15-step future-validation checklist. Add all required markers
to the valid fixture so it passes, while fixtures missing any marker are
rejected.
- Around line 149-150: Extend the absolute-path validation regex in the
path-checking logic to also detect Linux home paths beginning with /home/ and
tilde-based paths beginning with ~/. Preserve the existing Windows and macOS
path detection and failure behavior in the validation flow.

In `@tests/fixtures/agent-integrations/valid/integrations/generic-mcp/README.md`:
- Line 1: Update the valid generic-MCP fixture’s advertised tool list to remove
task_edit, task_triage, task_start, task_complete, and task_archive, retaining
only the supported five task tools and relay_health. Preserve the existing skill
entries and SQLite database statement.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c8de2400-fbff-472c-953a-1f6e1cb8c670

📥 Commits

Reviewing files that changed from the base of the PR and between 2331870 and e7c5e84.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (26)
  • README.md
  • docs/agent-integration.md
  • docs/superpowers/plans/2026-07-29-issue-24-agent-integration-assets.md
  • docs/superpowers/tasks/2026-07-29-pr-33-review-tracker.md
  • docs/troubleshooting-agent-integration.md
  • integrations/claude-code/.mcp.json.example
  • integrations/claude-code/README.md
  • integrations/codex/README.md
  • integrations/codex/config.toml.example
  • integrations/generic-cli/README.md
  • integrations/generic-mcp/README.md
  • integrations/generic-mcp/server-config.json.example
  • package.json
  • scripts/validate-agent-integration-assets.ts
  • scripts/validate-repository-assets.ts
  • tests/fixtures/agent-integrations/valid/docs/agent-integration.md
  • tests/fixtures/agent-integrations/valid/docs/troubleshooting-agent-integration.md
  • tests/fixtures/agent-integrations/valid/integrations/claude-code/.mcp.json.example
  • tests/fixtures/agent-integrations/valid/integrations/claude-code/README.md
  • tests/fixtures/agent-integrations/valid/integrations/codex/README.md
  • tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example
  • tests/fixtures/agent-integrations/valid/integrations/generic-cli/README.md
  • tests/fixtures/agent-integrations/valid/integrations/generic-mcp/README.md
  • tests/fixtures/agent-integrations/valid/integrations/generic-mcp/server-config.json.example
  • tests/unit/scripts/validate-agent-integration-assets.test.ts
  • tests/unit/scripts/validate-repository-assets.test.ts

Comment thread integrations/claude-code/README.md Outdated
Comment thread integrations/generic-mcp/README.md Outdated
Comment on lines +4 to +5
"env": {
"RELAY_DB_PATH": "__RELAY_CHECKOUT__/.relay-validation/relay.db"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Tracked relevant files:"
git ls-files | rg '(^integrations/generic-mcp/server-config\.json\.example$|^tests/fixtures/agent-integrations/valid/integrations/codex/config\.toml\.example$|^tests|generic-mcp|server-config|RELAY_DB_PATH|mcp|codex|RELAY_CHECKOUT)' || true

echo
echo "Target templates:"
for f in integrations/generic-mcp/server-config.json.example tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example; do
  if [ -f "$f" ]; then
    echo "--- $f ($(wc -l < "$f") lines) ---"
    cat -n "$f"
  else
    echo "MISSING: $f"
  fi
done

echo
echo "Search for RELAY_DB_PATH/validation usages:"
rg -n --hidden --glob '!target' --glob '!dist' --glob '!node_modules' 'RELAY_DB_PATH|RELAY_CHECKOUT|relay-validation|relay\.db|database|env' .

Repository: krishna916/relay

Length of output: 50372


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Relevant fixture target files:"
for f in integrations/codex/config.toml.example tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example integrations/generic-mcp/server-config.json.example tests/fixtures/agent-integrations/valid/integrations/generic-mcp/server-config.json.example tests/integration/database-connect.test.ts tests/unit/scripts/validate-agent-integration-assets.test.ts tests/unit/scripts/validate-repository-assets.test.ts tests/unit/interfaces/contracts/agent-integration-contracts.test.ts; do
  if [ -f "$f" ]; then
    echo "--- $f ($(wc -l < "$f") lines) ---"
    sed -n '1,220p' "$ f" | cat -n
  else
    echo "MISSING: $f"
  fi
done

echo
echo "Focused source/test searches:"
rg -n --hidden --glob '!target' --glob '!dist' --glob '!node_modules' \
  'validateAgentIntegrationAssets|validate Repository|agent-integration-assets|placeholder|__RELAY_CHECKOUT__|Database path|RELAY_DB_PATH|database.*path|validation database|isolated database|database isolation|database remains' \
  tests src scripts integrations docs/superpowers/plans | head -n 300

Repository: krishna916/relay

Length of output: 289


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Relevant fixture target files:"
for f in \
  integrations/codex/config.toml.example \
  tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example \
  integrations/generic-mcp/server-config.json.example \
  tests/fixtures/agent-integrations/valid/integrations/generic-mcp/server-config.json.example
do
  if [ -f "$f" ]; then
    echo "--- $f ($(wc -l < "$f") lines) ---"
    cat -n "$f"
  else
    echo "MISSING: $f"
  fi
done

echo
echo "Candidate asset/test files:"
for f in \
  tests/unit/scripts/validate-agent-integration-assets.test.ts \
  tests/unit/scripts/validate-repository-assets.test.ts \
  tests/unit/interfaces/contracts/agent-integration-contracts.test.ts \
  tests/integration/database-connect.test.ts
do
  if [ -f "$f" ]; then
    echo "--- $f ($(wc -l < "$f") lines) ---"
    cat -n "$f"
  else
    echo "MISSING: $f"
  fi
done

echo
echo "Focused source/test searches:"
rg -n --hidden --glob '!target' --glob '!dist' --glob '!node_modules' \
  'validateAgentIntegrationAssets|agent-integration-assets|__RELAY_CHECKOUT__|RELAY_DB_PATH|Database path|RELAY_DB_PATH|database.*path|isolated database|database remains|placeholder' \
  tests scripts integrations docs | head -n 300

Repository: krishna916/relay

Length of output: 50374


Enforce isolation coverage in the agent integration fixtures.

The Codex tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example fixture still omits RELAY_DB_PATH, while the root integrations/codex/config.toml.example includes it. Add the isolated path to the valid fixture with negative coverage so the same validation used for generic MCP/Claude cannot regress to the default database.

📍 Affects 2 files
  • integrations/generic-mcp/server-config.json.example#L4-L5 (this comment)
  • tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example#L1-L3
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/generic-mcp/server-config.json.example` around lines 4 - 5, The
Codex valid fixture lacks isolated database coverage. Update
tests/fixtures/agent-integrations/valid/integrations/codex/config.toml.example
to include the same isolated RELAY_DB_PATH configuration used by the root Codex
fixture, with negative coverage ensuring validation rejects fallback to the
default database; integrations/generic-mcp/server-config.json.example requires
no direct change.

Comment thread scripts/validate-agent-integration-assets.ts Outdated
Comment thread scripts/validate-agent-integration-assets.ts Outdated
Comment thread tests/fixtures/agent-integrations/valid/integrations/generic-mcp/README.md Outdated
@krishna916
krishna916 merged commit e37656f into main Jul 29, 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.

Add Codex, Claude Code, generic MCP, and generic CLI integration assets

1 participant