Skip to content

feat(ai): syntopical dialectical synthesis engine (devops ai research syntopical) #273

Closed

Description

@dan-petty

Context & Rationale

Implements Mortimer Adler's syntopical reading methodology for AI agents. Ingests heterogeneous sources on a complex topic (source code, PR review threads, git commit logs, markdown documentation, RFC specifications, and upstream issue discussions) to conduct comparative analysis.

Scope & Deliverables

  • Context & Rationale*: Implements Mortimer Adler's syntopical reading methodology for AI agents. Ingests heterogeneous sources on a complex topic (source code, PR review threads, git commit logs, markdown documentation, RFC specifications, and upstream issue discussions) to conduct comparative analysis.
  • Lexicon Alignment & Dialectical Matrix*: Automatically reconciles divergent terminology across documents, identifies areas of consensus and contradiction, and outputs structured dialectical comparison matrices (.data/research/syntopical_<topic>.json).
  • Acceptance Criteria*: Autonomous detection of conflicting statements across code and docs; structured JSON and Rich terminal output with source citations.

Strategic Alignment

  • Milestone: v0.2.21 (Deep Cognitive Information Foraging, Syntopical Reading & Epistemic Research Engine)
  • Roadmap Reference: docs/ROADMAP.md

Update 2026-10-08: refinement

Its settings exist with no reader in src or tests (config/defaults.py:869-871, config/constants.py:2783-2786, v0.2.21), and two name one setting (both 20).

  • The PR reads each name or deletes it; no research setting is left unread, and each has one name.

Proposed design

Problem statement

The syntopical research settings defined in config/defaults.py (lines 869-871) and config/constants.py (lines 2783-2786) have no reader anywhere in src/ or tests/, and two distinct setting names both map to the same value (20). This PR must either wire up a reader for each setting or delete it, and ensure every research setting has exactly one canonical name, so that no dead or duplicated configuration remains.

Acceptance criteria

  • Criterion 1: Every research setting referenced in config/defaults.py:869-871 and config/constants.py:2783-2786 is either read by at least one module in src/ or removed from both files
    Verification: grep -r for each setting name across src/ and tests/ shows a reader, or the name is absent from config/defaults.py and config/constants.py
  • Criterion 2: No two setting names map to the same underlying value; each research setting has exactly one name
    Verification: A test or config-audit command enumerates all research settings and asserts name uniqueness (no two names resolve to the same key or value pair)
  • Criterion 3: Tests exercise the reader path for every retained setting, confirming the value flows from config into the consuming code
    Verification: pytest -k syntopical (or the relevant test module) passes and covers each retained setting's read path

Key questions

  • Should the settings be read (wired into a consumer) or deleted?: The body's checkbox says 'The PR reads each name or deletes it', leaving the choice to the implementer. If the syntopical engine is not yet built, deletion is the lower-risk option; if a reader is planned in the same release, wiring it up is preferred. This is a decision the implementer makes based on whether a consumer exists or is imminent. (proposed)
  • Does this PR deliver the full syntopical dialectical synthesis engine or only the settings cleanup?: The 2026-10-08 refinement narrows the deliverable to the settings issue: 'no research setting is left unread, and each has one name.' The full engine (ingestion, lexicon alignment, dialectical matrix output) is not in this PR's acceptance criteria. (proposed)

Open questions

  • What specific setting names exist at config/defaults.py:869-871 and config/constants.py:2783-2786? (missing verified source)
  • Which two setting names both map to the value 20? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.
[end-marker]

Proposed design

Problem statement

The syntopical research settings defined in config/defaults.py (lines 869-871) and config/constants.py (lines 2783-2786) have no reader anywhere in src/ or tests/, and two distinct setting names both map to the same value (20). This PR must either wire up a reader for each setting or delete it, and ensure every research setting has exactly one canonical name, so that no dead or duplicated configuration remains. The full syntopical dialectical synthesis engine (ingestion, lexicon alignment, dialectical matrix output) is explicitly out of scope per the 2026-10-08 refinement.

Acceptance criteria

  • Criterion 1: Every research setting referenced in config/defaults.py:869-871 and config/constants.py:2783-2786 is either read by at least one module in src/ or removed from both files
    Verification: grep -r for each setting name across src/ and tests/ shows a reader, or the name is absent from config/defaults.py and config/constants.py
  • Criterion 2: No two setting names map to the same underlying value; each research setting has exactly one canonical name
    Verification: A test or config-audit command enumerates all research settings and asserts name uniqueness (no two names resolve to the same key or value pair)
  • Criterion 3: Tests exercise the reader path for every retained setting, confirming the value flows from config into the consuming code
    Verification: pytest -k syntopical (or the relevant test module) passes and covers each retained setting's read path

Key questions

  • Should the settings be read (wired into a consumer) or deleted?: Deletion is the lower-risk option because the full syntopical engine is not in this PR's scope and no consumer exists in src/ or tests/. The implementer should delete the unread settings unless a reader is planned in the same release, in which case wiring it up is preferred. (proposed)

Open questions

  • Does this PR deliver the full syntopical dialectical synthesis engine or only the settings cleanup? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.
[end-marker]

Proposed design

Problem statement

The syntopical research settings defined in config/defaults.py (lines 869-871) and config/constants.py (lines 2783-2786) have no reader anywhere in src/ or tests/, and two distinct setting names both map to the same value (20). Per the 2026-10-08 refinement, this PR must either wire up a reader for each setting or delete it, and ensure every research setting has exactly one canonical name, so that no dead or duplicated configuration remains. The full syntopical dialectical synthesis engine (ingestion, lexicon alignment, dialectical matrix output) is explicitly out of scope.

Acceptance criteria

  • Criterion 1: Every research setting referenced in config/defaults.py:869-871 and config/constants.py:2783-2786 is either read by at least one module in src/ or removed from both files
    Verification: grep -r for each setting name across src/ and tests/ shows a reader, or the name is absent from config/defaults.py and config/constants.py
  • Criterion 2: No two setting names map to the same underlying value; each research setting has exactly one canonical name
    Verification: A test or config-audit command enumerates all research settings and asserts name uniqueness (no two names resolve to the same key or value pair)
  • Criterion 3: Tests exercise the reader path for every retained setting, confirming the value flows from config into the consuming code
    Verification: pytest -k syntopical (or the relevant test module) passes and covers each retained setting's read path

Key questions

  • Should the settings be read (wired into a consumer) or deleted?: Deletion is the lower-risk option because the full syntopical engine is not in this PR's scope and no consumer exists in src/ or tests/. The implementer should delete the unread settings unless a reader is planned in the same release, in which case wiring it up is preferred. (proposed)

Open questions

  • Does this PR deliver the full syntopical dialectical synthesis engine or only the settings cleanup? (missing verified source)
  • What specific setting names exist at config/defaults.py:869-871 and config/constants.py:2783-2786? (missing verified source)
  • Which two setting names both map to the value 20? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.
[end-marker]

Proposed design

Problem statement

The syntopical research settings defined in config/defaults.py (lines 869-871) and config/constants.py (lines 2783-2786) have no reader anywhere in src/ or tests/, and two distinct setting names both map to the same value (20). Per the 2026-10-08 refinement, this PR must either wire up a reader for each setting or delete it, and ensure every research setting has exactly one canonical name, so that no dead or duplicated configuration remains. The full syntopical dialectical synthesis engine (ingestion, lexicon alignment, dialectical matrix output) is explicitly out of scope for this PR.

Acceptance criteria

  • Criterion 1: Every research setting referenced at config/defaults.py:869-871 and config/constants.py:2783-2786 is either read by at least one module in src/ or removed from both config files
    Verification: grep -r for each setting name across src/ and tests/ shows a reader, or the name is absent from config/defaults.py and config/constants.py
  • Criterion 2: No two setting names map to the same underlying value; each research setting has exactly one canonical name
    Verification: A test or config-audit command enumerates all research settings and asserts name uniqueness (no two names resolve to the same key or value pair)
  • Criterion 3: Tests exercise the reader path for every retained setting, confirming the value flows from config into the consuming code
    Verification: pytest -k syntopical (or the relevant test module) passes and covers each retained setting's read path

Key questions

  • Should the settings be read (wired into a consumer) or deleted?: Delete the unread settings. The full syntopical engine is not in this PR's scope and no consumer exists in src/ or tests/. If a reader is planned in the same release, wiring it up is preferred, but deletion is the lower-risk default. (proposed)

Open questions

  • Does this PR deliver the full syntopical dialectical synthesis engine or only the settings cleanup?: The 2026-10-08 refinement narrows the deliverable to the settings issue: 'no research setting is left unread, and each has one name.' The full engine (ingestion, lexicon alignment, dialectical matrix output) is not in this PR's acceptance criteria. (proposed)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.
[end-marker]

Proposed design

Problem statement

The syntopical research settings defined in config/defaults.py (lines 869-871) and config/constants.py (lines 2783-2786) have no reader anywhere in src/ or tests/, and two distinct setting names both map to the same value (20). Per the 2026-10-08 refinement, this PR must either wire up a reader for each setting or delete it, and ensure every research setting has exactly one canonical name, so that no dead or duplicated configuration remains. The full syntopical dialectical synthesis engine (ingestion, lexicon alignment, dialectical matrix output) is explicitly out of scope for this PR.

Acceptance criteria

  • Criterion 1: Every research setting referenced at config/defaults.py:869-871 and config/constants.py:2783-2786 is either read by at least one module in src/ or removed from both config files
    Verification: grep -r for each setting name across src/ and tests/ shows a reader, or the name is absent from config/defaults.py and config/constants.py
  • Criterion 2: No two setting names map to the same underlying value; each research setting has exactly one canonical name
    Verification: A test or config-audit command enumerates all research settings and asserts name uniqueness (no two names resolve to the same key or value pair)
  • Criterion 3: Tests exercise the reader path for every retained setting, confirming the value flows from config into the consuming code
    Verification: pytest -k syntopical (or the relevant test module) passes and covers each retained setting's read path

Key questions

  • Should the settings be read (wired into a consumer) or deleted?: Delete the unread settings. The full syntopical engine is not in this PR's scope and no consumer exists in src/ or tests/. If a reader is planned in the same release, wiring it up is preferred, but deletion is the lower-risk default. (proposed)

Open questions

  • Does this PR deliver the full syntopical dialectical synthesis engine or only the settings cleanup? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.
[end-marker]

Proposed design

Problem statement

The syntopical research settings defined in config/defaults.py (lines 869-871) and config/constants.py (lines 2783-2786) have no reader anywhere in src/ or tests/, and two distinct setting names both map to the same value (20). Per the 2026-10-08 refinement, this PR must either wire up a reader for each setting or delete it, and ensure every research setting has exactly one canonical name, so that no dead or duplicated configuration remains. The full syntopical dialectical synthesis engine (ingestion, lexicon alignment, dialectical matrix output) is explicitly out of scope for this PR.

Acceptance criteria

  • Criterion 1: Every research setting referenced at config/defaults.py:869-871 and config/constants.py:2783-2786 is either read by at least one module in src/ or removed from both config files
    Verification: grep -r for each setting name across src/ and tests/ shows a reader, or the name is absent from config/defaults.py and config/constants.py
  • Criterion 2: No two setting names map to the same underlying value; each research setting has exactly one canonical name
    Verification: A test or config-audit command enumerates all research settings and asserts name uniqueness (no two names resolve to the same key or value pair)
  • Criterion 3: Tests exercise the reader path for every retained setting, confirming the value flows from config into the consuming code
    Verification: pytest -k syntopical (or the relevant test module) passes and covers each retained setting's read path

Key questions

  • Should the settings be read (wired into a consumer) or deleted?: Delete the unread settings. The full syntopical engine is not in this PR's scope and no consumer exists in src/ or tests/. If a reader is planned in the same release, wiring it up is preferred, but deletion is the lower-risk default. (proposed)
  • Does this PR deliver the full syntopical dialectical synthesis engine or only the settings cleanup?: Only the settings cleanup. The 2026-10-08 refinement narrows the deliverable to: 'no research setting is left unread, and each has one name.' The full engine (ingestion, lexicon alignment, dialectical matrix output) is not in this PR's acceptance criteria. [sources: docs/ROADMAP.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.
[end-marker]

Activity

  1. added this to the v0.2.21 milestone on Sep 19, 2026
  2. added
    type/feature
    scope/ai
    priority/p0-critical
    on Sep 19, 2026
  3. modified the milestones: v0.2.21, , v0.2.22, on Sep 19, 2026
  4. removed this from the milestone on Oct 4, 2026
  5. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Linked: #274, #275, #276, #277 and #278 (each gets no separate comment). Commands of one unbuilt research engine, the devops ai research group (VISION item 13); #273 holds its unread settings. Each keeps its own deliverable. Found by the 2026-10-08 backlog review.

  6. added this to the v0.2.33 milestone on Oct 9, 2026
  7. dan-petty commented on Oct 9, 2026

    @dan-petty
    OwnerAuthor

    Rescheduled from v0.2.33 (owner, 2026-10-09): not ready to be worked

    The v0.2.33 assessment and its challenge both found this item cannot be built as written. It shows Ready on the board but was never refined (no design section), so refine never reached it. The owner asked to implement what is ready and reschedule the rest, so it moves to v0.2.34 and back to New for refinement (#1515 makes refine reach Ready-but-unrefined items).

    Findings and the questions refinement must answer

    Return #273 to New and take it out of v0.2.33. Ship nothing for it in this run.

    #273 cannot be built as written:

    • Its sources are undefined: there is no named source for RFCs or "upstream" discussions, and nothing says how sources are chosen.
    • Nothing defines a "statement" or a "contradiction" in code.
    • There is no mechanical check for a contradiction the LLM produces, which the evidence-first direction requires.
    • The only ready criterion is the settings checkbox, and it belongs to the PR that delivers the engine.

    A cleanup-only PR now is either blocked by readiness (it closes no issue) or closes the engine feature without the engine (it closes #273).

    The seven unread settings stay until one of these lands first:

    If the owner wants them gone in v0.2.33, there are two ways:

    Refine #273 together with #274-#278: decide once the shared group, the data-directory setting, the citation model and the mechanical check. Each item keeps its own deliverable, per the 2026-10-08 comment. If all six go back to New, v0.2.33 drops from 17 items to 11.

    Questions the owner must answer:

    1. Invocation and how sources are chosen: named by the user, the RAG index, or ai/lexical.py?
    2. The source kinds in version 1, and where RFC texts and "upstream" discussions come from.
    3. What a statement, a contradiction and a consensus are in code.
    4. The check: are LLM-originated contradictions allowed, or must every citation be checked mechanically? And what is the acceptance test beyond fake-model plumbing?
    5. The JSON schema for the matrix and the lexicon, the citation format, and the Rich layout.
    6. The model tier, and whether private content may go to a frontier model.
    7. Storage location under the data root, how a topic maps to a file name, and whether a rerun overwrites or keeps versions.
    8. Whether feat(ai): syntopical dialectical synthesis engine (devops ai research syntopical) #273 owns the shared research group and models.
    9. --dry-run with zero requests, and whether there is an MCP tool.
    10. Whether P0 in v0.2.33 is intended, or this belongs to the v0.3.x research theme.
  8. modified the milestones: v0.2.33, v0.2.34 on Oct 9, 2026
  9. dan-petty-bot commented on Oct 10, 2026

    @dan-petty-bot
    Collaborator

    Status set to Ready at 1d1ccc5 (see proposed design in issue body).

  10. dan-petty-bot commented on Oct 10, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1551, merged into release/v0.2.34 as 51b0115.

    Closes #273

    5 file(s) changed.

    How it was verified

    Check runs at 82e5b27:

    • Prune PR DevContainer Images: pass
    • bandit: pass
    • devops-cli: pass
    • CodeQL: pass
    • Static Analysis: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • Changed-Test Independence: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-273-syntopical-dialectical-synthesis-engine-devops-ai-research-s.md:

    • Every unread research setting referenced at config/defaults.py (DEFAULT_RESEARCH_DIR, DEFAULT_SYNTOPICAL_TIMEOUT_SECONDS, DEFAULT_SYNTOPICAL_MAX_SOURCES) and config/constants.py (CONST_RESEARCH_DIR_NAME, CONST_DEFAULT_MAX_SYNTOPICAL_SOURCES, CONST_SYNTOPICAL_MIN_RELEVANCE, CONST_SYNTOPICAL_MAX_EXCERPT_CHARS) is removed.
    • No two setting names map to the same underlying value; no dead or unread research setting names remain.
    • Test coverage in tests/test_codebase_hygiene_and_shims.py asserts that the deleted settings and names are absent from both modules.
    • Maintain cyclomatic complexity $M \le 10$ and nesting depth $\le 5$.
    • 100% passing across Gated CI validation suite (uv run devops ci).
  11. added a commit that references this issue on Oct 11, 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

    priority/p0-criticalscope/aitype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions