Skip to content

[P1] Consultant section ontology aligned to tracked-variable/v1 (B2-010) #948

Description

@stranske

Why

Consultant report sections need fleet ontology_key values aligned to B2-003. Verified: docs/contracts/standard_element_library.md:12 requires bundled _stub.json keep non_authoritative: true; src/inv_man_intake/intake/standard_elements.py:1-30 loads stub only with no consultant section keys.

Scope

Extend stub data with report.consultant_review element keys mapping to consultant.* ontology keys; conformance tests.

Non-Goals

  • Do NOT set non_authoritative: false on bundled stub without external library.
  • Do NOT emit tracked-variable/v1 yet (B2-017).
  • Scaffold-only completion does NOT count.

Tasks

  • Add data/consultant_sections.json with ≥15 section keys per R2 brief.
  • Extend standard_elements.py to load consultant sections when doc_type is report.consultant_review.
  • Add tests/intake/test_consultant_section_ontology.py.
  • Map keys in README cross-reference to Workflows tracked-variable/v1 (after sync).

Acceptance Criteria

  • Named test: tests/intake/test_consultant_section_ontology.py::test_sections_resolve_without_code_change passes (data-only add).
  • Deliberate-break gate: remove one key from JSON → test must FAIL → revert.

Surfaced by B2-010; depends on Workflows B2-003.

Activity

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

    agent:codexAssign to Codex agentagents:apply-suggestionsApplies optimization suggestions from agents:optimizeagents:formattedIssue has been formatted to AGENT_ISSUE_TEMPLATE

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions