chore(ratios): stamp executable source with ratios bookend - #110
Conversation
Bring edcmbone into ratios compliance (msdmd RATIOS): every executable source file carries the single-line `ratios:` declaration on its first and last non-blank lines. Stamped 66 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 8 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016MxbhVVRcSdqBTYuvyDR5L
|
Note for reviewers: the Generated by Claude Code |
There was a problem hiding this comment.
Pull request overview
Brings the repository’s Python “executable source” files into ratios (msdmd RATIOS) compliance by stamping each file with a single-line # ratios: declaration on the first and last non-blank lines, and removing a small set of python3 shebangs to preserve the “ratios must be first line” rule.
Changes:
- Add
# ratios: ...bookends to a broad set of Python modules/scripts across root,edcmbone/,core/, andbackend/src/. - Remove
#!/usr/bin/env python3shebangs from several probe scripts so the first non-blank line can be theratios:declaration. - No functional code logic changes beyond comment/shebang line edits.
Reviewed changes
Copilot reviewed 66 out of 66 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| version.py | Add ratios: bookends around the module. |
| ucns.py | Add ratios: bookends around the compatibility shim module. |
| ucns_v04.py | Add ratios: bookends around the UCNS v0.4 engine module. |
| ternary_widening_probe.py | Replace shebang with ratios: header; add trailing ratios: footer. |
| prime5_widening_probe.py | Replace shebang with ratios: header; add trailing ratios: footer. |
| prime_carpet_probe.py | Replace shebang with ratios: header; add trailing ratios: footer. |
| phi_compose_probe.py | Replace shebang with ratios: header; add trailing ratios: footer. |
| phi_compose_probe_v3.py | Replace shebang with ratios: header; add trailing ratios: footer. |
| phi_compose_probe_v2.py | Replace shebang with ratios: header; add trailing ratios: footer. |
| operational_widening_probe.py | Replace shebang with ratios: header; add trailing ratios: footer. |
| frequency_probe.py | Replace shebang with ratios: header; add trailing ratios: footer. |
| engine.py | Add ratios: bookends around the library engine module. |
| edcmbone/ucns_g/schema.py | Add ratios: bookends around UCNS-G schema module. |
| edcmbone/ucns_g/primes.py | Add ratios: bookends around UCNS-G primes helper module. |
| edcmbone/ucns_g/init.py | Add ratios: bookends around the UCNS-G package init. |
| edcmbone/operator/tokenize.py | Add ratios: bookends around operator tokenizer module. |
| edcmbone/operator/count.py | Add ratios: bookends around operator family count module. |
| edcmbone/operator/aggregate.py | Add ratios: bookends around operator aggregate module. |
| edcmbone/operator/init.py | Add ratios: bookends around operator package exports. |
| edcmbone/edcmbone/protocols/transcript_embedder.py | Add ratios: bookends around protocol definition module. |
| edcmbone/edcmbone/protocols/content_embedder.py | Add ratios: bookends around protocol definition module. |
| edcmbone/edcmbone/protocols/claim_extractor.py | Add ratios: bookends around protocol definition module. |
| edcmbone/edcmbone/protocols/bone_embd_v1_1_0alpha.py | Add ratios: bookends around protocol definition module. |
| edcmbone/edcmbone/operator/tokenize.py | Add ratios: bookends around mirrored operator tokenizer module. |
| edcmbone/edcmbone/operator/count.py | Add ratios: bookends around mirrored operator count module. |
| edcmbone/edcmbone/operator/aggregate.py | Add ratios: bookends around mirrored operator aggregate module. |
| edcmbone/edcmbone/operator/init.py | Add ratios: bookends around mirrored operator package init. |
| edcmbone/edcmbone/content/window.py | Add ratios: bookends around content window aggregation module. |
| edcmbone/edcmbone/content/vector.py | Add ratios: bookends around content vector module. |
| edcmbone/edcmbone/content/status.py | Add ratios: bookends around content status types module. |
| edcmbone/edcmbone/content/rating.py | Add ratios: bookends around content rating types module. |
| edcmbone/edcmbone/content/init.py | Add ratios: bookends around content package init. |
| edcmbone/edcmbone/bridge/divergence.py | Add ratios: bookends around bridge divergence module. |
| edcmbone/edcmbone/bridge/correlate.py | Add ratios: bookends around bridge correlate module. |
| edcmbone/edcmbone/bridge/init.py | Add ratios: bookends around bridge package init. |
| edcmbone/edcmbone/behavioral/snapshot/metrics.py | Add ratios: bookends around behavioral snapshot metrics. |
| edcmbone/edcmbone/behavioral/snapshot/markers.py | Add ratios: bookends around behavioral marker engine. |
| edcmbone/edcmbone/behavioral/snapshot/init.py | Add ratios: bookends around snapshot package init. |
| edcmbone/edcmbone/behavioral/init.py | Add ratios: bookends around behavioral package init. |
| edcmbone/edcmbone/init.py | Add ratios: bookends around canonical package namespace. |
| edcmbone/init.py | Add ratios: bookends around top-level package namespace. |
| core/windowing/init.py | Add ratios: bookends for core windowing package init stub. |
| core/parsing/turn_builder.py | Add ratios: bookends around turn builder module. |
| core/parsing/tokenizer.py | Add ratios: bookends around tokenizer module. |
| core/parsing/round_builder.py | Add ratios: bookends around round builder module. |
| core/parsing/parsing_pipeline.py | Add ratios: bookends around parsing pipeline module. |
| core/parsing/normalizer.py | Add ratios: bookends around normalizer module. |
| core/parsing/init.py | Add ratios: bookends for parsing package init stub. |
| core/operator/operator_extractor.py | Add ratios: bookends around operator extractor module. |
| core/operator/matcher.py | Add ratios: bookends around matcher module. |
| core/operator/inventories.py | Add ratios: bookends around inventories loader module. |
| core/operator/init.py | Add ratios: bookends for operator package init stub. |
| core/bridge/math_utils.py | Add ratios: bookends around bridge math utilities. |
| core/bridge/bridge_engine.py | Add ratios: bookends around bridge engine module. |
| core/bridge/init.py | Add ratios: bookends for bridge package init stub. |
| core/behavioral/ucns_marker_store.py | Add ratios: bookends around UCNS marker store module. |
| core/behavioral/structural_proxies.py | Add ratios: bookends around structural proxies module. |
| core/behavioral/marker_matcher.py | Add ratios: bookends around marker matcher module. |
| core/behavioral/behavioral_window.py | Add ratios: bookends around behavioral window module. |
| core/behavioral/behavioral_metrics.py | Add ratios: bookends around behavioral metrics module. |
| core/behavioral/init.py | Add ratios: bookends for behavioral package init stub. |
| closed_tokens.py | Add ratios: bookends around closed-token encoder module. |
| backend/src/ucns/ucns_v04.py | Add ratios: bookends around backend UCNS engine module. |
| backend/src/ucns/init.py | Add ratios: bookends around backend UCNS package module. |
| backend/src/edcmbone_backend/init.py | Add ratios: bookends around backend package entrypoint. |
| backend/examples/boundary_quickstart.py | Add ratios: bookends around example quickstart script. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What
Brings edcmbone into
ratios(msdmd RATIOS) compliance: every executable source file now carries the single-lineratios:declaration on its first and last non-blank lines. Stamped 66 Python source files.How
Values were computed by skill-lib's canonical
ratios_check.pycompute functions, so they verify by construction —python ratios_check.pyreports 0 drift / 0 misplaced on the covered set, andpy_compileis clean.Excluded this pass: vendored
.agents/skill copies (re-propagate from canonical, don't hand-edit),frontend/,tests/(out of the checker's scope), legacy/migration trees, and 107 empty stub files (nothing to seal — these are the in-progress rootedcmbone/+core/migration stubs). Shebangs removed from 8 scripts (invoked viapython …).Context
Part of the org-wide msdmd compliance pass (see
skill-libPR #33 for the audit). The canonicalbackend/src/edcmbone/package is the bulk of what's stamped; empty migration stubs andfrontend/are deliberate follow-ups.🤖 Generated with Claude Code
https://claude.ai/code/session_016MxbhVVRcSdqBTYuvyDR5L
Generated by Claude Code