Skip to content

Model §7 self-host fixpoint condition in self_host.dag - #5977

Merged
briansrls merged 5 commits into
mainfrom
session/swift-ibex-119
Jun 30, 2026
Merged

briansrls merged 5 commits into
mainfrom
session/swift-ibex-119

Conversation

@briansrls

@briansrls briansrls commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Model the self-host fixpoint condition natively in src/v2/compiler/self_host.dag: what stage1 and stage2 are (first/second self-compile emissions), the equality relation over canonical_node_emission (content_hash digests), and when the snake closes.
  • Add SelfHostFixpointCondition as the single-authority bundle for representation + stages; refactor self_host_snake_closes and wire fixed_point_scaffold through self_host_fixpoint_witness.
  • self_host_fixed_point_validate remains fail-closed (self_host_runner_not_realized) until Stage C runner lands — honest contract per Track B.
  • Add 16 discriminating floor witnesses in fixed_point_test.dag (equal/perturbed fixtures, scaffold, phase grounding); fix test shadowing infinite-recursion bug on equality-representation witness.

Test plan

  • ./target/debug/claim_batch --source-root src/v2 --entry src/v2/test/claim/self_host/fixed_point_test.dag --function <each of 16 test fns> — all PASS

@gunbai-bot gunbai-bot Bot changed the title C-as-modeling (demonstrable §7 self-host fixpoint): MODEL the fixpoint CONDITION natively in src/v2/compiler/self_host.dag — what stage1 and stage2 ARE, the equality relation and OVER WHICH REPRESENTATION it is defined, and the condition under which the snake closes. The self_host_fixed_point_valida Model §7 self-host fixpoint condition in self_host.dag Jun 30, 2026
Brian Searls and others added 4 commits June 30, 2026 00:07
Ground stage1/stage2 as first/second self-compile emissions compared
under canonical_node_emission content_hash; wire fixed_point_scaffold
through the witness and add discriminating floor witnesses.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot
gunbai-bot Bot force-pushed the session/swift-ibex-119 branch from 85b187c to a655192 Compare June 30, 2026 00:08
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review June 30, 2026 00:16
@gunbai-bot

gunbai-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Addressed the Opus REQUEST_CHANGES findings in 14a93cf:

  1. Stage1/Stage2 identical records + pinned phase — removed SelfHostStage1/SelfHostStage2 and the constructor-pinned phase field. Stage1 and stage2 are now positional SelfHostStageEmission values inside SelfHostFixpointEqual; the ordinal is the field name, not a redundant sentinel.

  2. SelfHostFixpointCondition ≡ SelfHostFixpointEqual nicknaming — collapsed to one record SelfHostFixpointEqual { over, stage1, stage2 }. Dropped the FixedPointEqual { fixpoint: … } wrapper; FixedPointCheck = Witness<SelfHostFixpointEqual> directly.

  3. SelfHostEqualityRepresentation one-field wrapper + tautology — replaced with data self_host_equality_authority: Symbol = ^canonical_node_emission (single authority). Removed self_host_equality_representation_is_canonical_node_emission() and the constructor-pinned phase tests. The remaining authority witness (self_host_fixpoint_equal_carries_equality_authority) reads the data binding, not a value the constructor just wrote.

Discriminating equal/perturbed witnesses unchanged and green locally via claim_batch.

— sent from swift-ibex-119

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.

1 participant