Skip to content

[Bug]: Codex asset baseline omits project-local custom agents and MCP declarations #219

Backlog

Description

@andysilvatech

Preflight

  • I searched existing issues for this problem.

What happened?

The Codex project-scope asset baseline reports a complete collection, but the lint inventory omits project-local custom agents and MCP declarations. This reproduces with a synthetic Git workspace containing one declaration of each kind.

Where did it happen?

Codex

Version and environment

Better Harness 0.7.0-alpha2, Codex plugin, macOS, Node.js v24.22.3

Steps to reproduce

fixture="$(mktemp -d)"
cd "$fixture"
git init -q
mkdir -p .codex/agents
cat > .codex/agents/fixture.toml <<'TOML'
name = "fixture"
description = "Synthetic inventory fixture"
developer_instructions = "Read only."
TOML
cat > .codex/config.toml <<'TOML'
[mcp_servers.fixture]
command = "true"
TOML
git add -- .codex
git ls-files -- '.codex/agents/*.toml'
rg '^\[mcp_servers\.[^.]+\]$' .codex/config.toml
better-harness coding-agent-practices asset-baseline codex --workspace "$PWD" --cwd "$PWD" --json

Expected vs actual result

Expected: the configured inventory counts one agent and one MCP declaration in the fixture. Runtime availability, MCP connection, and task use are separate observations.

Actual: envelopes.lint.data.assetInventory.summary reports agents: 0 and mcps: 0. The same result was observed in a workspace with eight agent files and two MCP tables. The static collection did not start or call the synthetic MCP.

Logs or screenshots

No response

Anything else?

No response

Activity

  1. added
    bug
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions