Skip to content

Style Charter §12: identity is topological; tolerances are named and scaled - #1149

Merged
lmoresi merged 2 commits into
developmentfrom
docs/charter-topological-identity
Nov 13, 2026
Merged

lmoresi merged 2 commits into
developmentfrom
docs/charter-topological-identity

Conversation

@lmoresi

@lmoresi lmoresi commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Adds §12, "Identity, Geometry and Tolerances", to the Style Charter, and a row for it in the developer index's authority map. Docs only.

The rule as it now reads:

  • Identity is topological. A vertex, facet, fault side or owning rank is identified by its mesh point, label or point-SF ownership, never by its coordinates. Where a choice must be the same at every rank count, the code says so, and a partition-independent tie-break needs a partition-independent key.
  • Properties are declared and maintained, not re-measured. An operation that writes coordinates either preserves a declared property by construction or releases it, and says which.
  • Geometric search is only for points that are not mesh entities. It starts from connectivity where a start cell is known, and tests containment in reference coordinates with relative tolerances.
  • Any tolerance that remains is named in one place, with what it bounds and what it scales with. Never an absolute number in model units.
  • The exception: reconstructing from saved data whose topology or numbering does not match the live mesh, such as a reload on a different partition, may match by coordinates. The tolerance is then mesh-scaled and stated, and the match refuses rather than guesses when a point has no partner, or more than one.

Why. A 2026-11 survey found 41 coordinate-keyed sites and 49 absolute tolerances in the library. Several of this month's parallel defects came from those sites, for example #1109's seam facets matched by coordinates, and the absolute face tolerance (1e-5 in model units) behind #1115.

Placement. The section is §12, after "Things to Remember", so that §1 to §11 keep their numbers. They are cited by number elsewhere: the style gates cite S3, S4 and S7, and reviews and the testing guide cite §8.

Review changes (33c3ce3):

  • The tie-break example is reworded. Coordinate order is a key only over candidates that topology has already fixed, and that are the same on every rank: the coordinates rank the candidates, they do not identify them. A DMPlex point number, local or global, follows the partition, so it cannot be that key.
  • The PR template's checklist gains an S12 line.

Not changed, so the diff stays reviewable:

  • No code is changed. Existing sites are to be brought into line as they are touched (§2).

Underworld development team with AI support from Claude Code

…scaled

A new normative section: a vertex, facet, fault side or owning rank is identified
by mesh point, label or point-SF ownership, never by coordinates; an operation
that writes coordinates preserves or releases a declared property instead of
leaving it to be re-measured; geometric search is only for points that are not
mesh entities, from connectivity, in reference coordinates with relative
tolerances; a remaining tolerance is named once and says what it bounds and
scales with. The exception: reconstruction from saved data whose topology or
numbering does not match the live mesh may match by coordinates, with a
mesh-scaled stated tolerance, refusing when a point has no partner or two.

The developer index's authority map points at the section.

Underworld development team with AI support from Claude Code
Copilot AI balanced review requested due to automatic review settings November 13, 2026 10:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

…in the PR checklist

Review: the example read as coordinates used as identity. It now says that
coordinate order is a key only over candidates topology has already fixed (the
same on every rank), and that a DMPlex point number, local or global, follows the
partition. The PR template's checklist gains the S12 line.

Underworld development team with AI support from Claude Code
@lmoresi
lmoresi merged commit d306934 into development Nov 13, 2026
10 checks passed
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.

2 participants