organ-formula-foundry
Formula Foundry typing Core A — the legal-move generator that classifies formula input/output units into closed-set dimensions and rejects dimensionally-incoherent compositions. Use when composing formulas and needing to verify dimensional compatibility, cataloging formula banks, or checking whether one formula's output can legally feed another's input.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- organ-formula-foundry
- scope
- harness
- triggers
- [ "organ-formula-foundry", "how do I use formula-foundry", "formula-foundry usage", "formula-foundry guide", "Formula Foundry (typing core: catalog + coverage + composition type-algebra)" ]
- generated
- true
- invocation
- ability
- description
- Formula Foundry typing Core A — the legal-move generator that classifies formula input/output units into closed-set dimensions and rejects dimensionally-incoherent compositions. Use when composing formulas and needing to verify dimensional compatibility, cataloging formula banks, or checking whether one formula's output can legally feed another's input.
- source_file
- _SYSTEM/Scripts/math/formula-foundry.mjs
- source_node
- formula-foundry
03 SKILL.md 正文
<!-- GENERATED from the canonical graph node "formula-foundry" (mechanism.guide) by _SYSTEM/Scripts/yuri-guide-project.mjs. DO NOT hand-edit — edit _SYSTEM/organ-guides.json, then run: node _SYSTEM/Scripts/yuri-guide-seed.mjs && node _SYSTEM/Scripts/yuri-guide-project.mjs -->
Organ Guide — Formula Foundry (typing core: catalog + coverage + composition type-algebra)
Module: _SYSTEM/Scripts/math/formula-foundry.mjs · Layer: Energy & Math · Invocation: both · CLI: catalog, coverage, compose, composable, sequences, synth, preflight
Purpose. Formula Foundry typing CORE A — the legal-move generator. Reads the typed formula-bank cards, classifies each card's input/output UNITS into a deterministic closed-set dimension, and decides whether one formula's output may legally feed another's input. Rejects dimensionally-incoherent compositions (bits→length, probability into an energy slot) — the silent-garbage hole the engine exists to close.
Exports
classifyDimension(unitText)- in: a prose unit string (e.g. 'bits', 'joule', 'meters/second')
- out: { dimension, witness } — closed-set dimension + the matched witness token (or null)
dimensionsCompatible(a, b)- in: two dimension strings (from classifyDimension)
- out: { compatible, confidence, reason }
catalogFormulas(opts = {})- in: optional { bankDir }
- out: { cards, count, banks, skipped } — unified read-view over the typed formula-banks; corrupt banks are listed in skipped
async coverageReport()- in: none (reads banks + math-kernel exports)
- out: { boundCount, kernelExportCount, unboundPrimitives, orphanCards, cardCount } — the kernel-fn↔bank-card binding worklist
composeCheck(cardA, cardB)- in: two catalog card objects
- out: { legal, compatibleSlots, reasons, from, to, outputDim } — whether A's output may legally feed B
composableTargets(cardA, catalog = null)- in: one card + optional pre-loaded catalog
- out: array of legal downstream targets { to, slots, outputDim }
composeOperatorSequences(catalog = null, opts = {})- in: optional catalog + { min/max chain length, branching, domain filters }
- out: { sequences, count, truncated, truncation, params } — enumerated legal operator chains
synthesizeFormulaCandidates(opts = {})- in: optional catalog + synthesis constraints
- out: { candidates, count, truncated } — research-status candidates
draftFormulaBankCard(candidate)- in: a synthesized candidate
- out: a research-status bank card (promotionStatus:'research', advisoryOnly:true, implementedBy:null)
proofPreflightCandidate(card, opts = {})- in: a draft card + optional overrides
- out: { inert, hasBinding, reason, promotionStatus, advisoryOnly, validationOk, validationErrors }
Security boundary
READ-ONLY over the formula-bank files; mints NO production cards. Synthesis output is INERT — promotionStatus:'research', advisoryOnly:true, no kernel binding — and cannot promote until someone binds a real kernel symbol AND a green worked example clears math-proof-gate (Core B). No protected-path access. Deterministic: no RNG, no clock, sorted iteration, closed-set classification.
When to use
Auditing math coverage (which kernel primitives are unbound / which cards are orphaned), checking whether two formulas can legally compose, enumerating legal operator chains, or prototyping new formula candidates by dimensional rules. The upstream typing gate before math-proof-gate validates.
Gotchas
- Dimension classification is keyword-based over a CLOSED set; short tokens (≤5 chars) require full word boundaries to avoid collisions with ordinary English (F-1 hardening).
- UNKNOWN dimensions are treated as compatible-by-default (cannot be disproven) — an UNKNOWN slot is not a rejection.
- Synthesized candidates are INERT and advisory; they NEVER auto-promote — binding + proof-gate is a separate manual step.
- Corrupt bank files are silently skipped; the only visibility of lost cards is the
skippedfield of catalogFormulas. - Generator (synthesize) and scorer (bakeoff) are deliberately separate modules — this core does not grade its own candidates.
Session Notes
2026-06-13
- session: 40m | peak ctx: 0% | compacts: 0
- tools: Bash×824, Read×163, Edit×17, StructuredOutput×16, Write×8, TodoWrite×4, ToolSearch×2, ScheduleWakeup×2, Workflow×1, mcp×1, AskUserQuestion×1
- corrections: none
- errors: none
04 同仓库更多 Skills
executing-plans
Use when you have a written implementation plan to execute in a separate session with review checkpoints
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
triage
Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.
trade-edge-audit
The EDGE LENS for trading peers — recalls EVERY factor/indicator running from the live forecast ledger (no enumeration) and renders the whole pile through the edge arsenal off ONE call: multi-horizon scoring (the ladder) + deflated Sharpe (overfit) + Benjamini-Hochberg FDR (multiple-testing across the fleet) + spread-bounce + maker-fee falsification, then ranks only what survives ALL of it. Use when a peer must answer "does ANY running factor have real, overfit-corrected, multiple-testing-corrected, fee-surviving edge, and at which horizon" without hand-assembling 6 tools. The trade-engine analog of quantum-hypothesis-simulation.
trade-decision-sim
The DECISION LENS for trading peers — recalls the CURRENT signal snapshot per market from the live ledger and renders it through the sim arsenal off ONE call: quantum factor-circuit order-optimal sequencing + decision-sim CVaR-robust sizing, sized against the MEASURED per-factor edge (from the edge-audit), correlation-aware. Emits an actionable call per market {side, sizePct, confidence, sequence}. Flat/zero-size when there is no measured edge after cost — the honest default. Sibling of trade-edge-audit (the EDGE lens); the trade-engine analog of quantum-hypothesis-simulation for a live decision.
to-issues
Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.