Skip to content

Disposition portfolio context promotion findings from #144 #145

Description

@saagpatel

Codex posted two P2 review findings on #144 after merge. Both still look live on current origin/main.

Current evidence:

  • src/portfolio_context_contract.py still builds normalized = {Path(item).name for item in context_files} in choose_primary_context_file, so nested files such as docs/AGENTS.md can be treated like a top-level AGENTS.md/CLAUDE.md.
  • src/portfolio_truth_reconcile.py still lets _catalog_supported_context_quality rely on declared_values.get("category") == "infrastructure"; that value can come from legacy registry fallback, even though the promotion is meant to require catalog-backed infrastructure context.

Source PR: #144

Acceptance criteria:

  • Require top-level primary context support when using AGENTS.md/CLAUDE.md as promotion evidence; nested context files should not satisfy the top-level primary-context contract by basename alone.
  • Require catalog-backed category provenance for the infrastructure promotion rule, or explicitly encode why legacy-registry fallback is acceptable.
  • Add focused regression coverage for both promotion cases.
  • Disposition the original Codex findings in the PR or link this issue back as the follow-up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions