Skip to content

Real FunctionBehavior episodes: opcode matching over-admits 99.7% on real code - #1014

Merged
AdaWorldAPI merged 1 commit into
mainfrom
claude/r2il-real-episodes
Aug 23, 2026
Merged

Real FunctionBehavior episodes: opcode matching over-admits 99.7% on real code#1014
AdaWorldAPI merged 1 commit into
mainfrom
claude/r2il-real-episodes

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

Headline

PROBE-R2IL-REAL-EPISODES-1 (5/5 green) closes the named-not-built item from Phase 2 (#1013): the frontier loop measured against the REAL ruff-side R2IL pass-1 harvest — 143 functions from real x86-64 ELF64 binaries, 17,557 typed FlatFact rows (ruff GitHub Release r2il-harvest-pass1; provenance FNV-pinned in ruff's committed .claude/harvest/r2il/PROVENANCE.md). Env-gated on R2IL_ORE_TSV; the probe exits CORPUS ABSENT rather than fabricate a stand-in.

E5: of 380 real occurrences of the top recurring opcode trigram (int_add, copy, store), exactly 1 is dataflow-chained — a happy-path opcode matcher over-admits 99.7%, against a 31.5% adjacency base rate (SSA coverage is total: 0 of 11,653 operand rows lack a ValueId, so this is a dataflow fact, not missing coverage). The top idiom is an addressing idiom, not a dataflow pipe: sequential adjacency is not composition — on real machine code the macro carrier must be the DEF-USE CHAIN, never the linear opcode window. This confirms and sharpens Phase 2's toy R6 result at real scale.

The other measured facts

  • E3 — refuted pre-registration, recorded in place: "real top-1 trigram count > shuffled" FAILED (380 vs 387) — a marginal-preserving shuffle of copy/int_add-dominated streams creates monotone (copy,copy,copy) runs. The real structure is type-collapse: 97 distinct trigram types vs 264 under shuffle (>2.7×), top-10 occupancy 50.5% vs 33.6%. Recurring idioms are real; top-1 count was the wrong statistic. The gate now asserts the measured facts (with a non-vacuous 2× margin) and pins the shuffle's top type to the predicted monotone-run artifact.
  • E4 — the Stamp mod-64 ceiling BINDS at real scale: with 143 episodes, every widely-recurring macro measurably drops evidence — (int_add,copy,store): 64 revised, 23 CHOICE-dropped (e=0.999). Conservative (never double-counts), but at real corpus size it discards ~26% of the widest idiom's evidence — a measured capacity note for the Step-2 stamp residue item.
  • E1/E2 — reader validity: the probe-local TSV reader is cross-validated EXACTLY against ruff's independently committed census (17,557 rows / 5 kinds / 9 opcodes; 143 episodes / 2 binaries / 5,340 ops partitioned). The first E1 run failed on the TSV's CamelCase kind names vs the census's snake_case — the gate working.

Honesty box

  • 2 binaries / 143 functions at the pass-1 seven-opcode convention is not "all real code."
  • The evidence TSV is READ as a measurement input — not a re-ingest into ruff's pipeline (ruff's "nothing in ruff parses them back" governs the ruff furnace).
  • No ruff_r2il import (separate cargo workspace); the schema is cited and E1 exists to catch misreads.
  • No mint, no BPE, no learner subsystem; the R2IL × BPE / OGAR-loco / V4 synthesis remains a three-IF hypothesis.
  • No performance claims — counts and rates only.

Board hygiene (same commit)

  • EPIPHANIES.md prepend: E-REAL-CODE-INTERLEAVES-THE-OPCODE-MACRO-IS-NOT-A-DATAFLOW-PIPE-1
  • INTEGRATION_PLANS.md prepend: R2IL REAL-EPISODE MEASUREMENT

Both writes assertion-verified.


Generated by Claude Code

…real code

PROBE-R2IL-REAL-EPISODES-1 (5/5 green) closes the named-not-built item from
Phase 2: the frontier loop measured against the REAL ruff-side R2IL pass-1
harvest — 143 functions from real x86-64 ELF64 binaries, 17,557 typed
FlatFact rows (ruff Release r2il-harvest-pass1; provenance FNV-pinned in
ruff's committed PROVENANCE.md). Env-gated on R2IL_ORE_TSV; exits CORPUS
ABSENT rather than fabricate.

Headline (E5): of 380 real occurrences of the top recurring opcode trigram
(int_add, copy, store), exactly 1 is dataflow-chained — a happy-path opcode
matcher over-admits 99.7%, against a 31.5% adjacency base rate (SSA
coverage total: 0 of 11,653 operand rows lack a ValueId). The top idiom is
an addressing idiom, not a dataflow pipe: sequential adjacency is not
composition, and the macro carrier on real code must be the def-use chain,
never the linear opcode window. Confirms and sharpens Phase 2's R6 at real
scale.

Refuted pre-registration recorded (E3): "real top-1 trigram count >
shuffled" failed (380 vs 387) — shuffling creates monotone copy-runs. The
real structure is type-collapse: 97 distinct trigram types vs 264 shuffled
(>2.7x), top-10 share 50.5% vs 33.6%. Gate rewritten to the measured fact,
refutation kept in place.

Stamp ceiling binds (E4): at 143 episodes the mod-64 Stamp drops ~26% of
evidence for the widest idiom (64 revised / 23 CHOICE-dropped, e=0.999) —
conservative, but now a measured capacity note for the Step-2 stamp
residue item.

Reader validity (E1/E2): probe-local TSV reader cross-validated EXACTLY
against ruff's independently committed census (17,557 rows / 5 kinds / 9
opcodes; 143 episodes / 2 binaries / 5,340 ops). First E1 run failed on the
CamelCase-vs-snake_case kind column — the gate working.

