Skip to content

test: ratchet internal patches and private imports in tests/ #5248

Closed

Description

@dan-petty

Problem or Motivation

Child 18 of the ADR modernization (#5233). Code. It enforces ADR 0007 as it is written, so it needs no new decision.

The review of each record that this item changes:

  • ADR 0007 (supersede after owner decision 4 (tests record)): The seam and fake rules hold (internal patches fell from 1,925 to 223). The program ban is not enforced: 67 live marks remain, and the openspec contract tests skip in CI. One ratchet over all of tests/ can go in now.

Proposed Solution & Architectural Design

tests/invariants/test_source_tree.py gets ceilings that only fall over all of tests/: 223 string patches of devops_cli names and 146 private imports. Correct docs/TESTING.md:246.

Rules of the ADR process (docs/adr/README.md, #5225) that apply:

  • Use one form for a Status History line, 30 words at most: 'YYYY-MM-DD: Amended by ADR NNNN, section S | Amended by the owner decision in #N, section S | Superseded by ADR NNNN | Fact out of date: (#N) | Living detail moved to (#PR).' The PR that makes a fact of a record wrong adds the line (AGENTS.md rule 8). An agent never edits the body of an accepted record.

Target Subsystem

tests/invariants/test_source_tree.py, docs/TESTING.md.

Existing Tool Considered

The ceilings of tests/invariants/test_source_tree.py (in use). No new tool.

Acceptance Criteria

  • tests/invariants/test_source_tree.py gets ceilings over all of tests/ that only fall: 223 string patches of devops_cli names and 146 private imports.
  • A new internal patch or a new private import in tests/ fails the test.
  • docs/TESTING.md:246 is correct.

Dependencies

None.

Related

Source: #5233

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/test
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    status/in-review
    and removed
    status/new
    on Nov 12, 2026
  5. removed
    status/in-review
    on Nov 15, 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

    effort/lowpriority/p2-mediumsource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions