Skip to content

update-shape.py apply: the no-shape:-block remediation names validate-manifest.py on a FAMILY root (should be the kind's validator, validate-family.py) #48

Closed

Description

@brettheap

Lane: xfactory-1 (xFactory-1)

What

update-shape.py apply refuses when the root's manifest has no shape: block (Refusal("update-manifest-no-shape", …)). Its remediation line says:

Remediation: `validate-manifest.py` requires one; add it, or re-scaffold.

On a family root the validator is scripts/validate-family.py; validate-manifest.py does not exist there (templates/family-root/scripts/ ships bootstrap.py and validate-family.py only). The remediation is right in substance — validate-family.py does require the shape pin block (its docstring, lines 24–25) — and wrong only in the name it sends the operator to.

Follow-on of #44 (PR #47 355f6ef4), which fixed the manifest name in the same function's messages but deliberately left the validator name alone as a separate defect.

Where (at 355f6ef4, current main)

  • update-shape.py:783 — the remediation string inside rewrite_manifest, which since update-shape.py: the apply commit names the root's manifest, not project.yaml #47 already receives kind: Kind.
  • update-shape.py:766 — the same function's docstring opens "The two fields validate-manifest.py checks, inside shape:" — project-specific prose in a function that now runs for both kinds.
  • update-shape.py:141–177 — Kind already carries validators: PROJECT_KIND → ("scripts/validate-pins.py", "scripts/validate-manifest.py"), FAMILY_KIND → ("scripts/validate-family.py",). Nothing new needs inventing.

Fix (small)

In the remediation, name the kind's manifest validator instead of the literal — either kind.validators[-1] (the manifest-checking validator is last in both tuples) or, cleaner, a manifest_validator attribute on Kind set explicitly for each kind. Re-word the docstring to say "the two fields the kind's manifest validator checks". Extend the existing no-shape:-block refusal test (or add one on a family fixture) to assert the remediation names validate-family.py on a family root and validate-manifest.py on a project root.

Status

Filed on Brett Heap's word, in session, 2026-09-05 ("file the validate-family nit"). UNCLAIMED — any lane may take it under lane-collision-protocol Rule 1 (claim here after the three reads). Lane xFactory-1 will author it on Brett's word; until then this issue is the governing record only.

Activity

  1. brettheap commented on Sep 5, 2026

    @brettheap
    ContributorAuthor

    (lane xFactory-1, 2026-09-05T18:37:49Z)

    CLAIMED — lane xFactory-1, session session_015WekBEXf55Xv64psGe5t3T, 2026-09-05T18:37:49Z, for openRepoShape #48 — update-shape.py: the no-shape:-block remediation names the kind's manifest validator (+ the rewrite_manifest docstring; a per-kind assertion).

    On Brett Heap's word, in session, 2026-09-05 ("fix the nit, claim 48").

    Three reads (Rule 1), all clean at 2026-09-05T18:37:49Z:

    1. This issue: no comments, no claim.
    2. gh pr list --repo opensoft/openRepoShape --state all --search "validate-family remediation": hits are update-shape.py: the apply commit names the root's manifest, not project.yaml #47 (the update-shape.py apply: the commit message says project.yaml on a FAMILY root; it should name kind.manifest #44 fix, merged), A neutral product may elect the shape and be its own assembly root (#41) #45, adopt execute and family init set the xf-project-<id> topic, as the scaffold does #24 — none on this object; no open PRs.
    3. git ls-remote --heads origin | grep -iE 'validator|remediation|family-validator': no matching branch.

    Branch fix/family-validator-remediation from main (355f6ef4), scratch clone; PR body will open Lane: xfactory-1 (xFactory-1) + this claim's URL. Merge waits for Brett's word.

  2. added a commit that references this issue on Sep 5, 2026
    e9c4827
  3. brettheap commented on Sep 5, 2026

    @brettheap
    ContributorAuthor

    (lane xFactory-1, 2026-09-05T18:48:48Z)

    LANDED — lane xFactory-1, 2026-09-05T18:48:48Z, PR #52 → squash e9c4827b on main (2026-09-05T18:48:38Z), on Brett Heap's word "merge it when green" (tests + SonarCloud green, Sourcery skipped, no review threads). Kind now carries an explicit manifest_validator per kind; the no-shape:-block refusal names its basename; rewrite_manifest's docstring reworded; per-kind e2e refusal tests added (498 passed).

    RELEASED — lane xFactory-1, 2026-09-05T18:48:48Z, for #48 (claim issuecomment-5553949227 discharged).

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