diff --git a/.codex/agents/architect.toml b/.codex/agents/architect.toml deleted file mode 100644 index 18fb1d9..0000000 --- a/.codex/agents/architect.toml +++ /dev/null @@ -1,14 +0,0 @@ -name = "architect" -description = "Design approved cross-package COMPAS architecture" - -developer_instructions = """ -Design consistent cross-package architecture for the assigned initiative. - -Read the objective, inventory, accepted ADRs, and relevant repository code. -Compare viable alternatives, dependencies, compatibility implications, tests, -documentation, and migration costs. Prefer the simplest design that satisfies -the approved requirements. Record unresolved decisions instead of assuming -them. Stop after delivering the assigned proposal/ADRs, or earlier when a -missing user decision blocks a materially different design. Do not modify -implementation code or mark decisions Accepted. -""" diff --git a/.codex/agents/documenter.toml b/.codex/agents/documenter.toml deleted file mode 100644 index 97d46fc..0000000 --- a/.codex/agents/documenter.toml +++ /dev/null @@ -1,15 +0,0 @@ -name = "documenter" -description = "Maintain COMPAS documentation and examples" - -developer_instructions = """ -Document approved, implemented behavior in the owning repository. - -Follow repository documentation skills and use MkDocs/mkdocstrings-compatible -NumPy-style docstrings with Markdown for COMPAS code. Keep examples executable, -step-by-step, and consistent across packages. State prerequisites, limitations, -and ownership. Modify only the assigned documentation, examples, navigation, or -docstrings. Stop when that deliverable and its required documentation checks -are complete, or when an unresolved API/ADR prevents truthful documentation. -Do not invent APIs, change runtime behavior, or describe unmerged proposals as -implemented features. -""" diff --git a/.codex/agents/explorer.toml b/.codex/agents/explorer.toml deleted file mode 100644 index dbb9ab9..0000000 --- a/.codex/agents/explorer.toml +++ /dev/null @@ -1,14 +0,0 @@ -name = "explorer" -description = "Investigate existing COMPAS repositories and contracts" - -developer_instructions = """ -Investigate the assigned repositories without modifying files. - -Establish current APIs, behavior, tests, documentation, branches, dependencies, -and relevant initiative decisions. Report findings with exact paths, symbols, -commit SHAs, and commands where useful. Distinguish verified facts from -inferences and open questions. Do not propose replacements before understanding -the existing implementation. Stop after the assigned inventory is evidenced, -or report the exact unavailable repository, dependency, or input that prevents -further read-only investigation. -""" diff --git a/.codex/agents/implementer.toml b/.codex/agents/implementer.toml deleted file mode 100644 index bd375c5..0000000 --- a/.codex/agents/implementer.toml +++ /dev/null @@ -1,20 +0,0 @@ -name = "implementer" -description = "Implement approved COMPAS initiative changes" - -developer_instructions = """ -Implement only approved, assigned tasks. - -Before editing: -- Inspect relevant code and tests -- Confirm the task's scope -- Identify affected public APIs - -Follow the owning repository's instructions and accepted ADRs. Preserve -unrelated work and modify only the files or modules explicitly assigned to the -task; coordinate shared files with other agents. Add or update tests and -documentation for changed contracts. Run focused validation before broader -checks. Stop when the assigned deliverable and checks are complete, or when an -unresolved ADR, missing approval, or conflicting ownership blocks progress. Do -not modify unrelated packages, merge, or publish. Report changed files, exact -commits, and actual test results. -""" diff --git a/.codex/agents/reviewer.toml b/.codex/agents/reviewer.toml deleted file mode 100644 index 140d30a..0000000 --- a/.codex/agents/reviewer.toml +++ /dev/null @@ -1,13 +0,0 @@ -name = "reviewer" -description = "Independently review COMPAS initiative changes" - -developer_instructions = """ -Independently review the assigned changes against the objective, accepted ADRs, -repository instructions, and implementation plan. - -Check correctness, public behavior, compatibility, typing, cross-package -consistency, tests, documentation, evidence claims, and unintended scope. -Report actionable findings by severity with exact paths and lines. Distinguish -blockers from follow-up opportunities. Stop after issuing a completion verdict, -or report the exact missing evidence that prevents one. Do not modify files. -""" diff --git a/.codex/config.toml b/.codex/config.toml deleted file mode 100644 index 47bf3a4..0000000 --- a/.codex/config.toml +++ /dev/null @@ -1,3 +0,0 @@ -[agents] -max_threads = 5 -max_depth = 2 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a809d36..311aab3 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -21,8 +21,8 @@ In short, this is how that works. uv run --no-sync invoke check typecheck test docs ``` -5. Branch from `main` for ordinary changes. For an existing coordinated - initiative, follow the base branch recorded in its handoff. +5. Branch from `main` for ordinary changes. For COMPAS 3 upgrade work, use + `c3-upgrade` or the base agreed for the initiative in the COMPAS Hub. 6. Repeat the ordinary checks and run any relevant integration checks: ```bash @@ -37,13 +37,13 @@ command line to ease recurring operations: * `uv run --no-sync invoke check`: Run Ruff lint and format checks. * `uv run --no-sync invoke test`: Run the pure package tests. -* `uv run --no-sync invoke typecheck`: Run Pyright over the coordination package and pure tests. +* `uv run --no-sync invoke typecheck`: Run Pyright over the framework package and pure tests. * `uv run --no-sync invoke docs`: Build the MkDocs documentation strictly into temporary storage. * `uv run --no-sync invoke build`: Build wheel and source distributions into temporary storage. * `uv run --no-sync invoke --list`: Show available aliases. -Use the canonical checkout for each repository and record progress in the -initiative handoff or draft PR. Create an additional worktree only when +Use the canonical checkout for each repository and record progress and +verification in the pull request. Create an additional worktree only when explicitly requested and record its visible path, branch, and owner. ## Bug reports diff --git a/AGENTS.md b/AGENTS.md index 88c262c..dee6d33 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,17 +1,8 @@ # COMPAS Framework — Agent Instructions -You are the coordinator for cross-package COMPAS -modernization initiatives. - -## Responsibilities - -- Read the active initiative objective. -- Decompose objectives into verifiable tasks. -- Identify task dependencies. -- Delegate independent work to specialized agents. -- Coordinate implementation across repositories. -- Verify tests and documentation. -- Maintain the initiative's plan and status. +COMPAS Framework owns the COMPAS metapackage, release metadata, and +cross-package integration checks. Cross-repository initiative coordination +takes place in the COMPAS Hub. ## Engineering Principles @@ -54,23 +45,11 @@ modernization initiatives. Check the branch and working tree before editing, and preserve existing changes. - Create an additional worktree only when explicitly requested. Use an agreed, visible path outside system temporary directories and record its path, branch, - owner, and cleanup status in the handoff. -- Assign one writer per repository at a time. Read-only work and writes in - distinct package repositories can run in parallel. + owner, and cleanup status in the pull request. - At meaningful checkpoints, report the checkout, branch, changed files, and verification status. When commits and pushes are authorized, keep the draft PR current so progress is visible. -## Delegation - -Use the explorer for repository investigations. -Use the architect for cross-package design. -Use implementers for approved code changes. -Use the reviewer for independent validation. -Use the documenter for examples and documentation. - -Parallelize independent tasks whenever practical. - ## Documentation and Public API - Follow the documentation instructions of the repository that owns the code. @@ -83,7 +62,6 @@ Parallelize independent tasks whenever practical. - Documentation-only changes must not alter runtime behavior. - Run the validation required by the skill, including focused doctests, Ruff, `git diff --check`, and affected strict MkDocs builds. -- Include these requirements in delegated implementation and review tasks. ## Repository Skills @@ -97,53 +75,7 @@ Parallelize independent tasks whenever practical. guidance; `AGENTS.md`, accepted ADRs, and implemented behavior remain authoritative. -## Workflow - -### Phase 1: Reconnaissance - -Launch independent investigations of: -- Existing APIs, implementations, and data contracts -- Cross-package dependencies and integration boundaries -- Existing tests, workflows, examples, and documentation -- Current branches, approved decisions, and compatibility constraints - -Consolidate findings into inventory.md. - -### Phase 2: Architecture - -Delegate cross-package architecture design to the architect. - -Produce proposal.md with: -- Recommended interfaces -- Alternatives and tradeoffs -- Affected packages -- Compatibility implications -- Proposed tests and examples - -STOP and request user approval. - -### Phase 3: Implementation - -After approval: -- Break the proposal into small tasks. -- Assign file and repository ownership. -- Execute independent tasks in parallel according to the checkout rules above. -- Run tests after each task. -- Keep implementation changes no broader than the accepted decisions. -- Remove obsolete paths instead of leaving unused abstractions behind when - backward compatibility is not an approved requirement. - -### Phase 4: Integration - -- Run cross-package tests. -- Run Ruff and Pyright for every affected package using that package's - configured commands. -- Request independent code review. -- Resolve findings. -- Verify documentation. -- Report completion and remaining issues. - -### Verification Responsibilities +## Verification Responsibilities - Local checks provide fast, focused feedback before work is pushed. Run the narrowest relevant tests, Ruff, Pyright, documentation checks, and native @@ -158,18 +90,17 @@ After approval: - Candidate-artifact CI verifies the exact wheels and distributions intended for admission or release. A source build or editable install does not count as evidence that independently built or published artifacts work together. -- Initiative handoffs record the evidence for every applicable layer. Mark a - layer as passed, failed, not run, or unavailable; never infer a pass from a - different layer. +- Record the evidence for every applicable verification layer in the pull + request. Report each result as passed, failed, not run, or unavailable. - Completion requires all applicable local, package, framework-integration, and candidate-artifact checks. If a layer does not apply, state why. If a - required layer cannot run, leave the initiative explicitly unverified. + required layer cannot run, leave that layer explicitly unverified. ## Rules - Do not modify package source code before approval. - Never assume an API exists without inspecting code. -- Keep changes focused and reversible. +- Keep changes focused, reversible, and within the accepted decisions. - Preserve existing behavior unless approved. - Do not claim tests passed without running them. - Do not claim implementation completion unless relevant tests, Ruff, and @@ -191,7 +122,7 @@ After approval: ## Architecture Decision Records -For every initiative: +For significant architectural changes affecting COMPAS Framework: 1. Identify significant architectural decisions during the proposal phase. 2. Create one ADR per independent decision. @@ -202,21 +133,3 @@ For every initiative: 7. Identify dependencies between ADRs. 8. Do not implement tasks blocked by unresolved ADRs. 9. Revisit accepted ADRs only when new evidence warrants reconsideration. - -## Session Handoffs - -- Treat `initiatives//handoff.md` as the entry point for an active - initiative. Read it first, then read only the authoritative files it links - for the next task. -- Keep the handoff short. It is an index and checkpoint, not a copy of the - objective, inventory, proposal, ADRs, or implementation plan. -- Update the handoff at a meaningful checkpoint and before ending or moving an - initiative to a new conversation. Record exact branches, commit SHAs, pull - requests, workflow runs, verification results, and remaining approval gates. -- List at most three ordered next tasks. Move longer task lists and design - details to the implementation plan. -- Start a new conversation for each initiative, or for a new architecture, - implementation, integration, or audit phase of a large initiative. Resume - with: `Continue from initiatives//handoff.md`. -- A handoff never overrides an accepted ADR or the implementation plan. Resolve - inconsistencies in the authoritative source, then refresh the handoff. diff --git a/CHANGELOG.md b/CHANGELOG.md index be0552c..861c1c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed +* Moved the Codex agent roles, standalone initiative plans, and handoffs to the + COMPAS Hub. The framework repository retains the technical decision records. * Removed the `rhino`, `blender`, and `hosts` extras from the COMPAS 3 metapackage until their owning packages declare compatible dependencies and pass host-runtime verification. Existing COMPAS 2 releases are unchanged. diff --git a/docs/contributing.md b/docs/contributing.md index 94789d8..0d00b67 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -25,11 +25,10 @@ The Invoke tasks are thin aliases for Ruff, Pyright, pytest, MkDocs, and `uv build`. The direct commands used by CI remain visible in the workflow files. -Use each repository's canonical checkout and make progress visible through the -initiative handoff and draft pull request. Keep one writer per repository at a -time. Read-only work and writes in different repositories can run in parallel. -Create an additional worktree only when explicitly requested and record its -visible path, branch, and owner in the handoff. +Use each repository's canonical checkout and record progress and verification +in the pull request. The COMPAS Hub tracks plans and handoffs for work that +spans repositories. Create an additional worktree only when explicitly +requested and record its visible path, branch, and owner in the pull request. Changes to coordinated candidate infrastructure use the isolated locked group: diff --git a/initiatives/_template/handoff.md b/initiatives/_template/handoff.md deleted file mode 100644 index 02850a3..0000000 --- a/initiatives/_template/handoff.md +++ /dev/null @@ -1,80 +0,0 @@ -# Initiative Handoff - -Last updated: YYYY-MM-DD - -## Resume here - -Current phase: `` - -Status: One or two sentences describing the verified checkpoint and why work -is stopping here. - -Read next: - -1. `objective.md` -2. `implementation-plan.md` -3. Add only the ADR, inventory section, proposal section, or package document - required for the next task. - -Do not reread the entire initiative unless the next task requires it. - -## Decisions and approvals - -- Accepted: link only the ADRs governing the next tasks. -- Proposed or unresolved: link each blocking decision and state the approval - required. -- Scope boundary: state what is explicitly not authorized. - -## Working state - -| Repository | Branch | Exact head | Pull request | Status | -|---|---|---|---|---| -| `owner/repository` | `initiative/branch` | `<40-character SHA>` | `` | `` | - -Preserve any unrelated dirty paths explicitly. Never infer a branch head from -an earlier conversation. - -## Completed at this checkpoint - -- Record only work completed since the previous handoff or the evidence needed - to understand the current boundary. -- Link hosted workflow evidence instead of copying logs. - -## Next tasks - -1. First concrete, verifiable task. -2. Second task, including its dependency on the first if applicable. -3. Third task or final review. - -## Blockers and approval gates - -- `None`, or one bullet per concrete blocker. -- State actions that still require explicit approval, especially merges, - publication, new initiative scope, or unresolved ADRs. - -## Verification - -Last verified: - -- `` — `` -- `` — `` - -Evidence by layer: - -| Layer | Status | Evidence | -|---|---|---| -| Local focused checks | `` | `` | -| Package CI | `` | `` | -| Framework integration CI | `` | `` | -| Candidate-artifact CI | `` | `` | - -Do not substitute evidence from one layer for another. Explain every -`unavailable` or `not applicable` status, and leave required unavailable -layers explicitly unverified. - -Run next: - -```text - - -``` diff --git a/initiatives/geometry-tessellation/implementation-plan.md b/initiatives/geometry-tessellation/implementation-plan.md deleted file mode 100644 index 4231612..0000000 --- a/initiatives/geometry-tessellation/implementation-plan.md +++ /dev/null @@ -1,862 +0,0 @@ -# Geometry Tessellation Implementation Plan - -Status: complete at recorded implementation scope — Ready for handoff - -Authority: the Accepted ADRs in `decisions/`. The earlier proposal is not an -implementation authority where it differs from those ADRs. - -Release baseline: the user explicitly approved COMPAS 3.0 as the minimum for -the synchronized package set participating in this initiative. Package -dependency metadata and the supported-version matrix must express -`COMPAS >= 3.0` rather than carrying a pre-3.0 compatibility path. - -Gates A–I are resolved and explicitly approved. Package implementation may -proceed through the ownership, dependency, testing, and review controls in this -plan. This plan does not authorize merge or publication. - -## Readiness verdict - -The Accepted ADRs establish the following intended baseline: - -- `Tessellation` is the sole ephemeral, indexed-triangle result and public - high-level plugin input. -- `PolygonalSurface` remains persistent lightweight polygon geometry, and - `Mesh` remains the persistent editable half-edge datastructure. -- Polygonization and tessellation apply to continuous surface-like geometry; - triangulation applies to discrete faces/domains and point sets. -- Strategies are declarative and serializable. Requested controls must not be - presented as achieved or guaranteed approximation error. -- Trim-aware tessellation belongs to `BrepFace`/`Brep`, not standalone - `NurbsSurface`. -- Plugins share core semantic contracts while retaining backend-local native - dtype/layout conversion. -- Superseded APIs are removed in a coordinated breaking release rather than - retained through compatibility aliases. - -The dependency graph is acyclic. Gates A–I are closed by the explicitly -approved contracts recorded in the Accepted ADRs. The strategy applicability, -terminology and framed-planarity inconsistencies found by independent review -are resolved. Speculative capability discovery was removed by ADR 016. -Implementation is **ready** and must not -reintroduce ignored strategy dimensions, ambiguous operation terms, silent 3D -projection, or runtime capability-discovery APIs. - -## Architecture gates - -All gates are closed and retained below as the implementation baseline. - -### Gate A — Tessellation strategy schemas (closed; amended by ADR 016) - -Affected decisions: ADR 003, with ADR 016 superseding ADR 004's unused -capability and error schemas. - -Resolution: explicitly approved and recorded in Accepted ADRs 003 and 016. - -- `UVGrid(Data)` has positive integer `u` and `v`; it contains no domain - restriction fields. -- `Deflection(Data)` has positive finite `linear` in model units and positive - finite `angular` in public degrees, with `angular <= 180`. -- `Adaptive(Data)` has optional positive finite `max_deviation`, `max_angle`, - and `max_edge_length`, requires at least one value, uses public degrees for - `max_angle`, and exposes no recursion/depth control. -- Producers reject unsupported strategy parameters instead of ignoring them. -- Runtime capability discovery and reserved error records are not part of the - API. Producers validate strategies directly and document their support. -- Requested targets are not presented as achieved or guaranteed error. -- No enriched `TessellationReport` API is authorized; closed Gate D explicitly - defers all enriched result APIs. - -The strategy schemas are implementation inputs for the coordinated public API. - -### Gate B — Polygon and planar triangulation contracts (closed) - -Affected decisions: ADR 007, ADR 011, and ADRs 017–020; depends on closed Gate -A where quality and error concepts overlap. - -Resolution: explicitly approved and recorded in Accepted ADRs 007, 011, and -017–020. ADR 017 supersedes ADR 007's single-strategy collection-level policy. - -- Face strategies inherit serializable `Data` through - `TriangulationStrategy`. -- `DiagonalSplit(diagonal)` accepts `"shortest"`, `"02"`, or `"13"` and - applies only to triangles/quads. Triangles pass through; shortest-diagonal - ties deterministically choose `"02"`. -- `EarClipping` applies to planar polygonal faces, uses standard COMPAS - tolerance, preserves input vertices, and inserts no Steiner points. -- `ProjectedEarClipping(max_deviation)` is an explicit opt-in policy for a - near-planar polygon. It uses a documented best-fit plane, rejects excessive - deviation and invalid projections, and returns indices into the original 3D - vertices. Projection is never an implicit fallback. -- `MinimumAreaTriangulation` applies dynamic programming directly to an - ordered 3D boundary without projection or vertex insertion. It minimizes - total triangle area in cubic time and quadratic memory. The result is a - combinatorial disk but is not guaranteed to be geometrically - intersection-free. -- Collection-level operations require serializable - `FaceTriangulation(quad=..., ngon=...)`. Triangles pass through, quads use - the explicit quad policy, and faces with five or more vertices use the - explicit n-gon policy. Projection and twisted-polygon policies are opt-in; - there is no algorithm fallback. -- `DiagonalSplit` may explicitly define a piecewise-planar interpretation of a - warped quad. `EarClipping` rejects non-planar quads and n-gons; no implicit - projection or algorithm fallback occurs. -- Mutating `triangulate(strategy)` returns `None`, transfers source face - attributes, does not guarantee face keys, and preserves vertex keys for the - initial non-inserting strategies. -- Non-mutating `triangulated(strategy)` returns `Tessellation`. -- Planar-domain strategies are a separate serializable family: `Delaunay`, - `ConstrainedDelaunay`, and `ConformingDelaunay(quality=None)`. -- `TriangulationQuality(Data)` has optional positive finite `min_angle` in - public degrees below 60, `max_area` in model-units squared, and - `max_edge_length` in model units, with at least one field required. -- Quality fields are triangulation targets, not `Adaptive` tessellation - controls or approximation-error guarantees; unsupported fields raise. -- `triangulate_planar_points(points, *, strategy: Delaunay, frame=None)` and - `triangulate_planar_domain(boundary, *, holes=(), constraints=(), points=(), strategy, frame=None)` - are the canonical functions and return `Tessellation`. Their names expose - the required planar contract; the standard Delaunay strategy names remain - unchanged. -- `frame=None` means world XY. An explicit `Frame` projects into local XY and - lifts result vertices back; implementations never silently discard Z. -- `Delaunay` preserves supplied points; constrained triangulation may insert - vertices where constraints intersect; conforming triangulation may insert - Steiner vertices to pursue quality targets. -- Self-intersecting planar arrangements, fill rules, and generated - intersection vertices remain a separate domain-level operation. It is not - exposed until an exact-intersection backend satisfies ADR 018. Arbitrary - spatial loops remain outside polygon triangulation. - -### Gate C — Topology-preserving polygonization API (closed) - -Affected decisions: ADR 005 and ADR 006. - -Resolution: explicitly approved and recorded in Accepted ADRs 005–006. - -- Continuous surface-like geometry exposes fresh, non-mutating - `polygonize(strategy) -> PolygonalSurface` for topology-preserving output. -- The result is independent, persistent, and serializable. It never returns - `Mesh`; half-edge topology requires explicit `.to_mesh()` on the result. -- There is no cached property, scalar-control alternative, or topology flag. -- The operation applies to analytical `Shape`, parametric `Surface`, untrimmed - `NurbsSurface`, and `BrepFace`/`Brep` where the backend supports polygonal - output. Curves are excluded because their connected discrete result is a - `Polyline`. -- `polygonize` and `tessellate` use the same tessellation strategies, but - topology is a producer/strategy capability rather than a strategy flag. -- `UVGrid` on regular parametric surfaces guarantees quads; analytical shapes - may produce mixed triangles/quads; `Deflection` and `Adaptive` provide no - quad guarantee. Unsupported combinations raise. -- Direct `tessellate(strategy=None) -> Tessellation` remains the canonical - triangle operation and need not call - `polygonize(...).triangulated(...)`. For Shape and Surface only, `None` - resolves to the deterministic defaults in ADR 021. BRep/BRepFace remain - explicit. -- Direct and two-step paths for the same tessellation strategy must be - geometrically consistent, but their connectivity may differ. Backends - document seam and boundary behavior for both. -- Callers who require a specific face-triangulation policy use - `polygonize(strategy).triangulated(FaceTriangulation(...))`. - -### Gate D — Enriched result access (closed) - -Affected decision: ADR 010; depends on Gates A and C where error and source -topology metadata are involved. - -Resolution: explicitly approved and recorded in Accepted ADR 010. - -- The initial stable operations remain - `tessellate(strategy=None) -> Tessellation` for Shape and Surface, - `tessellate(strategy) -> Tessellation` for BRep/BRepFace, and - `polygonize(strategy) -> PolygonalSurface`. -- Initial APIs have no detail/report flags, union returns, universal report or - result wrapper, or parallel detailed method. -- `Tessellation` retains representation fields only: vertices, triangles, - optional aligned normals, optional aligned UVs, and optional relevant - boundary polylines. These are not provenance. -- Source-face/trim mappings, execution reports, measured errors, refinement - histories, and backend diagnostics are deferred. -- There is no support-discovery or reserved approximation-error schema. A - future API requires a concrete consumer, backend source, and separate ADR. -- A future enriched API requires a separate ADR, concrete consumer/backend - source, distinct method name, stable operation-specific result type, and no - serializable source-object references. -- Any envelope containing ephemeral `Tessellation` is itself ephemeral. - -### Gate E — Plugin-boundary editorial alignment (closed) - -Affected decisions: ADR 008 and ADR 012. - -Resolution: ADR 012 is aligned with ADR 008. Core owns `Tessellation` -validation and buffer extraction, not a heterogeneous representation adapter. -Backend-local helpers own dtype, layout, range checks, native-safety checks, -and conversion to native inputs. - -### Gate F — Strategy applicability to fixed and partially parameterized shapes (closed) - -Affected decisions: ADR 003, ADR 005, and ADR 006. - -Resolution: explicitly approved and recorded in Accepted ADRs 003 and 005. - -- All tessellation strategies inherit `TessellationStrategy(Data)`. -- `Native()` requests fixed natural topology and is supported by `Box`. -- `UGrid(u)` has one positive integer dimension and is supported by `Cylinder` - and `Cone`. -- `UVGrid(u, v)` has two positive integer dimensions and is supported by - `Sphere`, `Capsule`, `Torus`, and general parametric surfaces. -- `Deflection` and `Adaptive` inherit the same common strategy base. -- Invalid geometry/strategy combinations raise. Producers never ignore extra - dimensions to make a strategy appear supported. - -### Gate G — Discretization, polygonization, and tessellation terminology (closed) - -Affected decisions: ADR 001, ADR 005, and ADR 006. - -Resolution: explicitly approved and recorded in Accepted ADRs 001, 005, and -006. - -- Discretization is the broad category for finite samples or connected - elements representing continuous geometry. -- Polygonization is the surface operation producing persistent connected - polygonal faces through `polygonize(strategy) -> PolygonalSurface`. -- Tessellation is the canonical surface operation producing the ephemeral - triangular result through `tessellate(strategy) -> Tessellation`. -- Triangulation partitions existing discrete faces, domains, or point sets. -- `polygonize` and `tessellate` are operations; `.to_mesh()` is the explicit - representation conversion to half-edge `Mesh`. - -### Gate H — Planarity and off-plane semantics for framed triangulation (closed) - -Affected decision: ADR 011. - -Resolution: explicitly approved and recorded in Accepted ADR 011. - -- With `frame=None`, every input coordinate must lie in world XY within the - standard COMPAS tolerance. -- With an explicit `Frame`, every input coordinate must lie on its plane within - the standard COMPAS tolerance. -- Inputs beyond the applicable tolerance are rejected. -- Projection into local XY is internal only; implementations never silently - discard Z. -- Existing input vertex coordinates are preserved exactly in the result. -- Generated intersection or Steiner vertices are lifted onto world XY or the - explicit frame plane. - -### Gate I — Strategy base type and direct validation (closed; amended by ADR 016) - -Affected decisions: ADR 003, ADR 005, ADR 006, and ADR 016. - -Resolution: explicitly approved and recorded in Accepted ADRs 003, 005, 006, -and 016. - -- `TessellationStrategy(Data)` is the common base for `Native`, `UGrid`, - `UVGrid`, `Deflection`, and `Adaptive`. -- Producers validate the supplied strategy directly and raise a precise - `TypeError` or `ValueError` when unsupported. -- Supported strategies are documented by geometry type/backend. There is no - runtime discovery method or parallel support predicate. - -## Work permitted now - -All implementation work packages below may proceed when their dependencies are -met and ownership is assigned. Work must remain within the accepted API: - -1. Treat the completed core foundations and continuous/discrete APIs in - WP1–WP3 as the implementation baseline. -2. Prepare repository-specific commits and release follow-ups only with the - appropriate authorization. -3. Preserve the recorded tests and documentation artifacts during handoff. -4. Do not introduce ignored strategy dimensions, capability discovery or - predicates, permissive off-plane projection, enriched result APIs, - compatibility aliases, implicit triangulation fallbacks, or unapproved - adaptive algorithms. -5. Preserve repository ownership boundaries and coordinate shared core export - changes through the WP1 owner. - -## Implementation progress and recorded evidence - -WP0 is complete. WP1, WP2, WP3, and the WP3b follow-up are implemented and -their independent reviews concluded **Ready**. WP4–WP6 are independently -reviewed Ready, and WP7 completed with an assessment-only outcome. This plan -records the following evidence reported -by the implementing and reviewing agents; it does not claim that this planning -task reran those commands: - -- WP1: 33 focused tests passed; Ruff, Pyright, and diff checks passed. -- WP2: 69 focused tests and 228 broader tests passed; the independent review - ran 118 combined tests and reported Ready; Ruff, Pyright, and diff checks - passed. -- WP3: 223 focused/subdivision tests passed; the independent review ran 37 - tests plus 5 doctests and reported Ready; Ruff, Pyright, and diff checks - passed. -- WP3b: complete; independent review reported Ready. -- WP3c (ADRs 018–020): complete. Strict and projected polygon policies, - minimum-area twisted-polygon triangulation, and explicit planar Delaunay - naming are implemented and independently reviewed Ready. Planar-arrangement - dispatch remains intentionally unavailable pending a conforming exact- - intersection backend, licensing resolution, and verification. -- WP4 OCC: 8 focused tests passed; independent review reported Ready; package - metadata requires `compas>=3`. -- WP5 CGAL: 135 full-package and 35 focused tests passed; independent review - reported Ready; package metadata requires `compas>=3,<4`. -- WP6 libigl: Python-boundary implementation is Ready; 18 stub tests passed - and independent review reported Ready; package metadata requires - `compas>=3`. Native-runtime verification is deferred to WP9/integration CI - because the required extensions and `mapbox-earcut` were unavailable. -- WP7 Gmsh: assessment complete with no runtime change. Any future strategy - adaptation requires a separate ADR and concrete consumer. - -WP9 core/OCC/CGAL/libigl integration is implemented and independently reviewed -Ready: the implementation reported 18 passed and 1 skip; the reviewer reported -17 passed and 1 precise libigl-native skip, with Ruff and diff checks passing. -The performance baseline remains explicitly deferred until a normalized runner -and comparable baselines are available. - -WP8 `compas_model` migration is implemented and independently reviewed Ready: -46 tests, Ruff, strict MkDocs, and diff checks were reported passing. - -WP10 documentation/release artifacts are independently reviewed Ready. The -reported evidence includes strict documentation builds for core, framework, -and CGAL; an OCC non-strict build with pre-existing warnings; and terminology -corrections. A native libigl documentation build was unavailable. These are -reported results and were not rerun by this planning task. - -All WP0–WP10 work packages are complete at their recorded scope. Independent -final review reported **Ready for handoff**, with no implementation blockers. -Final cross-package evidence included 90 OCC tests passing against the sibling -COMPAS checkout and 17 framework integration tests passing with 1 precise -libigl-native skip. These are reported results and were not rerun by this -planning task. The normalized performance infrastructure and native libigl -runtime/documentation verification remain explicit deferrals; WP7 remains a -completed no-runtime-change assessment. - -## Implementation work packages - -The following packages are executable in dependency order. Package owners must -not edit outside their assigned repository and file area. Exact new -filenames/modules remain implementation details and must follow each -repository's established organization. - -### WP0 — Architecture closure (complete) - -Owner: architect/coordinator. - -Completed scope: - -- Gates A–I are closed by the Accepted ADRs; -- the decision index and implementation plan reflect every accepted contract; -- the decision graph is coherent and acyclic; -- no blocking public contract remains for implementers to invent. - -Exit: met. Implementation may start with WP1. - -### WP1 — Core strategy and result foundations (implemented; review Ready) - -Owner: one `compas` implementer for shared public types, serialization, typing, -and exports. Avoid concurrent edits to public export and data-registration -areas. - -Depends on: completed WP0. The accepted Gates A–I contracts form the -implementation baseline. - -Scope derived from ADRs 002–003, 010, and 016: - -- retain `Tessellation` as ephemeral and non-serializable; -- preserve zero-copy buffer retention and same-index normal/UV semantics; -- implement `TessellationStrategy` and the approved serializable `Native`, - `UGrid`, `UVGrid`, `Deflection`, and `Adaptive` strategies with exact - validation; -- omit runtime capability discovery and reserved error records per ADR 016; -- do not add enriched result/report types; Gate D explicitly defers them; -- add core buffer extraction and validation required by ADR 008, without a - public union adapter. - -Tests delivered with the slice: - -- strategy data roundtrip, equality, validation, common-base typing, and - unsupported-strategy errors; -- `Tessellation` identity, arity, bounds, finiteness, and attribute alignment; -- explicit ephemeral/non-serialization behavior; -- absence of speculative capability/error-schema exports; -- absence of detail/report flags, union returns, and universal result wrappers. - -Documentation: - -- representation roles; -- strategy schemas, direct validation, and documented producer support; -- buffer ownership and seam duplication. - -### WP2 — Core continuous geometry APIs (implemented; review Ready) - -Owner: one `compas` implementer for surface, NURBS surface, shape, and curve -areas; coordinate shared exports with WP1's owner. - -Depends on: WP1. Gates A and C are closed. - -Scope derived from ADRs 001, 003–006, 009, and 021: - -- implement `tessellate(strategy=None) -> Tessellation` on Shape and Surface; - resolve `None` to `Native()` for Box, `UGrid(64)` for Cylinder/Cone, - `UVGrid(64, 64)` for Sphere/Torus/Capsule, and `UVGrid(64, 64)` for every - Surface; -- implement fresh, non-mutating - `polygonize(strategy) -> PolygonalSurface` on the approved geometry scope; -- require an explicit strategy for `polygonize`; keep BRep/BRepFace - tessellation explicit; remove stored `resolution_u`, `resolution_v`, and - other resolution-backed derived state in accordance with ADR 014; -- ensure polygonal results are independent and serializable, exclude curves, - and require explicit `.to_mesh()` for half-edge topology; -- enforce `Box`/`Native`, `Cylinder` and `Cone`/`UGrid`, and `Sphere`, - `Capsule`, `Torus`, and general parametric surface/`UVGrid` support; reject - invalid combinations without ignoring dimensions; -- validate supplied strategies directly with precise errors and expose no - runtime capability-discovery method or parallel predicate; -- preserve standalone `NurbsSurface` as untrimmed rectangular-domain geometry; -- remove public cached/computed/conversion tessellation variants listed by - ADR 013; -- do not add private discretization caches in the initial implementation. - -Tests: - -- exact resolution/count behavior and source non-mutation; -- periodic seam and same-index attribute behavior; -- singular-pole and reversed-domain behavior as documented; -- unsupported-strategy errors; -- precise strategy-type validation and absence of capability-discovery or - convenience-predicate APIs; -- fixed-, one-, and two-parameter strategy applicability with explicit Box, - Cylinder, Cone, Sphere, Capsule, Torus, and general-surface coverage and no - ignored dimensions; -- absence of stored resolution properties and derived discretization caches; -- repeated explicit operations produce independent results without mutating - the source geometry; -- omitted and explicit `None` tessellation are equivalent to the fixed ADR 021 - defaults, remain fresh, and do not mutate the source; explicit overrides - remain effective; -- stable triangle versus polygonal result types; -- polygonal result independence, serialization, curve exclusion, explicit - `.to_mesh()`, and natural quad/mixed-topology guarantees; -- direct versus two-step geometric consistency without requiring identical - connectivity; -- removal of public cache-identity expectations. - -Documentation/examples: - -- uniform surface/shape tessellation with deterministic optional defaults and - explicit strategy overrides; -- the intentional asymmetry between optional ephemeral Shape/Surface - tessellation and explicit persistent polygonization/BRep deflection; -- removal of resolution-backed representation properties and derived caches; -- separate polygonized/quad output, explicit `.to_mesh()`, and subsequent - strategy-controlled triangulation; -- explicit warning that standalone NURBS tessellation ignores BRep trims. - -### WP3 — Core discrete triangulation and planar contracts (implemented; review Ready) - -Owner: one `compas` implementer for `Mesh`, `PolygonalSurface`, polygon/region -triangulation, and planar pluggable declarations. Coordinate shared exports -with WP1's owner. - -Depends on: WP1. Gates B and C are closed. - -Scope derived from ADRs 005, 007, 008, 011, and 017–020: - -- implement the approved mutating `triangulate(strategy)` contract on mutable - topological types; -- implement `triangulated(strategy) -> Tessellation` on supported discrete - polygonal types; -- implement `FaceTriangulation` as the required collection-level composite, - with deterministic triangle/quad/n-gon dispatch and leaf strategies retained - for low-level single-face use; -- implement strict `EarClipping`, explicit `ProjectedEarClipping`, and - `MinimumAreaTriangulation` with the distinct validity, projection, - complexity, and self-intersection contracts recorded in ADRs 018–019; -- implement `PolygonalSurface.to_mesh() -> Mesh` as the canonical explicit - half-edge conversion and remove its cached `.mesh`/`compute_mesh()` forms; -- implement exact strategy applicability, planarity validation, internal - projection, vertex-insertion, and source-index rules approved by Gates B and - H; -- replace conversion flags and special-case triangulation methods listed in - ADR 013; -- define the explicit `triangulate_planar_points` and - `triangulate_planar_domain` keyword-only signatures and return `Tessellation` - for plain, constrained, conforming, and refined operations; -- validate basic `Tessellation` structure before dispatch. - -Tests: - -- mutating versus non-mutating behavior and exact mutating return contract; -- source face-attribute transfer where required; -- mixed triangles/quads/concave n-gons, explicit quad diagonals, warped quads, - nonplanar n-gons, and atomic failure, plus planar-domain holes, constraints, - and points; -- projection deviation and invalid-projection rejection; deterministic - minimum-area selection, twisted 3D boundaries, degeneracy rejection, and - serialization of the new leaf strategies; -- input preservation versus Steiner insertion; -- winding, area/coverage, standard-tolerance acceptance/rejection in world XY - and explicit frames, exact preservation of input coordinates, lifting of - generated vertices, and unsupported quality fields; -- identical core/pluggable call binding; -- `PolygonalSurface.to_mesh()` result independence and topology preservation, - plus absence of cached `.mesh` and `compute_mesh()` alternatives. - -Documentation: - -- local face triangulation versus planar domain triangulation; -- strategy applicability, projection, possible geometric self-intersection, - complexity, and vertex insertion; -- canonical keyword-only planar API; -- explicit `PolygonalSurface.to_mesh()` representation conversion versus - triangulation operations. - -### WP4 — OCC trimmed tessellation (implemented; review Ready) - -Owner: `compas_occ` implementer for BRep/BRepFace tessellation, plugin adapter, -tests, and OCC examples only. - -Depends on: WP1 and WP2. Gates A and D are closed. - -Scope derived from ADRs 003, 006, 009–010, 013, and 016: - -- implement `tessellate(strategy) -> Tessellation` for BRep/BRepFace using - actual trim topology and orientation; -- implement `polygonize(strategy) -> PolygonalSurface` for BRep/BRepFace only - where the backend can provide a supported polygonal result, otherwise raise; -- validate BRep/BRepFace strategies through the active backend without a - runtime capability-discovery facade; -- treat supported deflection values as requested targets, without a - per-execution achieved-error claim or reserved error schema; -- preserve winding, holes, boundary polylines, and face-local seam needs; -- do not expose face/trim provenance, execution reports, measured errors, - histories, or diagnostics in the initial public tessellation API; -- remove `to_tessellation`, `to_tesselation`, `to_viewmesh`, public cached - tessellation, and unrelated scalar call forms; -- keep standalone NURBS surface behavior explicitly untrimmed. -- update `compas_occ` dependency metadata to require COMPAS 3.0 or newer as - part of the synchronized package baseline. - -Tests: - -- holes, curved trims, reversed faces, boundaries, and face-local seam - duplication; document that OCC output preserves geometric boundaries but is - not guaranteed to have welded, topologically watertight indices; -- explicit strategy validation and no truth-value defaulting of zero; -- precise `Brep`/`BrepFace` strategy validation and absence of runtime - capability-discovery methods; -- backend-appropriate refinement assertions without claiming a per-execution - error report; -- representation fields remain limited to approved `Tessellation` data and are - not documented as provenance; -- polygonal result independence, serialization, explicit `.to_mesh()`, and - documented topology/seam/boundary behavior where polygonization is - supported. - -Documentation/example: - -- trimmed face/BRep tessellation with explicit deflection strategy; -- loss of trim context when extracting an underlying NURBS surface. - -### WP5 — CGAL planar and triangle-operation integration (implemented; review Ready) - -Owner: `compas_cgal` implementer for entry points, high-level plugin functions, -native coercion helpers, annotations, tests, and CGAL docs only. - -Depends on: WP1 and WP3. Gates A, B, and E are closed. - -Scope derived from ADRs 008, 011–013: - -- add current plugin entry-point metadata and register intended decorated - modules; -- implement the exact core keyword-only planar signature and `Tessellation` - result; -- accept only `Tessellation` at high-level triangle-operation boundaries; -- centralize package-local NumPy dtype/layout/range/native-safety coercion; -- align annotations with actual binding integer widths; -- reject unsupported quality fields rather than mapping them to other values; -- remove divergent high-level direct APIs, tuple inputs, and tuple/face-only - result contracts; retain clearly internal native bindings as needed. -- update `compas_cgal` dependency metadata to require COMPAS 3.0 or newer as - part of the synchronized package baseline. - -Tests: - -- installed entry-point discovery and dispatch through core; -- exact signature binding for boundary, holes, constraints, points, quality; -- dtype/layout/range and invalid-buffer failures before native calls; -- supported/unsupported quality controls; -- result winding, holes, and vertex insertion; -- optional-backend absence behavior. - -Documentation: - -- core-dispatched public use; -- backend constraints and supported operations without presenting a divergent - high-level API. - -### WP6 — libigl triangle-operation integration (Python boundary; review Ready) - -Owner: `compas_libigl` implementer for high-level plugin functions, native -coercion, result annotations, tests, and docs only. - -Depends on: WP1; Gate E is closed, and operation-specific work may depend on -WP3. - -Scope derived from ADRs 008, 012, and 013: - -- accept `Tessellation` at high-level triangle-operation boundaries; -- retain backend-local dtype/layout/native-safety coercion; -- align result types and annotations with accepted core contracts; -- do not expose operation-specific provenance/error envelopes in the initial - high-level API; -- remove public raw tuple high-level inputs and divergent semantic contracts. -- update `compas_libigl` dependency metadata to require COMPAS 3.0 or newer as - part of the synchronized package baseline. - -Tests/documentation mirror WP5 for libigl-supported operations and the absence -of unapproved enriched high-level results. - -### WP7 — Gmsh strategy alignment assessment (complete; no runtime change) - -Owner: `compas_gmsh` implementer/investigator; initially read-only. - -Depends on: WP1; Gate A is closed. - -Scope derived from ADRs 003, 013, and 016: - -- map Gmsh controls only where their semantics exactly match an approved - strategy; -- explicitly document unmatched size/curvature controls rather than forcing a - false equivalence; -- implement adaptation only after a concrete consumer and separate decision - establish its semantics. - -Exit may legitimately be documentation of non-alignment with no runtime -change. - -Recorded outcome: no runtime change. A future -`Adaptive.max_edge_length` mapping requires a separate ADR before -implementation. - -### WP8 — compas_model consumer migration (implemented; review Ready) - -Owner: `compas_model` implementer. The previously dirty worktree is now clean -and the task branch has been created. - -Depends on: WP2–WP6 as applicable. - -Scope derived from ADRs 001–002, 005–010, and 013: - -- migrate rendering, collision, contact, and sectioning call sites to the - accepted operations/results; -- preserve their intentionally different policies; -- keep source/topological boundaries distinct from generated fill diagonals; -- decide no new Earcut consolidation beyond what Gate B and ADR 011 authorize. - -Tests: - -- rendering fill versus visible boundary; -- collision/contact/sectioning policy preservation; -- BRep boundary representation consumption without source-provenance claims. - -### WP9 — Framework integration and performance (implemented; review Ready) - -Owner: `compas_framework` implementer for tests/fixtures and integration docs -only. - -Depends on: WP1–WP7 for core/OCC/CGAL/libigl/Gmsh scenarios. Only -model-specific integration scenarios depend on optional WP8. - -Scope derived from all Accepted ADRs: - -- exercise real plugin discovery and canonical dispatch; -- verify core surface/shape -> `Tessellation` -> CGAL/libigl workflows; -- verify OCC trimmed BRep -> `Tessellation` -> native consumer; -- test strategy serialization across package boundaries; -- compare backend-appropriate refinement behavior without requiring identical - connectivity; -- verify ephemeral `Tessellation` versus persistent geometry serialization; -- defer focused conversion/validation/native-coercion performance baselines - until a normalized runner and comparable baselines are available; -- verify optional-backend skip/absence behavior. -- run model-specific integration scenarios only when WP8 is complete and its - user-owned worktree has been reconciled. - -Tests use the existing framework markers for integration, roundtrip, -performance, and native backends as appropriate. - -### WP10 — Documentation and breaking release preparation (complete; review Ready) - -Owner: documenter for narrative docs/examples; coordinator for version matrix -and release checklist. - -Depends on: stable implemented APIs from WP1–WP7. Model-specific documentation -depends on optional WP8, but core release documentation does not. - -Scope derived from ADRs 001, 006–013: - -- publish the normative terminology and representation guide; -- document strategies, direct validation, requested-control semantics, seams, trims, - singularities, validation, and native constraints; -- replace examples with the one accepted call form per operation; -- produce a concise breaking-change guide mapping removed forms to new forms; -- document the synchronized supported package-version set, with COMPAS 3.0 as - the explicit minimum baseline for participating integration packages; -- do not publish compatibility aliases or a deprecation timeline. - -## Dependency and parallelization graph - -```text -WP0 architecture closure (complete) - | - v -WP1 core foundations (complete) - | | | - v v v -WP2 core WP3 core WP7 Gmsh assessment (complete) -continuous triangulation -(complete) (complete) - | | \ - v | +--------> WP5 CGAL (complete) -WP4 OCC +-----------> WP6 libigl -(complete) (Python boundary Ready) - \ | / - +---------+--------------+ - | - v - WP9 core integration (complete/Ready) - | - v - WP10 docs/release (complete/Ready) - | - v - independent review - -WP2-WP6 -----> WP8 model migration (complete/Ready) - | - v - WP9 model scenarios -``` - -WP0–WP10 are complete at their recorded validation levels; WP7's assessment -completed with no runtime change. WP9 retains precise optional native skips -where the libigl extensions are unavailable, and its performance baseline is -deferred pending a normalized runner and baselines. WP10 likewise records the -unavailable native libigl documentation build rather than claiming it passed. -Independent final review found no implementation blockers and reported Ready -for handoff. - -## Coordinated removals required by ADR 013 - -The breaking release removes, rather than aliases, the superseded public forms -after their accepted replacements are implemented and tested: - -- scalar tessellation call controls superseded by explicit strategy objects; -- public cached `.tessellation`; -- `compute_tessellation`, `to_tessellation`, misspelled `to_tesselation`, and - `to_viewmesh`; -- `to_triangle_mesh` as a redundant universal facade; -- `triangulated=True` conversion flags, `.triangles` as an operation facade, - and `quads_to_triangles` where superseded by accepted triangulation methods; -- `PolygonalSurface.mesh` and `PolygonalSurface.compute_mesh()` in favor of the - sole explicit `PolygonalSurface.to_mesh()` conversion; -- legacy planar keywords and positional arguments after `boundary`; -- face-only and `(vertices, faces)` high-level triangulation results; -- raw tuple inputs to high-level plugin operations; -- divergent direct backend high-level contracts. - -Removal tasks happen in the owning package work package, not as an isolated -search-and-delete pass. Each removal requires updated tests, examples, and -downstream callers in the synchronized version set. - -ADR 014 supersedes the earlier exclusion of `resolution_u`, `resolution_v`, -and resolution-backed derived caches. Continuous geometry retains only its -defining analytic state. Stored resolution properties, cached derived -vertices/edges/faces and related sampled views, `Shape.to_vertices_and_faces`, -and `Mesh.from_shape` are coordinated removals. Public materialization uses -explicit `polygonize(strategy)` and fresh `tessellate(strategy=None)` -operations. Only Shape and Surface resolve `None` to the fixed ADR 021 -defaults; BRep/BRepFace remain explicit. Half-edge conversion is -`shape.polygonize(strategy).to_mesh()`. - -ADR 015 authorizes continuous-bounds implementation. Exact parameter-derived -AABBs should replace sampled shape bounds; analytic surfaces and certified -NURBS enclosures follow the guarantees and phasing in that ADR. Minimum-volume -`obb` remains unsupported where a correct continuous result is unavailable. -No implementation may preserve old sampled bounds through a hidden default -tessellation. - -## Verification plan - -This planning task did not rerun verification. The progress ledger above -records evidence reported for WP1–WP3. Implementers must continue to record -the exact commands and results for the remaining repositories. - -### Per-work-package verification - -1. Run the smallest relevant unit-test module after each focused change. -2. Run the affected repository's full non-GUI test suite before handoff. -3. Run static/type checks configured by that repository for changed public - annotations. -4. Build or render changed documentation/examples using repository tooling. -5. For native packages, run both supported-backend tests and absence/skip - behavior where the environment permits. - -Representative test categories, with exact repository commands confirmed by -each owner before execution: - -- core geometry/tessellation, surface, shape, mesh, polygon/region, plugin, and - serialization tests; -- OCC surface/BRep/plugin/data tests; -- CGAL/libigl triangulation, meshing, geodesic, boolean, slicing, dtype/layout, - and discovery tests as affected; -- model rendering/collision/contact/sectioning tests; -- framework `integration`, `roundtrip`, `native_backend`, and focused - `performance` markers. - -### Final cross-package exit criteria - -Implementation is complete only when: - -- Gates A–I have Accepted resolutions or recorded editorial alignment as - applicable; -- every work package has recorded passing unit and repository-level evidence; -- core/plugin signatures bind through installed entry points; -- all high-level triangle consumers accept `Tessellation` and no public raw - tuple alternative remains in the approved scope; -- trimmed BRep tests cover holes, orientation, and boundaries; -- strategy serialization and error-strength semantics are verified; -- removal searches find no superseded public examples or internal callers in - the synchronized package set; -- cross-package integration and optional-backend behavior pass; -- the synchronized package-version matrix and WP4/WP5/WP6 dependency metadata - consistently require COMPAS 3.0 or newer, with no pre-3.0 compatibility - claim; -- documentation is verified against actual signatures; -- an independent reviewer resolves all implementation findings. - -### Remaining release follow-ups - -Completion at the recorded implementation scope does not authorize or imply a -commit, merge, or publication. Release preparation still requires: - -- native libigl wheel CI to exercise the deferred runtime and documentation - paths; -- a core version bump to the approved 3.x line before publication; -- repository-specific commit preparation and review; -- excluding workspace-only `AGENTS.md` and `.codex` content from commits unless - their inclusion is separately intentional; and -- separate explicit authorization for merge and publication. - -## Plan status transitions - -- **Architecture-gated:** completed; retained as the historical pre-WP0 state. -- **Ready:** completed architecture state; all gates are closed and - architecture review found no blockers. -- **In progress:** completed implementation state preceding integration. -- **Integration / final review:** completed; WP0–WP10 reached their recorded - scope and underwent independent final review. -- **Review complete:** completed; the reviewer reported Ready for handoff with - no implementation blockers. -- **Complete:** current state at the recorded implementation scope. Nothing has - been committed, merged, or published by this status update; the release - follow-ups above remain. diff --git a/initiatives/plugin-implementations/README.md b/initiatives/plugin-implementations/README.md index 14c49c9..8e5b998 100644 --- a/initiatives/plugin-implementations/README.md +++ b/initiatives/plugin-implementations/README.md @@ -11,8 +11,8 @@ coordinated artifact and remaining selection/parity gates incomplete**. - [Inventory](inventory.md) - [Proposal](proposal.md) - [Architecture decisions](decisions/README.md) -- [Implementation plan](implementation-plan.md) -- [Current handoff](handoff.md) + +The COMPAS Hub tracks the active rollout plan and handoff. ADRs 001–006 are **Accepted**. Implementation is authorized only for the six packages in Waves 0–1. Subsequent modernization and typing work completed the diff --git a/initiatives/plugin-implementations/handoff.md b/initiatives/plugin-implementations/handoff.md deleted file mode 100644 index c3d725e..0000000 --- a/initiatives/plugin-implementations/handoff.md +++ /dev/null @@ -1,97 +0,0 @@ -# Plugin Implementations Handoff - -Last updated: 2026-11-07 - -## Resume here - -Current phase: `implementation` - -Status: Reconnaissance and architecture are complete. ADRs 001–006 are -Accepted, Waves 0–1 are authorized, and source migration is substantially -implemented. Selection, package-owned artifact, model/viewer coordination, and -final installed cross-package gates remain open. - -Read next: - -1. [Objective](objective.md) -2. [Implementation plan](implementation-plan.md), starting with Phase 1 -3. [ADR 005 — Verification and evidence](decisions/005-verification-and-evidence.md) -4. [ADR 006 — Rollout scope and package admission](decisions/006-rollout-scope.md) - -Do not reread the full inventory or proposal unless a finding changes the -accepted design or proposed scope. - -## Decisions and approvals - -- Accepted: [ADRs 001–006](decisions/README.md). -- Unresolved: no ADR blocks the authorized Wave 0–1 tasks. -- Scope boundary: only `compas`, `compas_cgal`, `compas_libigl`, `compas_occ`, - `compas_model`, and `compas_viewer` are authorized. Later waves require an - explicit scope amendment and approval. Do not merge or publish without - explicit approval. - -## Working state - -| Repository | Branch | Exact head | Pull request | Status | -|---|---|---|---|---| -| `compas-dev/compas` | `initiative/typing-alignment` | `99b82a6673ff7d05c1c323c8921135c274993f11` | [1539](https://github.com/compas-dev/compas/pull/1539) | Pushed draft | -| `compas-dev/compas_cgal` | `initiative/typing-alignment` | `bb3624e714719d543c61768320d91811ba96cc6c` | [81](https://github.com/compas-dev/compas_cgal/pull/81) | Pushed draft | -| `compas-dev/compas_libigl` | `initiative/typing-alignment` | `710b2b6714839a203fc8a6c62c437c0f6735ba0e` | [47](https://github.com/compas-dev/compas_libigl/pull/47) | Pushed draft | -| `compas-dev/compas_occ` | `initiative/typing-alignment` | `7fdf2ffb57d1de16308020e14ec626d79e65a034` | [32](https://github.com/compas-dev/compas_occ/pull/32) | Pushed draft | -| `BlockResearchGroup/compas_model` | `initiative/repository-modernisation` | `83df4167f7ba1539ae205a837e0238afecc0a36b` | [68](https://github.com/BlockResearchGroup/compas_model/pull/68) | Pushed draft | -| `compas-dev/compas_viewer` | `initiative/repository-modernisation` | `cf5a5195bda840a511319d6b7201978af68c15e3` | [232](https://github.com/compas-dev/compas_viewer/pull/232) | Pushed draft | -| `compas-dev/compas_framework` | `initiative/candidate-artifact-integration` | `663a4438902e479e2b14c3a2319649030a314ce7` | [2](https://github.com/compas-dev/compas_framework/pull/2) | Pushed draft; clean | - -Before editing any package, verify that its recorded head is still current and -inspect that repository for unrelated dirty paths. - -## Completed at this checkpoint - -- CGAL uses lightweight category entry points, binds requirements to compiled - modules, and keeps orphan direct APIs undecorated. -- Model and viewer discovery are requirement-gated and import-light; their - package workflows inspect installed entry points. -- Protected framework run - [42347847450](https://github.com/compas-dev/compas_framework/actions/runs/42347847450) - verifies exact candidate retrieval and secret-free installed execution at - framework head `663a4438902e479e2b14c3a2319649030a314ce7`: four runtime - contracts pass and Pyright reports zero errors and warnings. -- The temporary framework retrieval secrets have been removed. `main` remains - untouched; all listed pull requests remain draft and unmerged. - -## Next tasks - -1. Implement and verify the core requirement-selection matrix, including - module-name and callable requirements, non-selection, defaults, and - `PluginNotInstalledError`. -2. Add libigl compiled-runtime requirements and complete representative public - dispatch, lazy delegation, unavailable-runtime, and built-wheel evidence. -3. Replace OCC synthetic-only artifact evidence, then run the coordinated - model/viewer registration and final installed cross-package review. - -## Blockers and approval gates - -- Model/viewer coordination must follow their package architecture and geometry - conversion contracts; do not invent lifecycle behavior here. -- Optional backends, host integrations, and later ecosystem waves remain out of - scope until separately approved. -- Merging or publishing any initiative branch still requires explicit approval. - -## Verification - -Last verified: - -- Framework focused candidate contracts — 46 passed at `663a443`. -- Strict framework MkDocs, Ruff, formatting, Pyright, actionlint, and diff - checks passed at the recorded checkpoint. -- [Native integration run 42347847450](https://github.com/compas-dev/compas_framework/actions/runs/42347847450) - — retrieve, build, and execute succeeded; four tests passed; Pyright reported - zero errors and warnings. - -Run next: - -```text -/Users/vanmelet/miniforge3/envs/compas3/bin/python -m pytest -/Users/vanmelet/miniforge3/envs/compas3/bin/python -m ruff check -/Users/vanmelet/miniforge3/envs/compas3/bin/python -m pyright -``` diff --git a/initiatives/plugin-implementations/implementation-plan.md b/initiatives/plugin-implementations/implementation-plan.md deleted file mode 100644 index 0b35017..0000000 --- a/initiatives/plugin-implementations/implementation-plan.md +++ /dev/null @@ -1,208 +0,0 @@ -# Plugin Implementations Implementation Plan - -## Status - -Architecture complete and ADRs 001–006 **Accepted**. Post-approval Wave 0–1 -reconnaissance is complete and source migration is substantially implemented -on the coordinated initiative branches. Remaining selection, artifact, and -cross-package gates are listed below. No initiative changes have been merged -into a target/default branch or published. - -## Dependency graph - -```text -typing/geometry contract stability - | - v -ADR 001 -> ADR 002 - | \ - v v - ADR 003 ADR 004 - \ / - v - ADR 005 - | - v - ADR 006 - | - v - Wave 0 -> Wave 1 -``` - -Repository modernization must provide suitable packaging and artifact checks -before a package can satisfy its final rollout gate. - -Initial approval authorizes only Waves 0–1 and the six packages named below. -Later waves require a scope amendment and new approval. - -Work is split into three dependency classes: - -1. **Independent:** requirement-selection tests, runtime requirements, orphan - decorator cleanup, stale legacy guidance, and installed/wheel evidence. -2. **Typing/geometry dependent:** shared structural annotation and native-stub - parity follow Accepted Typing ADRs 016–017. Triangulation and conversion - signatures follow Accepted Typing ADR 015 and Geometry ADR 022. BRep - default-value tests additionally follow Accepted Geometry ADR 023. Real - model/viewer rendering paths follow the specific conversion contracts they - consume. -3. **Model/viewer design dependent:** base versus Viewer-context registration, - manual activation helpers, viewer package initialization, and scene - lifecycle ownership require the corresponding package architecture work. - -## Phase 1 — Reference baseline (Wave 0) - -In-scope packages: `compas`, `compas_cgal`, `compas_libigl`, and `compas_occ`. - -Status: source migration substantially complete. CGAL uses four lightweight -category modules, actual compiled-module requirements, and nine valid core -plugins; its three orphan direct APIs are no longer decorated. Libigl retains -three lightweight category modules and eight core plugins, but still lacks -explicit compiled-runtime requirements. OCC retains four lightweight modules -and 130 plugins with the accepted signature/type corrections. Exact installed -CGAL/libigl/OCC entry-point discovery and strict wheel typing pass in the local -candidate integration evidence; package-owned evidence remains open. CGAL run -`42231235319` attempt 2 passed every platform's Python 3.12/3.14 wheel-smoke -jobs. The exact live manifest and offline staging are independently reviewed. -Protected framework run `42299118381` supplies the Linux x86-64 -CGAL→core→libigl hosted positive; the path remains unavailable locally on -Darwin ARM64. - -1. Add core tests for module-name and callable requirement selection, - non-selection, default behavior, and `PluginNotInstalledError`. -2. Establish reusable assertions for installed metadata, fresh-process - isolation, parity, delegation, and built artifacts. -3. Keep CGAL contributor guidance free of obsolete `__all_plugins__` - instructions. **Complete.** -4. Keep CGAL's three functions without a core pluggable as undecorated direct - APIs. **Complete.** -5. Keep CGAL requirements bound to the actual compiled runtime. Add equivalent - libigl requirements and registration-but-non-selection coverage when that - runtime is unavailable. **CGAL complete; libigl open.** -6. Add representative real public dispatch and complete lazy-delegation - coverage for libigl's registered categories. -7. Replace OCC synthetic-only metadata evidence with installed, fresh-process, - and built-wheel checks while preserving no-OCC discovery. -8. Add built-wheel entry-point metadata, registration-count, isolation, and - runtime-selection checks for every provider. -9. Require exhaustive shared-type, wrapper/core annotation, native-stub, and - result parity under Accepted Typing ADRs 015–017. **The approved source - migration is complete; final installed parity remains part of integration.** -10. Keep the consolidated OCC BRep conversion hook and final triangulation/BRep - extension-point names aligned with Accepted Geometry ADRs 022–023 and - Typing ADR 015. **Source migration complete; installed parity open.** - -Exit criteria: all reference packages pass the verification contract that is -applicable to their runtime. - -## Phase 2 — Model and viewer (Wave 1) - -In-scope packages: `compas_model` and `compas_viewer`. - -Status: source and package-local artifact migration complete on the current -modernization heads. Model discovery is isolated and requirement-gated; viewer -package initialization is lazy and entry-point discovery is graphics-free. -Both build workflows inspect the wheel entry point and run installed discovery. -The coordinated two-package registry/lifecycle test remains open. - -### Model - -- keep obsolete `__all_plugins__` removed; -- keep the discoverable Viewer-context registration as the sole plugin while - retaining the documented `ensure_scene_objects_registered` helper for - editable/source activation; -- keep the actual optional `compas_viewer` requirement and propagate - implementation import failures; -- retain installed metadata, wheel, fresh-process isolation, - unavailable-runtime, and registry-result tests; and -- migrate real geometry/render consumers only after Geometry ADRs 022–023 and - Typing ADR 015 establish their final conversion APIs. - -### Viewer - -- keep actual entry-point loading graphics-free, including package-initializer - execution, while preserving the approved public Viewer import contract; -- keep isolation evidence independent of test-collection scene imports; -- retain the explicit activation helper where source/editable lifecycle needs - it, without adding a second installed discovery path; -- keep the supported COMPAS range aligned with the verified C3 contract; -- retain installed metadata, wheel, external-process isolation, parity, - delegation, drawing-semantics, and artifact tests; and -- migrate scene objects away from stored resolution and cached tessellation - only after the approved geometry conversion contract is implemented. - -Coordinate ownership with the model-alignment, viewer-capability, -repository-modernisation, geometry-tessellation, and typing-alignment -initiatives. A coordinated installed test must finally prove both packages' -collect-all registrations together. - -## Deferred roadmap - -The following phases are not authorized by initial approval and do not affect -initial completion. Each requires an explicit scope amendment and new approval. - -### Candidate Wave 2 — Compatible optional backends - -For each candidate package: - -1. confirm active ownership and supported COMPAS version; -2. compare every legacy hook to current core; -3. migrate incompatible contracts before enabling entry points; -4. add lightweight registration modules and remove legacy discovery; -5. satisfy the verification contract. - -Triangle and IFC require known contract work before metadata migration. - -### Candidate Wave 3 — Host integrations - -Migrate Rhino, GH Python, Blender, and notebook independently. Separate host -imports from registration, align hooks, and define the host-runtime validation -command and evidence in each repository. Required host evidence is a completion -gate. If it is unavailable, the admitted package remains incomplete and must -not be reported as passing. - -### Candidate Wave 4 — Remaining ecosystem - -Maintain an active-package inventory. Admit one owned and compatible package at -a time through explicit approval. Archived duplicates are excluded unless -explicitly promoted to release targets. - -## Per-package task template - -1. Inspect metadata, legacy list, decorated functions, direct APIs, imports, - requirements, tests, and docs. -2. Record contract mismatches before editing. -3. Assign exclusive ownership of metadata, registration modules, - implementations, tests, and docs. -4. Implement only approved contract-preserving changes. -5. Run focused tests, full feasible tests, Ruff, formatting, Pyright, strict - docs, built artifact checks, and host tests where required. -6. Request independent review. -7. Resolve findings and rerun affected checks. -8. Update initiative status without merging or publishing. - -## Integration checks - -- discover the coordinated installed package set in a fresh process; -- assert extension-point uniqueness or approved priority relationships; -- prove unavailable optional packages do not block unrelated discovery; -- exercise representative real public dispatch in every migrated category; -- inspect wheels rather than relying only on editable installs; -- keep generated artifacts in temporary directories. - -## Completion criteria - -- ADRs 001–006 are Accepted; -- all six in-scope packages—`compas`, `compas_cgal`, `compas_libigl`, - `compas_occ`, `compas_model`, and `compas_viewer`—satisfy their approved - work packages; -- all in-scope plugin providers use explicit entry points only; -- discovery does not import implementation or optional runtime modules; -- wrappers exactly conform to stable core contracts; -- direct APIs are documented and non-divergent; -- applicable source, wheel, typing, and documentation gates pass; -- active documentation contains no `__all_plugins__` guidance; -- final independent cross-package review has no unresolved findings. - -Optional backends, host integrations, and other ecosystem packages are not -initial completion criteria. Once admitted through a later scope amendment, -all applicable gates—including required host evidence—must pass. diff --git a/initiatives/repository-modernisation/implementation-plan.md b/initiatives/repository-modernisation/implementation-plan.md deleted file mode 100644 index 188b432..0000000 --- a/initiatives/repository-modernisation/implementation-plan.md +++ /dev/null @@ -1,295 +0,0 @@ -# Repository Modernisation Implementation Plan - -Status: complete for the approved scope. Phases 0–6 pass through reviewed -initiative branches, hosted draft-PR evidence, and the protected exact-candidate -integration run. -No initiative changes have been merged into a target/default branch or -published. - -## Dependencies - -All work depends on accepted ADRs. Phase 2 shared-action capability work was the -prerequisite for completing the reference workflow migration in Phase 1. The -bounded `compas-actions` v2 implementation is independently reviewed Ready and -pushed, so reference workflows use its immutable remotely resolvable commit. -Trusted-publisher and protected-environment setup requires repository-owner -access and explicit approval. - -## Phase 0: record baselines - -Status: complete. The measured results, exact Phase 1 debt manifests, migration -surfaces, rollback commits, and environmental limitations are recorded in -[baseline.md](baseline.md). The session and framework changes use isolated -worktrees, preserving the original local branches and the dirty framework -coordination worktree. The clean Phase 1 reference repositories are not -blocked. - -Record current tests, Ruff, formatter, Pyright, docs, source/wheel builds, -native imports, workflow behavior, supported matrices, and release settings for -all ten initial core repositories. -Measure the known Gmsh test gap, ShapeOp Python/ABI mismatch, libigl dependency -pinning, OCC package availability, model optional runtimes, and framework -integration/release-order constraints. Do not introduce a new blocking gate -before its failures are known. - -Outputs: baseline report, exact migration file list, rollback point. - -## Phase 1: correct and validate the three references - -Status: complete through local review and hosted draft-PR verification. The -current `compas-actions` v2 consumer pin is -`5c64e6e2b576a1232d28fed47d9478ca8eb63b2d`; it is pushed and remotely -resolvable. - -1. Correct `compas` dependency groups/lock, Black residue, Ruff semantics, - Python metadata, strict docs, direct commands, and workflow security. -2. Establish OCC's accurate minimal Conda boundary and measured Pyright/docs - baseline without hiding PythonOCC availability constraints. -3. Replace CGAL's stale lock, document the authoritative native path, and add - parity checks before removing competing dependency paths. -4. Use the reviewed Phase 2 bounded shared actions to finish the reference - workflows and verify all three profile definitions through package, docs, - artifact, and dry-run release gates. - -This phase proves the profiles and fixes known reference defects. Direct local -commands remain the canonical developer and CI command interface. That decision -does not mean abandoning shared actions: bounded shared actions may implement -repeated CI mechanics while repository workflows keep orchestration, -provisioning, matrices, and the underlying direct commands visible. Thin -repository-owned Invoke conveniences may remain, normally run as -`uv run invoke `, when they only sequence those commands. They must not -own environment, dependency, system, or native provisioning, and broader Invoke -removal requires a coordinated team decision. - -### Phase 1 reviewed and hosted-verified checkpoints - -- **`compas`: Ready on the initiative successor.** The reviewed modernization - checkpoint is `943d9fdc366bf4bc55a2942dad259d112b23ab6c`. Draft - [PR 1539](https://github.com/compas-dev/compas/pull/1539) at - `4973c5fcfc53f0217a5fca20d0765e74b30459e2` passes the full Linux, macOS, - and Windows Python 3.12–3.14 matrix, minimum/current NumPy jobs, coverage, - changelog, release-metadata, and package-build checks. -- **`compas_occ`: Ready on the initiative successor.** Modernization checkpoint - `572fa1b5` is included in draft - [PR 32](https://github.com/compas-dev/compas_occ/pull/32) at - `5a4cf9701007266e517996181c8476488c4030d9`. Its strict docs, - release-metadata, and Linux, macOS, and Windows PythonOCC test jobs pass. -- **`compas_cgal`: Ready on the initiative successor.** Modernization checkpoint - `d31ec0f` is included in draft - [PR 81](https://github.com/compas-dev/compas_cgal/pull/81) at - `a46eecab71de5dfea6df7380d2eafb7185cc789a`. Quality, policy, sdist, - Linux, Windows, macOS ARM64, and macOS Intel wheel and smoke jobs all pass. - The earlier macOS Intel evidence gap is therefore closed. - -This evidence proves the Phase 1 repository and workflow gates at the cited -heads. Later typing and candidate-producer commits supersede these source -checkpoints without invalidating that evidence; their current status is -recorded under Phase 6. This is not evidence of a merge, published -distribution, documentation deployment, or repository-setting configuration. - -## Phase 2: prepare shared actions - -Status: implementation complete and independently reviewed Ready. The initial -local implementation commit is -`42216af0d21a53f0c234996b2fe664b1548af9eb`. The reviewed follow-up commit -`5c64e6e2b576a1232d28fed47d9478ca8eb63b2d` adds prepared Conda documentation -environments and is the current consumer pin. Both are on branch -`initiative/repository-modernisation`, based on rollback/start commit -`12ff286e`. - -Audit `compas-actions@v1` against the accepted boundary. Add only missing -bounded mechanics required by the profiles, with contract tests and examples: - -- uv setup/frozen sync; -- release detection and PR checks; -- artifact download and verification; -- GitHub release and MkDocs/Mike deployment; -- support for callers that provision Conda or build native artifacts in their - own visible jobs. - -Do not create a universal workflow generator. - -The tested `compas-actions` v2 contract unblocks the workflow portion of Phase -1. Both commits have been pushed to `initiative/repository-modernisation`, and -reference workflows use the current immutable SHA. The action is not tagged or -published as a release. No consumer workflow may be treated as verified until -its hosted run succeeds with that SHA. - -## Phase 3: finish OCC and CGAL workflow migration - -Status: complete through hosted draft-PR verification. OCC's modernization -checkpoint `572fa1b5` is covered by the fully green PR 32 successor head, and -CGAL's `d31ec0f` checkpoint is covered by the fully green PR 81 successor head, -including macOS Intel. - -OCC's groups, uv lock, commands, Pyright/docs debt, workflows, and -PythonOCC-bounded matrix are verified locally and through draft PR 32. CGAL's -dependency consolidation, visible CMake/cibuildwheel workflows, exact-artifact -promotion, full native wheel matrix, and sdist path are verified locally and -through draft PR 81. Trusted-publisher and protected-environment settings, any -publication, and merges remain explicitly outside this evidence. - -## Phase 4: pure and hybrid core repositories - -Status: complete through local review and hosted draft-PR verification. - -In parallel where file ownership is independent: - -- `compas_session`: modernization commit - `e0bdd02aa8490248c6f2f36042651d8ebfc4442b` is pushed on - `initiative/repository-modernisation` and hosted green on draft - [PR 1](https://github.com/BlockResearchGroup/compas_session/pull/1). Its frozen lock, - tests, Pyright, Ruff, doctest, strict MkDocs, wheel/sdist verification, - Twine, and isolated installed-wheel import pass. Protected environments, - trusted publishing, required checks, and Pages/Mike settings remain owner - configuration work; -- `compas_framework` ordinary checks now use the pure profile in reviewed - commit `ae3b28e` on `initiative/repository-modernisation`. Accepted - [ADR 020](decisions/020-framework-host-extras.md) is implemented: incompatible - COMPAS 2 host extras are removed, the lock is regenerated, and candidate - automation is structurally unable to publish, tag, create a GitHub release, - or deploy documentation. The separate native integration contract authorized - by Accepted [ADR 021](decisions/021-cross-repository-candidate-artifacts.md) - is implemented at `d0c9d4ef939ebbd4da4e14446e2e11f83a8a97b0` on framework - draft [PR 2](https://github.com/compas-dev/compas_framework/pull/2); protected - hosted run `42299118381` passes its exact candidate gate; -- `compas_gmsh` implements Accepted ADRs 014–016 at - `c47af195bf04d0d2e874255bfe9c5f351beda672` on draft - [PR 7](https://github.com/compas-dev/compas_gmsh/pull/7). Its real Gmsh - matrix, macOS 15 migration, typed artifacts, strict docs, and separate OCC - integration are hosted green; -- `compas_model` keeps Coal, OCC, and Viewer integration explicit at - `83df4167f7ba1539ae205a837e0238afecc0a36b` on draft - [PR 68](https://github.com/BlockResearchGroup/compas_model/pull/68). Its - Linux, macOS, Windows, optional-runtime, documentation, artifact, policy, - and installed-typing gates pass; and -- `compas_viewer` preserves explicit Qt/OpenGL provisioning and graphics-free - plugin discovery at `cf5a5195bda840a511319d6b7201978af68c15e3` on draft - [PR 232](https://github.com/compas-dev/compas_viewer/pull/232), whose hosted - matrix is green. - -A future, separate Gmsh architecture initiative may remove modeling concerns -and retain only COMPAS meshing infrastructure. `compas_fea2` is explicitly -excluded from that future scope while its independent refactor is underway; it -is a known deferred external consumer, not a migration or compatibility target. - -## Phase 5: native core repositories - -Status: complete through local review and hosted draft-PR verification. - -- `compas_libigl` entered this phase on an independent - `initiative/repository-modernisation` branch from `c3-upgrade` commit - `70acf99`; the later typing branch is its integration successor. Draft - [PR 47](https://github.com/compas-dev/compas_libigl/pull/47) at - `710b2b6714839a203fc8a6c62c437c0f6735ba0e` passes policy, quality, - typing, sdist, wheel typing, and Linux, Windows, and macOS ARM64 wheel/smoke - checks. The accepted native-stub completeness work is included at this - successor head and remains part of final typing integration evidence. -- That checkpoint uses reviewed immutable libigl, Eigen, and Clipper sources, - reconciled dependency metadata and lock, thin Invoke aliases, strict MkDocs, - immutable workflow pins, repository-owned native provisioning, native-module - wheel and clean-sdist verification, and exact tested-artifact promotion. -- The modernization checkpoint is integrated into - `initiative/typing-alignment`; Pyright and typed-wheel checks are blocking at - the cited PR head. Preserve the current Python 3.12+ and stable-ABI intent - unless later wheel evidence demonstrates a change requiring explicit - approval. -- Under Accepted ADRs 017–019 in - [`shapeop-modernisation-proposal.md`](shapeop-modernisation-proposal.md), - ShapeOp's Python-support/native-ABI inconsistency, native dependency - portability, Sphinx-to-MkDocs migration, and wheel matrix are implemented at - `930619a9aecd3e37515be9ce342ac20746ccf6d3` on hosted-green draft - [PR 7](https://github.com/compas-dev/compas_shapeop/pull/7). -- Reuse the native-wheel policy proven by CGAL, but keep each repository's - build commands and dependency versions visible. - -Proposed ShapeOp ADRs 022–023 remain separate public-contract follow-ups for -the similarity correspondence flags and point-buffer lifecycle. They are not -implemented at the cited head and do not block the accepted packaging work. - -## Phase 6: integration and documentation - -Status: complete. Accepted ADR 021 is implemented and independently reviewed on -framework draft PR 2 at `d0c9d4ef939ebbd4da4e14446e2e11f83a8a97b0`. -The live manifest passes schema and semantic validation with exact hashes for -all four wheels. Local verification passes offline bundle revalidation, -`--no-index --no-deps` staging, exact versions, installed entry-point/plugin -discovery, OCC BRep/tessellation behavior, strict exact-wheel typing, 54 -focused candidate-contract/package tests, Ruff, Pyright, actionlint, and strict -MkDocs. -Ordinary PR runs also exercise schema, provenance, security, and negative -contracts without credentials. - -The exact implementation head is fully green. Push/PR build runs `42299118404` -and `42299126001` pass the Linux, macOS, and Windows Python 3.12–3.14 matrix -plus the package job. Docs runs `42299118452` and `42299125994` pass. -Candidate-contract/all-workflow-actionlint runs `42299118380` and -`42299126013` pass, as do the PR checklist and release metadata. No hidden -framework workflow failure remains at this head. - -Current exact producer heads are core -`99b82a6673ff7d05c1c323c8921135c274993f11`, OCC -`7fdf2ffb57d1de16308020e14ec626d79e65a034`, CGAL -`bb3624e714719d543c61768320d91811ba96cc6c`, and libigl -`710b2b6714839a203fc8a6c62c437c0f6735ba0e`. All four have green hosted -evidence. CGAL build run `42231235319` attempt 2 passed quality, -minimum/current NumPy, sdist, Linux, Windows, macOS Intel, and macOS ARM wheel -builds plus all Python 3.12/3.14 wheel-smoke jobs. Candidate artifact -`13522578476` supplies its selected Linux wheel evidence. - -Protected run `42299118381` passes the exact-candidate gate. Its credentialed -job verifies and bundles the four selected artifacts; its separate -permission-free execution job installs them and the framework wheel offline, -runs all four required Linux native contracts with no skips, and reports zero -typing errors or warnings. This closes the CGAL→core→libigl and OCC hosted -evidence gap. `main` remains untouched. - -1. Run clean-environment verification for all ten core repositories and every - profile. -2. Verify that Ruff and Pyright enumerate every executable Python example, and - modernize stale framework idioms exposed by those gates. -3. Request independent review of configuration, security, and release flow. -4. Resolve findings and rerun every affected gate. -5. Publish contributor and maintainer documentation changes in the same - repository commits as their configuration. -6. Record deviations from the standard with rationale. - -The reviewed local, package-hosted, and protected framework integration -evidence satisfies these steps. - -## Later wave: host integrations - -Inventory `compas_rhino`, `compas_ghpython`, and `compas_blender` after core -completion. Produce host-specific ADRs where the proven core profiles do not -fit. Do not infer host-runtime behavior from ordinary Python CI. - -## Parallel work - -During the corrected Phase 1/Phase 2 sequence: - -- shared-action v2 contract work and reference-repository non-workflow cleanup - can proceed in parallel; -- CGAL dependency inventory/parity tests can proceed independently; -- independent pure/hybrid repository audits and Sphinx-to-MkDocs content work - can proceed in parallel with separate owners; -- libigl dependency pinning and ShapeOp ABI evidence gathering are independent; -- docs cleanup and Python-matrix evidence gathering are package-local; -- reference workflow completion waits for required shared-action v2 - capabilities; -- repository-setting changes remain serial and owner-controlled. - -## Ownership boundaries - -- one implementer owns each package repository; -- one implementer owns `compas-actions`; -- no two agents edit the same workflow or dependency file concurrently; -- a reviewer owns final cross-repository validation; -- a documenter verifies contributor/release documentation against commands. - -## Completion criteria - -The initial wave is complete only when all ten core repositories pass their -accepted blocking gates, artifact tests, strict docs, and dry-run release -validation; obsolete active paths are removed; framework integration verifies -the coordinated package set and release order; documentation matches CI; and -no publish, deployment, or merge has occurred without explicit approval. diff --git a/initiatives/repository-modernisation/objective.md b/initiatives/repository-modernisation/objective.md index 2437a2f..2982679 100644 --- a/initiatives/repository-modernisation/objective.md +++ b/initiatives/repository-modernisation/objective.md @@ -94,7 +94,7 @@ The initiative will assess and propose a consistent approach for: 2. `proposal.md` defining the recommended repository standard, alternatives, migration effects, and verification strategy. 3. One Proposed ADR for every significant independent architectural choice. -4. `implementation-plan.md` with dependencies, repository ownership, rollout +4. An implementation plan with dependencies, repository ownership, rollout stages, and opportunities for parallel work. ## Verification target diff --git a/initiatives/typing-alignment/README.md b/initiatives/typing-alignment/README.md index 543ca0c..18c2242 100644 --- a/initiatives/typing-alignment/README.md +++ b/initiatives/typing-alignment/README.md @@ -11,7 +11,6 @@ integration scope**. - [Inventory](inventory.md) - [Proposal](proposal.md) - [Architecture decisions](decisions/README.md) -- [Implementation plan](implementation-plan.md) ADRs 001–017 and Geometry ADRs 022–023 are approved. Together they define the exact geometry signatures, layered semantic diff --git a/initiatives/typing-alignment/implementation-plan.md b/initiatives/typing-alignment/implementation-plan.md deleted file mode 100644 index 1d4aeac..0000000 --- a/initiatives/typing-alignment/implementation-plan.md +++ /dev/null @@ -1,405 +0,0 @@ -# Typing Alignment Implementation Plan - -## Status - -ADRs 001–017 and Geometry ADRs 022–023 are Accepted. The approved source work -is implemented at the coordinated candidate heads, preserving duck typing -through Python code and limiting normalization to explicit hard boundaries. -Final hosted native integration passes. - -Current draft-PR heads are core PR 1539 at -`99b82a6673ff7d05c1c323c8921135c274993f11`, OCC PR 32 at -`7fdf2ffb57d1de16308020e14ec626d79e65a034`, CGAL PR 81 at -`bb3624e714719d543c61768320d91811ba96cc6c`, and libigl PR 47 at -`710b2b6714839a203fc8a6c62c437c0f6735ba0e`. All four are hosted green. CGAL -run `42231235319` attempt 2 passed every quality, compatibility, distribution, -platform-wheel, and Python 3.12/3.14 wheel-smoke job. WP7 source work and -WP8.1–WP8.3 are implemented. WP8.4 exact local candidate integration and the -protected hosted positive pass; WP8.4 and WP6 are complete. - -## Work packages - -### WP0 — Baseline, tooling, and fixtures - -**Ownership:** `compas_framework`; metadata/CI files in each package. - -- Align Python, COMPAS, NumPy, and Pyright versions. -- Add authoritative `compas3` commands. -- Define typed consumer-fixture conventions. -- Add initial wheel-content checks. - -**Depends on:** ADR 001. - -**Gate:** identical supported baseline and reproducible Pyright invocation. - -### WP1 — Core numeric and array vocabulary - -**Ownership:** public `compas.typing`, datastructure type aliases, focused static and -runtime tests. - -- Add approved real/integral, coordinate, collection, and index input aliases. -- Consolidate duplicate aliases. -- Add Python/NumPy scalar and array fixtures. -- Document static versus runtime guarantees. - -**Depends on:** WP0; ADRs 002–003. - -**Gate:** valid NumPy calls type-check; invalid runtime cases fail explicitly. - -### WP2 — Core retained buffers and returns - -**Ownership:** `Tessellation`, Mesh construction boundaries, selected scalar -return APIs. - -- Expand retained buffer generic bounds without coercion. -- Align normals, UVs, and polylines. -- Preserve concrete buffer inference and ownership behavior. -- Normalize approved ordinary scalar returns. - -**Depends on:** WP1; ADRs 004 and 008. - -**Gate:** zero-copy/ownership tests and typed consumers pass. - -### WP3 — Plugin contracts - -**Ownership:** core pluggable modules and matching OCC/CGAL plugin modules. - -- Separate public wrappers that enforce necessary documented invariants from - narrow private pluggables where needed. -- Replace known generic forwarding with explicit signatures. -- Add signature and typed result conformance tests. - -**Depends on:** WP1 and relevant parts of WP2; ADR 006. - -**Parallelism:** independent plugin families may proceed in parallel after the -core signature for that family is fixed. - -**BRep query rule:** curve, surface, and other BRep signatures and forwarding -tests may proceed independently. Implement the OCC BRep classification and -topology queries through independently failing contracts as approved in ADR -011; do not encode unsupported semantics as `False` or `[]`. - -### WP4 — CGAL NumPy and native stubs - -**Status:** complete and hosted green at `bb3624e714719d543c61768320d91811ba96cc6c`. -Run `42231235319` attempt 2 passed every Python 3.12/3.14 platform wheel-smoke -job, including installed `--verifytypes`. - -**Ownership:** `compas_cgal` wrapper modules, `types.py`, native stubs, native -boundary tests, packaging. - -- Standardize broad public inputs. -- Normalize exact `float64`/`int32` C-contiguous ABI buffers. -- Remove obsolete core-boundary ignores. -- Align result representations with core. -- Add stub export parity, typed smoke, and wheel checks. - -**Depends on:** WP1–WP3; ADRs 003–006 and 009. - -**Parallelism:** independent native module families may use separate owners. - -**Known correctness limitation:** current `compas_cgal` skeletonisation results -are not correct. WP4 may align its Python/native signatures and distribution -artifacts, but must not mark skeletonisation behavior as verified. Functional -verification remains open pending a separate diagnosis and geometry regression -tests. - -### WP5 — OCC core-contract alignment - -**Status:** source, plugin-contract, installed-typing, and package matrix work -complete and hosted green on draft PR 32 at `7fdf2ffb`. - -**Ownership:** separate non-overlapping families: - -1. curves; -2. surfaces and NURBS; -3. BRep components; -4. conversions and SWIG boundary helpers; -5. plugins; -6. serialization and tests. - -For each family: - -- fix stale core API use and override substitutability; -- centralize native downcasts/conversions; -- add intentional NumPy normalization only where approved; -- replace broad ignores with narrow documented boundary exceptions; -- add runtime and typed base-class consumer tests. - -**Depends on:** WP1 and the relevant WP3 contract; ADRs 005–008. - -**Parallelism:** families can proceed in parallel with explicit file ownership. - -### WP6 — Typed distribution and integration - -**Status:** complete. The package-level typed distribution gates pass at the -current candidate heads, exact local WP8.4 candidate integration passes, and -protected run `42299118381` verifies installed runtime and typing contracts. - -**Ownership:** package build configuration plus `compas_framework` integration -and independent review. - -- Ship and verify `py.typed` in all wheels. -- Verify CGAL and libigl stubs in installed wheels and against native exports. -- Type-check an external installed-package consumer. -- Run lowest/latest NumPy runtime and typing matrices. -- Run native import/ABI tests, full feasible tests, Ruff, format, Pyright, and - documentation builds. -- Independently review remaining ignores and runtime changes. - -**Depends on:** WP0–WP5, WP7.7, and WP8.4; ADRs 009–010 and every Accepted -decision governing the integrated public/native surface. - -### WP7 — Representation and numerical-boundary correction - -**Status:** source implementation complete at the coordinated candidate heads. -ADRs 012–016 and Geometry ADRs 022–023 supply the exact API and structural -vocabulary implemented by WP7.1–WP7.7. Retained `Tessellation` representation -semantics remain in scope; exact installed integration is tracked by WP8.4. - -#### Affected-API migration table - -| Slice | Current public boundary | Approved destination | Principal dependents | -|---|---|---|---| -| Structural vocabulary | `Tessellation`, `TriangleMeshInput`, tuple-valued `MeshType`, or package-local `VerticesFaces` | One core `VerticesFaces` structural contract; exact concrete result aliases | Core typing fixtures; CGAL/libigl native boundaries | -| Mesh booleans | Public pluggables require and return `Tessellation` | Public raw-buffer dispatch plus private `_boolean_*` hooks; one backend conversion, minimal native-safety checks, native failure propagation, and shape-checked structural results | CGAL Boolean plugin/wrappers; `Polyhedron` Boolean methods | -| Intersection and slicing | `Tessellation` mesh inputs | Structural mesh inputs; existing polyline/hit results | CGAL intersection/slicer plugins and examples | -| Remeshing | `Tessellation` input/result | Structural mesh input/result | CGAL meshing plugin; Boolean documentation | -| Curvature, parameterization, geodesics, isolines, matrices | `Tessellation` mesh input | Structural mesh input; existing scalar/vector results | Each installed backend and core plugin fixtures | -| Planar Delaunay | `triangulate_planar_*` plus nominal strategy flags; `Tessellation` result | Named planar Delaunay/constrained/conforming operations and private hooks; structural result; no implicit curved-domain projection | CGAL triangulation; `Mesh.from_points` | -| Polygon triangulation | Public strategy hierarchy and nested `FaceTriangulation` | Named operations; aggregate triangulator callable where approved; distinct no-argument region conversion | `Polygon`, `PolygonalSurface`, `Polyhedron`, `Mesh`, `PlanarRegion` | -| Shape/surface conversion | `polygonize`/`tessellate` plus `Native`, `UGrid`, `UVGrid`, `Adaptive` | `to_polygonal_surface`/`to_tessellation` with producer-specific keyword-only resolution controls and one shared structured path | Shape/surface tests, examples, scene conversion | -| BRep conversion | `polygonize`/`tessellate` plus `Deflection` strategy | `to_tessellation` only, with explicit linear/angular deflection keywords and documented units | Core BRep, `compas_occ`, examples | -| Cleanup | `tessellation_pluggable`, strategy exports and serialization | Remove after all consumers migrate | Core exports, docs, installed-wheel consumers | - -#### Dependency-ordered work packages - -1. **WP7.1 — Structural triangle contract.** Add the authoritative buffer alias - and static/runtime fixtures without changing algorithms. -2. **WP7.2 — Boolean pilot.** Prove public-wrapper/private-hook dispatch and - direct CGAL raw-buffer use before migrating other families. -3. **WP7.3 — Remaining triangle operations.** Migrate independent - intersection/slicing, remeshing, curvature, parameterization, - geodesic/isoline, and matrix families with their actual backends. - `compas_libigl` is included from `c3-upgrade` commit `70acf99`; repair its - remesh-along-isoline registration before migrating its ray intersection, - geodesic, isoline, mass-matrix, harmonic, and LSCM hooks. Curvature remains - separate because the Rhino principal-curvature result contract conflicts - with core. Accepted ADR 014 retains only verified core Gaussian angle defect - and removes unsupported mean/principal core hooks after the verified libigl - modernization checkpoint is integrated. -4. **WP7.4 — Named planar triangulation.** **Authorized by Accepted ADRs - 015–016.** - Replace nominal Delaunay flags and - migrate CGAL plus `Mesh.from_points` in one cross-package slice. Reject - non-planar inputs outside tolerance and keep non-planar polygon - triangulation on its separate path. -5. **WP7.5 — Polygon triangulation operations.** **Authorized by Accepted ADRs - 015–016.** Replace nested strategy objects using the approved named-operation - and aggregate-callable table for `Polygon`, `PolygonalSurface`, - `Polyhedron`, and `Mesh`. Omitted and explicit `None` aggregate selectors - both resolve to the default `triangulate_polygon`; a provided callable is - the only customization path. Migrate `PlanarRegion` separately to its - no-argument `triangulated`, `to_polygonal_surface`, and `to_mesh` contract; - it does not accept the aggregate triangulator callable. - Accepted Geometry ADR 024 changes only `Mesh.triangulated(...)` from - `Tessellation` to `Self`. Implement that representation-preserving Mesh - slice and its coordinated consumers; the other aggregate return contracts - remain unchanged. -6. **WP7.6 — Producer-specific controls.** **Authorized by Accepted Typing ADRs - 015–016 and Geometry ADRs 022–023.** Migrate shape/surface representation - conversions, then core BRep and OCC together. Preserve documented - no-argument generic conversions through deterministic defaults. -7. **WP7.7 — Export and integration cleanup.** **Authorized by Accepted ADRs - 015–017.** Remove obsolete decorators, - strategy classes, exports, serialization fixtures, and documentation only - after their dependents have migrated. - -Every vertical slice must verify Python and NumPy inputs, C/Fortran/sliced/ -read-only buffers, source non-mutation, semantic failures, exact native -normalization, signature parity, direct backend use, explicit representation -conversion, full feasible tests, Ruff, Pyright, documentation, and independent -review. - -Core wrappers do not duplicate backend conversion or proactively recompute -mesh topology. Backend checks are limited to what its native implementation -needs for process safety, followed by native success/failure propagation and -result-shape verification. Geometric validity remains a documented algorithm -precondition unless an operation explicitly requires a different contract. - -No additional architectural approval is required for WP7.1–WP7.7. Correct the -superseded alias vocabulary under accepted ADR 016 and execute the remaining -work packages in dependency order. Stop if a released -compatibility obligation, a result -requiring metadata beyond buffers, a backend incompatibility, a new -representation class, an implicit conversion, or a second public path becomes -necessary. - -### WP8 — Shared vocabulary and native-binding truthfulness - -**Status:** complete. WP8.1–WP8.3 source and package-level verification are -implemented, and WP8.4 passes its reviewed local and protected hosted gates. - -#### WP8.1 — Core vocabulary and constructor interoperability - -**Status:** complete at core source checkpoint -`3c1a2e8e0e5c4c14292ecf4bb38c82e5b977273e`; candidate-producer successor -`99b82a6673ff7d05c1c323c8921135c274993f11` is hosted green. - -**Ownership:** public `compas.typing`, removal of private `compas._typing`, -affected core constructors, static/runtime fixtures, and public documentation. - -- replace `TriangleMeshInput` and tuple-valued `MeshType` with the sole neutral - `VerticesFaces` structural alias; -- distinguish protocol, semantic accepted-input, structural interchange, and - concrete result names according to ADR 016, using one rich indexed/sliced - `CoordinateProtocol` and structurally identical `PointLike`/`VectorLike` - unions for positional and directional roles; -- migrate quaternion and generic linear-algebra consumers to neutral - `FloatSequenceLike` over `RealInput`, preserving existing direct arithmetic - without new conversions, validation, casts, or ignores for typing; -- lock the static `RealInput`-to-`SupportsFloat` relationship with explicit - union and concrete Python/NumPy scalar fixtures, including direct - one-dimensional `PointLike`/`VectorLike` element assignment to representative - `Point`/`Vector` component setters without conversion, cast, or ignore; -- make core `Point` and `Vector` explicitly conform to - `CoordinateProtocol[float]`, preserve the runtime-checkable coordinate and - point-collection membership used by equality, and use only unparameterized - protocols in those runtime guards; -- inventory every indexed consumer and migrate it to a semantic alias or exact - result type with accepted/error static fixtures and runtime duck fixtures; -- forbid runtime protocols as general input-validation gates; -- migrate every core and integration consumer without aliases or shims; -- make copying core constructors accept the approved NumPy coordinate/index - values and align corresponding setters that use the same normalization path; - and -- correct `PolygonalSurface`/`Polyhedron` NumPy integral index handling during - their existing ownership copy, without a separate validation pass. - -**Depends on:** accepted ADR 016; WP1–WP2 and WP7.1–WP7.3 evidence. - -#### WP8.2 — CGAL stub and wrapper correction - -**Status:** complete and hosted green at -`bb3624e714719d543c61768320d91811ba96cc6c`. Run `42231235319` attempt 2 -passed quality, minimum/current NumPy, sdist, every platform wheel build, and -all Python 3.12/3.14 wheel-smoke jobs. - -**Ownership:** `compas_cgal` native `.pyi`, `types.py`, wrappers, exports, -runtime ABI tests, typed consumers, and package verification. - -- import the core broad vocabulary instead of redefining it; -- correct every measured native-stub/runtime mismatch; -- type every supported public wrapper and make exports explicit; -- retain exact concrete array and heterogeneous result aliases only where they - describe actual CGAL results; and -- reach 100% known public type completeness and verify installed stubs. - -**Depends on:** WP8.1 and accepted ADR 017. - -#### WP8.3 — Libigl native stubs and public completion - -**Status:** complete and hosted green at -`710b2b6714839a203fc8a6c62c437c0f6735ba0e`. - -**Ownership:** `compas_libigl` 13 private extension stubs, 21 public wrappers, -plugins, imports, consumers, and package verification. - -- add one accurate `.pyi` for every compiled extension and remove broad import - ignores; -- type dense arrays, sparse matrices, Python containers, and mixed results as - actually returned; -- replace casts and old structural aliases with the core vocabulary; and -- reach 100% known public type completeness and verify every installed stub. - -**Depends on:** WP8.1 and accepted ADR 017. WP8.2 and WP8.3 may proceed in -parallel with separate repository ownership. - -#### WP8.4 — Cross-package installed integration - -**Status:** complete and independently reviewed on framework draft -[PR 2](https://github.com/compas-dev/compas_framework/pull/2) at -`d0c9d4ef939ebbd4da4e14446e2e11f83a8a97b0`. The live manifest passes -schema/semantic validation with exact hashes for all four wheels. Offline -bundle revalidation, `--no-index --no-deps` staging, exact versions, installed -entry-point/plugin discovery, OCC BRep/tessellation behavior, strict -exact-wheel typing, 54 focused tests, Ruff, Pyright, actionlint, and strict -MkDocs pass. - -Push/PR build runs (`42299118404`, `42299126001`), docs runs -(`42299118452`, `42299125994`), and candidate-contract/all-workflow-actionlint -runs (`42299118380`, `42299126013`) pass. They cover Linux, macOS, and Windows -on Python 3.12–3.14, the package job, documentation, and release metadata. No -hidden workflow failure remains at this head. - -Protected run `42299118381` passes at the exact implementation head. Its -credentialed retrieval job verifies and bundles the selected artifacts; its -separate permission-free execution job installs them offline, reports all four -required native contracts passed with no skips, and reports zero typing errors -or warnings. This closes the Linux CGAL→core→libigl and OCC evidence gap. -`main` remains untouched. - -**Ownership:** `compas_framework` integration fixtures and independent review. - -- install exact candidate wheels outside their checkouts; -- type-check every supported CGAL/libigl public family; -- pass applicable backend results directly into core constructors; -- verify no removed aliases, `.tolist()` workarounds, broad ignores, or casts - mask the shared contract; and -- rerun the complete runtime, Pyright, Ruff, documentation, wheel, and native - matrix after review. - -**Depends on:** WP8.1–WP8.3; ADRs 016–017. - -## Dependency graph - -```text -WP0 -> WP1 -> WP2 - \-> WP3 -> WP4 - \-> WP5 -WP0 + WP2 + WP4 + WP5 + WP7.7 + WP8.4 -> WP6 -WP1 -> WP7.1 -> WP7.2 -> WP7.3 - \-> WP7.4 -> WP7.5 -WP7.3 -> WP7.6 -Geometry ADR022 -> Geometry ADR023 -Typing ADR016 -> WP8.1 -> WP8.2 -> WP8.4 -Typing ADR016 -> WP8.1 -> WP8.3 -> WP8.4 -Typing ADR015 + Typing ADR016 -> WP7.4, WP7.5 -Typing ADR015 + Typing ADR016 + Geometry ADR022 + Geometry ADR023 -> WP7.6 -Typing ADR015 + Typing ADR016 + Typing ADR017 -> WP7.7 -ADR014 -> WP7.3 -> WP7.7 -WP7.2 + WP7.3 + WP7.4 + WP7.5 + WP7.6 -> WP7.7 -``` - -## Verification requirements per work package - -- smallest relevant runtime tests first; -- typed consumer fixtures for changed public contracts; -- Ruff check and format verification; -- Pyright through `compas3` with zero new errors; -- `git diff --check`; -- documentation updated with each public contract; -- exact commands/results recorded in initiative status. - -## Final exit criteria - -- all ADRs governing implemented work are Accepted; -- core, OCC, CGAL, and libigl have zero Pyright errors in the approved scope; -- no broad/global suppressions or frozen error baseline exist; -- NumPy acceptance matches annotations and runtime tests; -- plugin implementations conform to core contracts; -- native ABI normalization and ownership are documented and tested; -- `py.typed` and all CGAL/libigl native stubs are present in built wheels; -- CGAL and libigl reach 100% known types for their intentionally exported - public surfaces; -- external installed-package consumers type-check; -- relevant/full feasible tests, Ruff, formatting, Pyright, docs, and independent - review pass. - -## Explicitly deferred - -- universal tensor/shape typing; -- changing runtime behavior solely for checker convenience; -- typing optional ecosystem packages outside initial scope; -- automatic stub generation without evidence it improves contracts; -- speculative serialization schema hierarchies. diff --git a/initiatives/typing-alignment/proposal.md b/initiatives/typing-alignment/proposal.md index 8308b8a..057784e 100644 --- a/initiatives/typing-alignment/proposal.md +++ b/initiatives/typing-alignment/proposal.md @@ -311,7 +311,8 @@ implementation below. 6. Correct OCC public subclass families in independent owned work packages. 7. Verify source, wheels, native imports, documentation, and downstream use. -See `implementation-plan.md` for dependencies and ownership. +See the [implementation plan at the migration checkpoint](https://github.com/compas-dev/compas_framework/blob/81ec5252559ce8a902bd68c8acc5ae0a856c9dca/initiatives/typing-alignment/implementation-plan.md) +for the dependencies and ownership that informed this proposal. ## Accepted refinement: one structural vocabulary and typed native seams