byan-suitability
Advisory model-suitability ledger — record adversarial verdicts, read learned ratings, human decides downgrades
- License 许可
- MIT
- 最近更新
- 2026-09-14
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- byan-suitability
- description
- Advisory model-suitability ledger — record adversarial verdicts, read learned ratings, human decides downgrades
02 资源文件 23
- 参考文档references/guidelines/by-app-type/ai_apps.md1.9 KB
- 参考文档references/guidelines/by-app-type/all_apps.md2.6 KB
- 参考文档references/guidelines/by-app-type/crypto_finance.md1.9 KB
- 参考文档references/guidelines/by-app-type/games.md1.8 KB
- 参考文档references/guidelines/by-app-type/health_fitness.md1.8 KB
- 参考文档references/guidelines/by-app-type/kids.md1.4 KB
- 参考文档references/guidelines/by-app-type/macos.md2.2 KB
- 参考文档references/guidelines/by-app-type/social_ugc.md1.8 KB
- 参考文档references/guidelines/by-app-type/subscription_iap.md2.0 KB
- 参考文档references/guidelines/by-app-type/vpn.md818 B
- 参考文档references/guidelines/README.md9.6 KB
- 参考文档references/rules/design/minimum_functionality.md3.8 KB
- 参考文档references/rules/design/sign_in_with_apple.md2.8 KB
- 参考文档references/rules/entitlements/unused_entitlements.md3.3 KB
- 参考文档references/rules/metadata/accurate_metadata.md2.2 KB
- 参考文档references/rules/metadata/apple_trademark.md4.0 KB
- 参考文档references/rules/metadata/china_storefront.md3.2 KB
- 参考文档references/rules/metadata/competitor_terms.md1.8 KB
- 参考文档references/rules/metadata/subscription_metadata.md3.0 KB
- 参考文档references/rules/privacy/privacy_manifest.md3.3 KB
- 参考文档references/rules/privacy/unnecessary_data.md2.5 KB
- 参考文档references/rules/subscription/misleading_pricing.md3.0 KB
- 参考文档references/rules/subscription/missing_tos_pp.md2.2 KB
03 SKILL.md 正文
BYAN Model-Suitability Ledger (advisory)
This skill operates the model-suitability ledger: a registry, keyed by
(model x leaf), that learns from outcomes whether a CHEAP model is safe on a
given workflow leaf. It is the learning layer that sits ABOVE the static
conservative default and the linter floor — it does not weaken either. It only
advises; a human decides whether to keep, watch, or demote a downgrade.
What this is NOT
- It does not edit
.claude/workflows/*.js. Zero auto-edit of routing. - It does not touch the linter floor (
workflows-lint.js). The floor still blocks a protected-leaf downgrade at commit time, regardless of the ledger. - It does not auto-promote or auto-demote. The verdict is a recommendation for a human, not an action. (Auto-promotion is a deferred phase-2 capability and was deliberately killed in design review: a hot-hand streak must not slip a downgrade past human review.)
The math (why a thin sample does not say "keep")
Each (model x leaf) pair holds a Beta-Bernoulli posterior over the cheap
model's adequacy rate. The verdict reads the credible interval, not the point
estimate:
keep-cheap— the credible LOWER bound is at or above the keep threshold (default 0.85). Only sustained success earns this (~30 clean outcomes).demote— the credible UPPER bound is at or below the demote threshold (default 0.70). Clear evidence the cheap model fails too often.watch— anything in between, including every thin sample. A wide interval (low n) lands here, so "92% over 3 runs" reads aswatch, notkeep-cheap.
The report surfaces the lower bound and n by design, not a bare percentage,
because the same point estimate means different things at n=3 and n=300.
Wiring — feeder B (the hybrid pattern)
The signal is the adversarial VALIDATE pass: N skeptics (an odd panel, e.g. 3) each try to REFUTE that the cheap model is adequate on one downgraded leaf. A leaf is flagged (cheap inadequate) when at least half refute.
A .claude/workflows/*.js script cannot call MCP tools or write state (the
sandbox / state-coupling rule). So the wiring is hybrid:
- The adversarial pass returns its per-leaf verdicts as DATA:
[{ model, leafId, refutedVotes, totalVotes }, ...]. - On the main-thread turn (where MCP tools fire), map each verdict to an
outcome with
verdictsToOutcomesfrom_byan/mcp/byan-mcp-server/lib/suitability-feeder.js(success = the cheap model survived the panel). - For each outcome, call the MCP tool
byan_suitability_record({ model, leafId, success, source: 'adversarial-pass' }). This is the only write path to the ledger;recordis best-effort and does not throw.
Reading the ledger
- MCP:
byan_suitability_report(optionalmodelfilter) — returns advisory rows, most-actionable first, each with the lower bound,n, and a verdict. - CLI:
node _byan/mcp/byan-mcp-server/bin/byan-suitability.js [--model haiku] [--json]— the same data, read-only.
Honest caveat
Today only a handful of exploration leaves are downgraded, and all are already
cheap, so the ledger produces little actionable signal in the short term. This
is foundation — an evidence rail for when the workflow leaf-set grows — not an
immediate token win. Do not oversell a keep-cheap on a thin n.
04 同仓库更多 Skills
byan
BYAN local project skill. Use when working in the BYAN repo, invoking BYAN agents/workflows/commands, enforcing BYAN Strict Mode, or needing the portable BYAN filesystem map.
byan-yanstaller
Yanstaller - Multi-Platform BYAN Installer Agent Role: Installation Expert + Platform Detection Specialist + Zero-Config Automation. Invoke when user mentions : AUTO, DETECT, HELP, EXIT.
byan-tea-tea
tea agent
byan-strict
Enforcement mode that prevents scope downgrade and forces the agent to self-verify its work against the originally locked request before delivering. Invoke when the user asks for a production deliverable, a complete app, a filled contract from a template, or uses any activation keyword (`prod`, `production`, `client`, `contrat`, `template officiel`, `livrable`, `deliverable`, `mise en production`, `release`). Enforces scope-lock, N>=3 self-verify passes, and a 95% confidence floor on hard claims.
byan-skeptic
Scientific Claim Challenger and Epistemic Guard
byan-rachid
NPM/NPX deployment specialist for BYAN installation Role: NPM/NPX Deployment Expert.