Fences: no ruff_r2il import (separate workspace; schema cited, E1 catches
misreads); evidence-read is a measurement, not a re-ingest; no mint, no
BPE, no learner subsystem; the R2IL x BPE / OGAR-loco / V4 synthesis stays
a three-IF hypothesis.

Board hygiene same-commit: EPIPHANIES
E-REAL-CODE-INTERLEAVES-THE-OPCODE-MACRO-IS-NOT-A-DATAFLOW-PIPE-1 +
INTEGRATION_PLANS entry (assertion-verified writes).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KCGhDYoQBXs3poaR7sFuqp
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@cursor

cursor Bot commented Aug 23, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_3e62cc16-1250-4924-a830-e23b8aaa4d07)

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6ac10a31-4983-4ef4-b07d-2c39e3a34ca8


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@AdaWorldAPI
AdaWorldAPI merged commit 4ec1e1b into main Aug 23, 2026
8 checks passed
AdaWorldAPI added a commit that referenced this pull request Aug 23, 2026
Board hygiene: arc-inventory rows for #1006..#1014 + gap marker for #976..#1005
AdaWorldAPI pushed a commit that referenced this pull request Aug 24, 2026
…omain slot

Two probes, one POC: PROBE-BPE-R2IL-LOCO-MICROCODE-1 (10/10) and the
companion PROBE-STAMP-MORTON-CASCADE-1 (7/7, already landed in this
branch's history, board entry now covers both together).

Headline: BPE merges over 1,872 real def-use chain occurrences save 113.4
tokens/merge vs 50.1 for the same algorithm run over the linear opcode
stream of the same episodes -- 2.3x denser compression per FnIndex domain
slot. Confirms and quantifies #1014's "sequential adjacency is not
composition" as a working compressor, not just a diagnostic.

FnIndex domain ceiling corrected: DOMAIN_FLOOR=0x90 is const-asserted
stored-byte ABI; ogar-ro already mints 22 of the 112-slot domain band, so
real headroom for a BPE-learned macro is 0xA6..0xFF = 90 slots, not
255/248. B1 measures 7 R2IL atoms consumed; B2's 33 merges leave 50 free.

B6 corrected mid-session, the most important fix in this POC: an earlier
framing had this probe invent three self-built admission gates. The real
architecture (verified in source) is MUL (contract::mul::GateDecision /
Homeostasis / FlowState) as the real gate, and the autopoiesis triangle
(ValueTenant::{FrozenStyle,LearnedStyle,ExploreStyle}) as RESONANCE-BASED
THINKING, never an RL policy -- PROBE-METACOGNITIVE-TRIANGLE-1 (#998)
already proved RungReceipt-only judging, FreeEnergyComparison::
minority_wins(), and Explore running in a counterfactual lane. B6 now
ranks candidates via shipped TruthValue::revise + Stamp only, and is
explicitly forbidden from freeze/admit/promote/gate vocabulary for its own
action -- that belongs to MUL and the triangle, never this probe.

Three exploratory cross-checks against shipped precedent, all measuring
real effects on this corpus and all labelled exploratory, never
architectural: INV1 (HighHeelBGZ's stride-as-role) 33 macros collapse into
21 role classes; INV2 (bgz17 LayeredScope's scent-prune-then-escalate) a
cheap opcode-multiset check prunes 80.2% of candidates before the
expensive exact walk; INV3 (BGZ-HHTL-D's shared-palette amortization) top
macros carry 30-80 episodes-per-mint, confirming real cross-episode reuse.

Process: the named next measurement (wider corpora) stayed blocked
(r2sleigh absent). A container restart lost the first BPE-probe worker's
entire write before it committed; re-dispatched from scratch. The
re-dispatched worker introduced two real defects (an atom-count
conflation printing chain-occurrence atom-slots, 5616, as if it were the
5340-atom corpus total; several raw Option/tuple Debug-format leaks in
printed PASS lines) -- hand-fixed by the orchestrator after a worker
fix-attempt only partially landed, reverified by recompiling to ground
truth rather than trusting either self-report.

Board hygiene same-commit: EPIPHANIES
E-BPE-OVER-DEFUSE-CHAINS-BEATS-LINEAR-AND-FITS-LOCO-1 + INTEGRATION_PLANS
entry (both assertion-verified writes). Meta-review pending -- three
consecutive dispatches died to a transient server-side API 529 Overloaded
error before any review content ran; this commit protects the verified,
gate-passing work against a further container-restart loss while the
review keeps retrying. Any finding it returns lands as a follow-up commit
before the PR opens.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KCGhDYoQBXs3poaR7sFuqp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants