Skip to content

single-repository.yaml: openRepoProject records that it stays a single repository, as Brett Heap decided on 2026-10-14, so the Triad advisory is no longer said here - #31

Merged
brettheap merged 1 commit into
mainfrom
l3-30-single-repository
Oct 14, 2026
Merged

brettheap merged 1 commit into
mainfrom
l3-30-single-repository

Conversation

@brettheap

@brettheap brettheap commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openreposhape-3 (openRepoShape-3)
Claim: #30 (comment)

What

One new file at the repository root, single-repository.yaml, the optional record that this project stays a single repository:

  • copied from openRepoShape's template templates/single-repository/single-repository.yaml, with the template's comments kept;
  • decided_by: "Brett Heap" and decided_on: "2026-10-14";
  • reason: "openRepoProject is one command-line tool whose OpenSpec changes, Speckit features and code are reviewed and released together, so it stays in one repository rather than splitting into spec and code legs.";
  • no revisit_on: its line and its own comment are left out, as openRepoShape's own single-repository.yaml leaves them.

Checked against openRepoShape's schema contracts/single-repository-record.yaml (at openRepoShape 5ed3e5de): schema_version: 1 and kind: single-repository-record as the schema fixes them, every required field present and of its type, decided_on a real YYYY-MM-DD date, no key outside the schema, no {{...}} left. openRepoShape's own advisory reader (scripts/shape_advisory.py) reads it as recorded-single, with no record problem and no field problem.

Why

Issue #30. Brett Heap, 2026-10-14, at 16:55:06Z: "declare single-repository.yaml for openRepoTools and openRepoProject". Asked at 17:43:52Z about openRepoTools' Triad migration (opensoft/openRepoTools#186) he said "Keep the migration", so only openRepoProject is declared; openRepoTools' migration continues.

The record is optional and confers nothing. Its only reader is openRepoShape's Triad advisory; no gate, check, validator or review reads it. Converting to the Triad later stays possible with adopt-project.py, by a person deciding for the project. The project command still never writes this file (README.md and openspec/specs/project-command say so); this one is added by a reviewed pull request.

The reason sentence is a proposal; Brett Heap may reword it in review.

Doctor, before and after

shape-doctor.py --root <this checkout> from openRepoShape 5ed3e5de, run with a gh stub first on PATH, GH_TOKEN=bogus and an empty GH_CONFIG_DIR. Before: the checkout without the file. After: the checkout with it.

Row Before After
Triad (triad-advisory) advisory: "This is a single repository. The Triad -- an assembly root with a spec leg and a code leg -- is the preferred project shape; preferred, not required: it confers nothing ... a project that stays single can say so in single-repository.yaml. Nothing here changes; work continues." no row: the advisory is silent
what is here n/a: a git repository, an AGENTS.md n/a: a git repository, an AGENTS.md, a single-repository.yaml
every other row (naming, the way in, machine) unchanged unchanged
verdict NOT A SHAPE ROOT (exit 2) NOT A SHAPE ROOT (exit 2)

The naming finding in both runs is about the worktree directory's name (l3-30-single-repository), not about this change. The exit status does not move: the advisory never fails a report.

Tests

python3 -m unittest discover -s tests -v (the command .github/workflows/tests.yml runs): 96 tests, OK, 0 skipped, on Python 3.12.3 / Linux. The workflow's macOS and Python 3.10 legs were not run locally. No test, document or workflow lists the root's files, and none reads the repository's own root for single-repository.yaml (the one rglob for it, in tests/test_project.py, searches a temporary directory).

Closes #30.

🤖 Generated with Claude Code

Summary by Sourcery

Record the project’s decision to remain a single repository and silence the corresponding Triad advisory.

New Features:

  • Add a root-level record declaring that the project will remain a single repository.

Enhancements:

  • Document the project’s decision and rationale for staying single-repository, suppressing the related Triad advisory.

…e repository, as Brett Heap decided on 2026-10-14, so the Triad advisory is no longer said here

