YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
bio-semantics
ๅบๅ ่กจ้่ช็พฉๅปบๆจก็ฎก็ท (ุฎุท ุฃูุงุจูุจ ุงููู ุฐุฌุฉ ุงูุฏูุงููุฉ ููุชุนุจูุฑ ุงูุฌููู)
Gene-expression semantic modeling pipeline โ Stan + MiniZinc + cDNA sequencing visualizer with immutable artifact provenance, PTM verification, and RPG/JCL integration templates.
Authors: Ahmad Ali Parr, Jessica L. Williams (SNAPKITTYWEST)
Architecture
BIOLOGICAL OBSERVATIONS
โ
โผ
cDNA EXPRESSION DATA
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ DATA VALIDATION โ โ semantics.py (10 validator rules)
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
GENE EXPRESSION
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ STAN MODEL โ โ Bayesian inference
โ priors โ
โ likelihood โ
โ posterior โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
POSTERIOR STATE
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ MINIZINC MODEL โ โ Constraint reasoning
โ constraints โ
โ optimization โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
COMPUTATIONAL RESULT
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ VISUALIZER โ โ dashboard.html (8 panels)
โ HTML + CSS โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
HUMAN-READABLE MODEL
Repository Structure
bio-semantics/
โโโ src/
โ โโโ semantics.py Validator + PTM parity machine
โ โโโ test_semantics.py Unit tests (6 test classes)
โ โโโ dashboard.html 8-panel semantic report viewer
โโโ spec/
โ โโโ types.ts TypeScript type definitions (bio-semantics/1.0.0)
โ โโโ contract.md Gate 1 integration contract
โ โโโ system_prompt.md Agent system prompt specification
โโโ templates/
โโโ workflow.rpgle RPG workflow coordinator (IBM i)
โโโ vault.jcl JCL vault archival template
Quantity Kinds
| Kind | Meaning | ๆ็พฉ (ุงูู ุนูู) |
|---|---|---|
| observed | Measurement with source record locator | ่งๆธฌๅผ (ุงูููู ุฉ ุงูู ุฑุตูุฏุฉ) |
| inferred | Posterior with model/run references and uncertainty | ๆจๆทๅผ (ุงูููู ุฉ ุงูู ุณุชูุชุฌุฉ) |
| derived | Deterministic transformation with algorithm references | ่ก็ๅผ (ุงูููู ุฉ ุงูู ุดุชูุฉ) |
| predicted | Unobserved modeled quantity | ้ ๆธฌๅผ (ุงูููู ุฉ ุงูู ุชููุนุฉ) |
| constrained | Declared relation or solver result | ็ดๆๅผ (ุงูููู ุฉ ุงูู ููุฏุฉ) |
| encoded | Representation with codec identifier | ็ทจ็ขผๅผ (ุงูููู ุฉ ุงูู ุฑู ุฒุฉ) |
| executed | Actual execution event with run evidence | ๅท่กไบไปถ (ุญุฏุซ ุงูุชูููุฐ) |
Validator Rules
- Reject unsupported versions, unknown discriminants, duplicate IDs
- Require exactly one of present value or missing reason
- Raw counts: canonical unsigned decimal only
- Decimal quantities: reject NaN/infinity, require units
- Require sample/gene references to resolve
- Reject inferred/predicted/constrained labeled as observed
- Preserve excluded rows with explicit inclusion map
- Missing source bytes block verified-ingestion claims
- Synthetic-origin propagation through every descendant
- Never create model-results merely because a process was scheduled
PTM: ptm-bit-parity/1
| State | Read | Write | Move | Next |
|---|---|---|---|---|
| q_even | 0 | 0 | R | q_even |
| q_even | 1 | 1 | R | q_odd |
| q_odd | 0 | 0 | R | q_odd |
| q_odd | 1 | 1 | R | q_even |
| q_even | _ | 0 | Stay | q_accept |
| q_odd | _ | 1 | Stay | q_accept |
For input length n: exactly n+1 transitions, constant auxiliary storage.
Run Tests
cd src && python -m pytest test_semantics.py -v
Gated Phases
| Gate | What | Status |
|---|---|---|
| 1. Contract | Contracts accepted, encodings documented, provenance validated | Ready for review |
| 2. Engine | Stan/MiniZinc/Quipper sources exist, native validation recorded | Not started |
| 3. Integration | All panels rendered, WORM loaded, governance preserved | Not started |
License
This project is released under a trilicense model. You may choose any one of the following:
| License | SPDX | Link |
|---|---|---|
| Boost Software License 1.0 | BSL-1.1 | LICENSE-BSL |
| GNU Affero General Public License v3 | AGPL-3.0 | LICENSE-AGPL |
| Mozilla Public License 2.0 | MPL-2.0 | LICENSE-MPL |
Unauthorized cloud SaaS redistribution without source disclosure is prohibited under all three licenses.
SnapKitty West / SNAPKITTYWEST โ Evidence or Silence โ 2026