Status: executable v0.1
Date: 2026-08-28
Authority: observation and bounded recommendation only
IDKMesh now uses three complementary mathematical control surfaces:
persistent Bayesian history
+
recomputed Repository Evolution Observatory
+
live Pareto/UCB Repository Mathematical Portfolio
|
v
conjunctive bounded recommendation
|
v
independent verification + external GitHub governance
They answer different questions and must not be collapsed into one score.
Canonical files:
scripts/evolution_math.pyscripts/evolution_score.pystate/evolution-state.jsonstate/evolution-math-policy.jsonThis layer accumulates uncertain historical event evidence in Beta beliefs, preserves trusted default-branch state through replayable artifacts, reports posterior confidence bounds, activity diversity, and a Lyapunov-style homeostatic diagnostic.
It is historical evidence, not causality.
Canonical files:
scripts/evolution_snapshot.pyscripts/repository_evolution_score.pyconfig/evolution-policy-v1.jsontests/test_evolution_observer.pydocs/architecture/REPOSITORY_EVOLUTION_OBSERVATORY.mdThis layer recomputes current repository state from bounded public GitHub metadata. It combines:
GUARD, VERIFY, and CONSOLIDATE;It intentionally stores structural metadata rather than issue/PR/comment bodies.
Canonical files:
scripts/repository_portfolio.pystate/repository-portfolio-policy.jsonstate/repository-portfolio-state.json.github/workflows/repository-math-portfolio.ymlThis layer ranks current open work with:
It allocates attention, not integration rights.
Canonical file:
scripts/conjunctive_evolution_control.pyThe controller combines conservative Bayesian confidence with the recomputed live decision.
For the Bayesian verification belief:
verification_lower = mean - z * sqrt(variance)
and for Bayesian risk debt:
risk_upper = mean + z * sqrt(variance).
The initial confidence thresholds are derived from the existing homeostatic policy rather than adding new arbitrary constants:
verification_floor
= verification_target - verification_scale
risk_ceiling
= risk_target + risk_scale.
The live capacity threshold comes from config/evolution-policy-v1.json.
A stronger bounded non-integrating experiment is only a candidate when all are true:
no current live blockers
AND live mode is not GUARD
AND conservative verification confidence >= verification floor
AND conservative risk upper bound <= risk ceiling
AND live review capacity >= configured minimum
AND live mode is EXPLORE, ONBOARD, or INTEGRATE.
Even then:
integration_authority = false
merge_authority = false
approval_authority = false
branch_mutation = false
spending_authority = false
The central invariant is:
live hard blocker = true
=> stronger experiment candidate = false
regardless of historical Bayesian fitness or confidence.
Therefore, while GitHub reports the canonical branch unprotected:
main_unprotected -> GUARD -> no escalation candidate.
Issue #35 remains the external administrative gate.
The merged Repository Evolution Observatory improved live-state measurement but temporarily replaced the artifact-backed Bayesian update in .github/workflows/evolution-loop.yml.
The converged workflow restores Bayesian persistence without removing the new observatory.
On each trusted observation it:
evolution-checkpoint-v2-<run-id> artifact;evolution-checkpoint-v2-* artifact.Ordinary pull_request runs are excluded by event type, not inferred safe from a
branch name. Once a checkpoint has been selected, download, manifest, or semantic
validation failure aborts the run; only the absence of any eligible checkpoint
permits the deterministic repository seed.
Live API observation and proposed-code testing are separated.
For PR metadata, the live observers use pull_request_target and:
Direct pull_request_review events do not run the checkpoint-producing observer.
Review state is refreshed by trusted PR-target lifecycle events and scheduled snapshots.
pull_request_target may publish advisory run output, but it is excluded from the
persistent-checkpoint source allowlist; only issue, push, manual, and scheduled
default-branch executions can extend canonical v2 state.
Review coverage counts only the latest non-author, non-bot APPROVED or
CHANGES_REQUESTED review attached to the PR’s exact current head SHA; approvals
remain a separate signal.
Ordinary pull_request jobs:
contents: read only;The same separation is applied to the Repository Mathematical Portfolio.
Artifact-backed observer state cannot safely have two concurrent successors restoring the same parent checkpoint.
Canonical checkpoint-producing observers therefore use one repository-level
concurrency group with cancel-in-progress: true. Advisory
pull_request_target observations use a separate concurrency group because
they cannot become checkpoint parents; a merge-close advisory run must not
cancel the canonical observation triggered by the same merge’s main push.
The semantics are explicit:
this is a latest-state observer, not a lossless accounting ledger of every GitHub event.
Rapid event bursts converge to the newest current-state observation. This avoids forked Bayesian/portfolio artifact histories until IDKMesh has a transactional state store.
The core mathematical workflows pin reviewed Action versions to immutable commits:
actions/checkout
3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
actions/setup-python
5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
actions/upload-artifact
043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
actions/download-artifact
3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
The live observatory measures the repository-wide pin ratio, so hardening these workflows does not become a false statement that all repository workflows are already fully pinned.
stars != correctness
forks != correctness
raw comments != correctness
raw commits != improvement
Bayesian score != causality
Pareto rank != approval
UCB focus != trust
replicator mass != integration authority
Current hard guards and independent verification remain necessary regardless of activity or popularity.
The next major mathematical advance should be calibration, not more unmeasured formulas.
The repository now retains enough replayable state to join historical decisions to delayed outcomes such as:
Candidate predictive models should then be compared on held-out data using calibration error, Brier score, log loss, ranking regret, and uncertainty coverage.
Only after that evidence exists should experiment allocation move from proxy UCB toward contextual bandits or Thompson sampling driven by measured outcomes.