What: one new file at the repository root, single-repository.yaml, copied
from openRepoShape's template templates/single-repository/single-repository.yaml
with its comments kept and the template's optional revisit_on field (and its
comment) left out, as openRepoShape's own record leaves it. decided_by is
"Brett Heap", decided_on is "2026-10-14", and reason is one sentence: that
openRepoProject is one command-line tool whose OpenSpec changes, Speckit
features and code are reviewed and released together, so it stays in one
repository rather than splitting into spec and code legs. The file was
checked against openRepoShape's schema contracts/single-repository-record.yaml
(every required field present and of its type, decided_on as YYYY-MM-DD).

Why: issue #30. Brett Heap, 2026-10-14, at 16:55:06Z: "declare
single-repository.yaml for openRepoTools and openRepoProject". Asked at
17:43:52Z about openRepoTools' Triad migration (opensoft/openRepoTools#186) he
said "Keep the migration", so only openRepoProject is declared here.

Effect: the record is optional and confers nothing. Its only reader is
openRepoShape's Triad advisory (shape-doctor.py's `Triad` row), which stops
telling people here that the Triad is preferred. No gate, check, validator or
review reads it. Converting to the Triad later stays possible with
adopt-project.py, by a person deciding for the project. The `project` command
still never writes this file (README.md and openspec/specs/project-command say
so): this one is added by a reviewed pull request.

The reason sentence is a proposal; Brett Heap may reword it in review.

Closes #30.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Adds a schema-compliant root-level single-repository record, copied from the openRepoShape template and populated with the recorded decision and rationale. The record is advisory-only: it silences the Triad recommendation while preserving the existing NOT A SHAPE ROOT verdict and all other checks.

Sequence diagram for the single-repository advisory

sequenceDiagram
    participant Doctor as shape-doctor.py
    participant Record as single-repository.yaml
    participant Advisory as Triad advisory
    participant Verdict as Shape verdict

    Doctor->>Record: read single-repository record
    Record-->>Advisory: recorded-single
    Advisory-->>Doctor: suppress Triad recommendation
    Doctor->>Verdict: evaluate remaining checks
    Verdict-->>Doctor: NOT A SHAPE ROOT, exit 2
Loading

File-Level Changes

Change Details Files
Adds the repository’s optional single-repository declaration using the openRepoShape record format.
  • Adds fixed schema metadata for a single-repository record.
  • Records Brett Heap as the decision-maker and 2026-10-14 as the decision date.
  • Documents the rationale that specifications, features, and code are reviewed and released together.
  • Retains the upstream template’s explanatory comments while omitting the optional revisit field and its comment.
single-repository.yaml
Suppresses the openRepoShape Triad advisory without changing project shape enforcement or repository behavior.
  • Causes the advisory reader to recognize the project as an intentional single repository.
  • Leaves the shape-doctor verdict and all other diagnostics unchanged.
  • Introduces no gates, validators, workflow changes, or automated file-generation behavior.
single-repository.yaml

Assessment against linked issues

Issue Objective Addressed Explanation
#30 Add a root-level single-repository.yaml record declaring that openRepoProject will remain a single repository, with the required decision-maker, date, reason, and no revisit_on field. ✅
#30 Have the declaration silence openRepoShape’s Triad-preference advisory for openRepoProject, without changing openRepoTools’ migration or imposing any gate or restriction on future conversion. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sonarqubecloud

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@brettheap
brettheap merged commit 63dd4ad into main Oct 14, 2026
10 checks passed
brettheap pushed a commit that referenced this pull request Oct 18, 2026
Brings #31 (single-repository.yaml) and #32 (CI on Linux only, by Brett
Heap's decision of 2026-10-15). No conflict: neither touches the change
directory.

Lane: openRepoProject-4
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 18, 2026
Brings #31 (single-repository.yaml: openRepoProject stays a single
repository, Brett Heap's decision of 2026-10-14) and #32 (CI on Linux
only: tests.yml runs ubuntu-latest with Python 3.10 and 3.12; README's
Development section says CI covers Linux only). No conflict.

Lane: openRepoProject-4
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 18, 2026
…he [G] reconcile items

After merging main at e9d6711 (#31 single-repository.yaml; #32 CI on Linux
only), the spec follows the CI change, and feature 004's citations move
from 5a71f83 to its current head on origin, 66d60b6, with lane
openRepoProject-2's edits applied.

Main (e9d6711):
- Dependencies, Runtime and CI: CI runs on Linux only (Python 3.10 and
  3.12 on ubuntu-latest; README, Development), not "Linux and macOS";
  change 2's design Context still names the old matrix; feature 004's
  Git 2.36 floor job is named, with Q3 left open.
- EC-017 and FR-049: the non-UTF-8 path tests run on every CI job; the
  macOS skip of design D13 stays, serving only a local macOS run.
- Header and Assumptions: #32 moved the workflow lines change 2 cites
  (tests.yml:10 and :18, now 9 and 17); the spec cites no line of
  project, README.md or the workflow. Suite still 96 tests at e9d6711.
- #31 touches nothing the spec cites.

Feature 004, 5a71f83..66d60b6, spec.md, data-model.md,
contracts/project-clean.md and tasks.md diffed:
- data-model, Gate and the reflog outcome table: a reflog read past its
  filesystem budget now leaves the row unprobed (inspection-incomplete),
  no longer inspection-error (plan review M5). This matches change 2;
  the first [G] reconcile item is removed and C-22 records the reading.
- data-model, reflog outcome table, unchanged: "over 65,536 bytes" is
  reflog-unavailable, and tasks T059 and T066 still decide a reflog of
  exactly 65,536 bytes by its entries (plan review m10). The spec follows
  the delta ("read to its 64 KiB bound") under ruling R-33: 65,536 bytes
  or more is reflog-unavailable, 65,535 is decided by its entries
  (FR-033, EC-009, C-22, and a named boundary test in FR-049). Lane 2
  rules this one feature 004's to settle, so the second [G] item is
  removed too; the Assumptions' rule (the change governs, the plan
  reconciles with 004's merged text) still covers any remaining gap.
- data-model, Child handle: kind delete-branch renamed delegate (the
  git branch -d child); states, the 4 s cleanup bound and R-30 are
  unchanged. Dependencies now lists probe, removal and delegate, plan-stage
  detail, the overview starting only probe handles; the push and
  delete-branch actions keep their names.
- contracts/project-clean.md: the internal-error message is now
  "TYPE: TEXT", without "Internal error: ". No change: FR-021 and FR-039
  ask only for a message naming the exception class; the git-too-old and
  git-unavailable messages are unchanged.
- tasks.md: T001 ticked (the 96-test baseline). No change beyond the
  test count note.
- spec.md: no change; the cited FR-009, FR-062, FR-067, EC-001, the
  contract's "Git children" and the data model's "Driver outcome" are
  unchanged.
- Outside the four files: project gained empty regions and imports
  (T004 step 1), so "no code yet" now reads "only empty regions and
  imports"; research.md rewords R10 and R14 (delegate, advance(now)).

clarify-questions.md is not touched (its Q2 still cites 5a71f83), and no
question is answered. openspec validate add-project-overview --strict:
valid. Traceability by script: 13 of 13 requirements, 63 of 63
scenarios. Checklist re-validated, 16 of 16.

Lane: openRepoProject-4
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 19, 2026
)

Lane: openRepoProject-2

Brings 63dd4ad and e9d6711. The test job now runs on ubuntu-latest only, by Brett Heap's decision of 2026-10-15; 004's docs follow under lead ruling R-35.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 19, 2026
…009)

Lane: openRepoProject-2

Takes the integration branch at 182d9b5: tests/clean_support.py
(T009), the traceability record (T002) and main's #31 and #32, so
that T005's tests/test_clean_timing.py can load project through
load_project().

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Declare single-repository.yaml: openRepoProject stays a single repository (Brett Heap, 2026-10-14)

1 participant