Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

chore(ratios): stamp executable source with ratios bookend - #110

Merged
erinepshovel-code merged 1 commit into
mainfrom
claude/msdmd-compliance-audit-fvua9b
Jun 30, 2026
Merged

erinepshovel-code merged 1 commit into
mainfrom
claude/msdmd-compliance-audit-fvua9b

Conversation

@erinepshovel-code

Copy link
Copy Markdown
Collaborator

What

Brings edcmbone into ratios (msdmd RATIOS) compliance: every executable source file now carries the single-line ratios: 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.py compute functions, so they verify by construction — python ratios_check.py reports 0 drift / 0 misplaced on the covered set, and py_compile is 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 root edcmbone/ + core/ migration stubs). Shebangs removed from 8 scripts (invoked via python …).

Context

Part of the org-wide msdmd compliance pass (see skill-lib PR #33 for the audit). The canonical backend/src/edcmbone/ package is the bulk of what's stamped; empty migration stubs and frontend/ are deliberate follow-ups.

🤖 Generated with Claude Code

https://claude.ai/code/session_016MxbhVVRcSdqBTYuvyDR5L


Generated by Claude Code

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

Copy link
Copy Markdown
Collaborator Author

Note for reviewers: the test job failure here is pre-existing on main, not introduced by this PR. The 4 collection errors are tests importing files that don't exist in the repo (backend/src/edcmbone/metrics/{__init__,compute,orthogonality}.py, edcmbone.canon.CanonLoader) — those paths aren't tracked on main either, and this PR doesn't touch metrics/, canon/, or any of the 4 failing test files. This change is comment-only (ratios: bookends); all stamped modules compile clean and the relevant manifest check passes. Fixing the missing-module test wiring is out of scope for a ratios pass.


Generated by Claude Code

@erinepshovel-code
erinepshovel-code marked this pull request as ready for review June 30, 2026 14:59
Copilot AI review requested due to automatic review settings June 30, 2026 14:59
@erinepshovel-code
erinepshovel-code merged commit abaa537 into main Jun 30, 2026
6 of 7 checks passed
@erinepshovel-code
erinepshovel-code deleted the claude/msdmd-compliance-audit-fvua9b branch June 30, 2026 14:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/, and backend/src/.
  • Remove #!/usr/bin/env python3 shebangs from several probe scripts so the first non-blank line can be the ratios: 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants