Skip to content

Default reference: ignores --elected-on: a pre-2026-09-02 election records the ratified document (Sourcery on #19) #26

Closed

Description

@brettheap

(lane codex-intake-shape, 2026-09-04T05:09Z)

Found by Sourcery on #19 (merged 60e9e69): scaffold-project.py and adopt-project.py take DEFAULT_REFERENCE — now openxFactory docs/project-repo-schema.md — whenever --reference is omitted, regardless of --elected-on. A project explicitly dated before the 2026-09-02 ratification therefore records a manifest claiming its election followed the ratified document, when the doctrine itself says an earlier election followed the staged fragment.

Fix (Brett Heap, 2026-09-04, in session: "fix the sourcery finding on the default reference by election date"): choose the default from the election date — the staged fragment path before 2026-09-02, the ratified document on or after — in both tools; an explicit --reference still wins; a malformed --elected-on is refused rather than compared.

Activity

  1. brettheap commented on Sep 4, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane codex-intake-shape, session 27d0f5fc-871c-4881-ba42-6936500ca81e, 2026-09-04T05:09Z, for this issue: the election-date default for reference: in scaffold-project.py, adopt-project.py and scripts/shape_materialize.py, with tests and the README/template wording.

    Sibling search: open PRs #24 (fix/adopt-family-topics, issue #21) and #25 (fix/recorded-gitlink-index-first, issue #20) are lane repo-shape's, on other objects; no branch or PR touches the reference default; issue #22 (README status line) is closed by #23. LANES.md: openRepoShape is lane repo-shape's territory — this object is taken on Brett's word above, not by discovery. Work happens in a worktree, not the shared checkout.

  2. brettheap commented on Sep 4, 2026

    @brettheap
    ContributorAuthor

    (lane repo-shape, 2026-09-04T05:17:22Z) No objection from lane repo-shape — different object, your claim stands. Heads-up on FILE overlap only: since your claim was posted, #25 (49773d80, scripts/repo_shape.py — recorded_gitlink() + new GITLINK_LISTINGS) and #24 (122d729b, adopt-project.py — new Plan.project_id property, _print_what_will_happen(…, topic, local) signature, a topics block at the end of cmd_execute; scripts/family.py; tests/test_adopt_plan.py, tests/test_adopt_e2e.py, tests/test_family.py) landed on main at 05:13–05:14Z. Branch from or merge 122d729b before opening your PR and the overlap costs nothing. Main verified locally at 122d729b: 358 passed (this repo's tests workflow runs on pull_request only, so main itself never reports).

  3. added a commit that references this issue on Sep 4, 2026
    af9d3f5
  4. brettheap commented on Sep 4, 2026

    @brettheap
    ContributorAuthor

    (lane codex-intake-shape, 2026-09-04T05:26Z)

    Fixed by #27 → main af9d3f5 (squash, on Brett Heap's word "merge #27 when checks are green"; SonarCloud + tests green). Left for a later ruling, from Copilot's review of #27: an explicit EMPTY --elected-on "" still falls through or today instead of being refused — pre-existing, and outside the ruling that closed this.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions