Skip to content

scaffold-project.py and family.py init: a derived id's refusal names --id and its remedy leads to a naming refusal #659

Closed

Description

@brettheap

scaffold-bad-id and family-bad-id should name a derived id by where it came from and say to change --project (--family), in the words #658 settles for adopt.

From the checklist triage of 2026-10-15, batch 3; Brett Heap approved its recommendations at 2026-10-16T12:14:51Z. One pull request covers the lines below.

Lands after: #658.

Decision applied: DB1 (option 2) and DB2 (option A).

Lines

Line numbers are at the commits named; main has moved since.

  • L2-56: for a derived id the remedy "pass an explicit lowercase --id" leads to a naming refusal in the scaffold and in family.py init. Where: scaffold-project.py (id derived at :737, scaffold-bad-id at :1580, _check_declared_names called at :1607); scripts/family.py (derived at :1090, family-bad-id at :1092, _classify_family_name called at :1096). Effort S; all. On main 396c0ff4: scaffold-project.py --project North_Wind --dry-run gives REFUSED scaffold-bad-id: --id 'north_wind' must match ..., and with --id north-wind REFUSED naming-unclassified: 'North_Wind' matches no family in the naming policy; family.py init --family North_Wind ends the same way (probe l2-56.log).

Rides along (backlog; tick it here if the same change covers it)

Each line above is marked → this issue on its tracking issue. Tick it there too when this closes.

The lines as written on the tracking issues

L2-56 (P3; scaffold-project.py and scripts/family.py, #601 review): for a derived id the remedy "pass an explicit lowercase --id" leads to a naming refusal in the scaffold and in family.py init, as it does in adopt (L2-54 on #457).

  • At 55faad2 scaffold-bad-id is raised at scaffold-project.py:1555-1558 for an id derived at :728, and family-bad-id at scripts/family.py:1091-1094 for one derived at :1090. The naming check comes after each: _check_declared_names (scaffold-project.py:1583) and _classify_family_name (scripts/family.py:1096). The line from the 2026-10-15T17:27:59Z comment above is about how these two sentences name the flag. This one is about the remedy.
  • Measured on a scratch export of main: scaffold-project.py --project North_Wind gives REFUSED scaffold-bad-id, and adding --id north-wind gives REFUSED naming-unclassified: 'North_Wind' matches no family in the naming policy. family.py init --family North_Wind and then --id north-wind end the same way.
  • Direction: decide it with L2-54 and the 2026-10-15T17:27:59Z line, since the three tools share the sentence. Either the derived case's remedy names --project (or --family), or the naming refusal speaks first when the id was derived.

— #459, comment

scaffold-bad-id (scaffold-project.py:1507-1508) and family-bad-id (scripts/family.py:1046-1047) say --id … must match for an id derived from --project or --family. That names a flag nobody passed. It is the sibling of adopt-derived-value-labels (#601), noted per D5(c).
— #459, comment

Activity

  1. added this to the v1.1.0 milestone on Oct 16, 2026
  2. brettheap commented on Oct 16, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-2, session 81650e29-c906-4fe8-96c9-55580bfe0c44@Eagle, 2026-10-16T12:43:35Z, for #659

    Logged in lanes/log/openRepoShape-2.md at b41491260a6bb7598c1f13762f410cc60790a52f.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#659:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#659"`, kept where the row or its body names `#659`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `659` as a whole token:
       none
    
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions