From 79f4377077708d55a41726f07b1460d812bdd34e Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 30 Jun 2026 12:18:43 +0000 Subject: [PATCH] chore(ratios): stamp executable source with strict ratios bookend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bring pcta into ratios compliance (msdmd RATIOS): every executable source file carries the single-line `ratios:` declaration on its first and last non-blank lines. Stamped 4 Python source files; values computed by skill-lib's canonical ratios_check.py compute functions, so `ratios_check.py` reports 0 drift / 0 misplaced on the covered set. Excluded (this pass): vendored .agents/ skill copies (must be re-propagated from canonical, not hand-edited), frontend/ React trees (separate pass), tests/ (out of the checker's scope), and legacy/ migration trees. Empty stub files are skipped (nothing to seal). Shebangs removed from 0 script(s): ratios placement is strict (first non-blank line), and these are invoked via `python …`/`-m`, so direct ./script execution was not relied upon. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_016MxbhVVRcSdqBTYuvyDR5L --- pcta/__init__.py | 2 ++ pcta/compose.py | 2 ++ pcta/constants.py | 2 ++ pcta/tensor.py | 2 ++ 4 files changed, 8 insertions(+) diff --git a/pcta/__init__.py b/pcta/__init__.py index 3a47ffd..49a27e6 100644 --- a/pcta/__init__.py +++ b/pcta/__init__.py @@ -1,3 +1,4 @@ +# ratios: loc_comments=35:23 imports_exports=4:1 calls_definitions=1:0 """pcta — **PCTA: Prime Circled Tensor Architecture** (prime-tensor stack layer 2). Covers circles carried by UCNS objects and composes them into **seeds**. It @@ -63,3 +64,4 @@ "coherence_primes_up_to", "nth_coherence_prime", ] +# ratios: loc_comments=35:23 imports_exports=4:1 calls_definitions=1:0 diff --git a/pcta/compose.py b/pcta/compose.py index cb2cf7d..2026cfc 100644 --- a/pcta/compose.py +++ b/pcta/compose.py @@ -1,3 +1,4 @@ +# ratios: loc_comments=56:36 imports_exports=5:4 calls_definitions=21:4 """The layer-2 composition operator: circles -> seed. `compose_seed` is the structural ``⊠`` operator for layer 2. It is **purely @@ -105,3 +106,4 @@ def seed_motion(seed: Seed) -> SeedMotion: anchor_order=seed.anchor_order, circle_identities=tuple(c.identity for c in seed.circle_tensors()), ) +# ratios: loc_comments=56:36 imports_exports=5:4 calls_definitions=21:4 diff --git a/pcta/constants.py b/pcta/constants.py index 7467ea9..f49a386 100644 --- a/pcta/constants.py +++ b/pcta/constants.py @@ -1,3 +1,4 @@ +# ratios: loc_comments=69:90 imports_exports=3:3 calls_definitions=20:6 """Composition routing and the coherence-prime guard. `pcta` (**PCTA — Prime Circled Tensor Architecture**) is **layer 2** of the @@ -180,3 +181,4 @@ def nth_coherence_prime(n: int) -> int: if len(ladder) > n: return ladder[n] limit *= 2 +# ratios: loc_comments=69:90 imports_exports=3:3 calls_definitions=20:6 diff --git a/pcta/tensor.py b/pcta/tensor.py index 61001f5..8a17f43 100644 --- a/pcta/tensor.py +++ b/pcta/tensor.py @@ -1,3 +1,4 @@ +# ratios: loc_comments=47:37 imports_exports=3:3 calls_definitions=6:10 """Layer-2 tensor objects: the opaque circle carrier and the seed it produces. pcta consumes **circle-tensors** (layer-1 / `pcna` output — circles carried by @@ -104,3 +105,4 @@ class SeedMotion: routing_step: int anchor_order: Tuple[int, ...] circle_identities: Tuple[Optional[str], ...] = field(default_factory=tuple) +# ratios: loc_comments=47:37 imports_exports=3:3 calls_definitions=6:10