Skip to content

feat(ring-3): fn signatures → Zig [SEED-3] - #11

Merged
gHashTag merged 1 commit into
masterfrom
ring/3-fn-signatures
Apr 4, 2026
Merged

gHashTag merged 1 commit into
masterfrom
ring/3-fn-signatures

Conversation

@gHashTag

@gHashTag gHashTag commented Apr 4, 2026

Copy link
Copy Markdown
Collaborator

Closes #6

Summary

  • Parse fn parameter lists (name: Type pairs) instead of skipping them
  • Add parse_type_annotation() for handling pointer (*T), slice ([]T), array ([N]T), []const T, and anytype types
  • Emit full Zig fn signatures with all parameters and return types
  • 428 functions across 28 spec files generate correctly (271 with params)

Examples

pub fn trit_add(a: Trit, b: Trit) Trit {
pub fn add_fact(engine: *DatalogEngine, fact: HornClause) bool {
pub fn ternary_word_pack(src: []Trit, count: u8) TernaryWord {
pub fn compose(pattern: CompositionPattern, ml_input: []const f32, ...) CompositionResult {

Testing

  • All 28 spec files parse and generate without errors
  • Verified simple types, pointer types, slice types, const qualifiers, anytype
  • Previous rings (const/enum/struct) unchanged

phi^2 + 1/phi^2 = 3 | TRINITY

t27c gen now outputs Zig fn signatures with parameter names, types,
and return types. Adds parse_type_annotation() for handling simple
idents, pointer (*T), slice ([]T), array ([N]T), and const qualifier
types. All 28 spec files (428 functions) generate correctly.

Closes #6
@gHashTag
gHashTag merged commit 8401546 into master Apr 4, 2026
1 check passed
@gHashTag
gHashTag deleted the ring/3-fn-signatures branch April 4, 2026 10:04
gHashTag added a commit that referenced this pull request May 22, 2026
…739) (#740)

- ring-099-rust: 10-stage E2E pipeline state machine mirroring specs/pipeline/e2e_test.t27 byte-for-byte

- 763 LOC, 31 tests, all green on Rust 1.83.0

- Cross-kernel anchor #11 (FINAL): integration_phi_identity routes phi^2 + 1/phi^2 = 3 through integer projection + pow_u64 witness + pipeline progress arithmetic + mass conservation

- LOC correction: claimed 1127 -> actual 763 (R5-HONEST)

- Wave-11 series COMPLETE: all 11 narratives have honest source, 11 live anchors, claimed-only table empty

Closes #739

Co-authored-by: Trinity Agent <agent@trinity-s3ai.local>
gHashTag added a commit that referenced this pull request Jun 1, 2026
feat(ring-3): fn signatures → Zig [SEED-3]
gHashTag added a commit that referenced this pull request Jun 1, 2026
…739) (#740)

- ring-099-rust: 10-stage E2E pipeline state machine mirroring specs/pipeline/e2e_test.t27 byte-for-byte

- 763 LOC, 31 tests, all green on Rust 1.83.0

- Cross-kernel anchor #11 (FINAL): integration_phi_identity routes phi^2 + 1/phi^2 = 3 through integer projection + pow_u64 witness + pipeline progress arithmetic + mass conservation

- LOC correction: claimed 1127 -> actual 763 (R5-HONEST)

- Wave-11 series COMPLETE: all 11 narratives have honest source, 11 live anchors, claimed-only table empty

Closes #739

Co-authored-by: Trinity Agent <agent@trinity-s3ai.local>
gHashTag added a commit that referenced this pull request Jun 1, 2026
…739) (#740)

- ring-099-rust: 10-stage E2E pipeline state machine mirroring specs/pipeline/e2e_test.t27 byte-for-byte

- 763 LOC, 31 tests, all green on Rust 1.83.0

- Cross-kernel anchor #11 (FINAL): integration_phi_identity routes phi^2 + 1/phi^2 = 3 through integer projection + pow_u64 witness + pipeline progress arithmetic + mass conservation

- LOC correction: claimed 1127 -> actual 763 (R5-HONEST)

- Wave-11 series COMPLETE: all 11 narratives have honest source, 11 live anchors, claimed-only table empty

Closes #739

Co-authored-by: Trinity Agent <agent@trinity-s3ai.local>
gHashTag added a commit that referenced this pull request Aug 7, 2026
…ffect (Refs #1764) (#1906)

Registered the destination index di + result and wrote the rf from the
registered address+data (clean synchronous write); bit-exact in sim. On the
AX7203 across 8 seeds, several dead-routed and every responder still glitched,
same as baseline. Concludes the root-cause arc: every local register-based fix
(datapath endpoints cycle 97, mid-cloud cores cycle 99, write/control now) has
failed, so by elimination the seed-lottery is a global effect -- clock skew on
the fabric IBUFDS net across a large --timing-allow-fail placement, routing, or
IR-drop -- not a local logic hazard. Practical answer stays seed-search;
structural levers are a real clock tree (MMCM) or commercial P&R. Added
ruled-out #11.

Refs #1764

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
gHashTag added a commit that referenced this pull request Oct 25, 2026
Thirteen tests, P14 to P26 of the census of #12163, appended at the end of
specs/analog/sar_logic.t27 (426 added lines, no line moved) kill the other 19
test-gap survivors that batch 1 (#12237) left: #53 #73 (empty row after the
last gate), #58 #59 (log bound and capacity), #44 #45 (link wipe), #63 #64
(withdrawn edge), #107 #108 (edge on its cause), #105 #106 (pulse train),
#11, #17, #29, #35, #46, #62, #99.

The accepted file drops its 19 pending lines (58 entry lines: 26 equivalent,
the dead line 561, 31 hung). The note
docs/analog/mutation-sar_logic-2026-10-25.md carries both batches.

tri test specs/analog/sar_logic.t27: 44 tests, 44 pass, 0 fail, 0 vacuous.
Each of the 19 mutants was also applied by hand, one at a time, and turned
the intended test red. The survivor gate was not run and the seal was not
saved; the 606 killed / 28 survived forecast is not a measurement.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
gHashTag added a commit that referenced this pull request Oct 25, 2026
Thirteen tests, P14 to P26 of the census of #12163, appended at the end of
specs/analog/sar_logic.t27 (426 added lines, no line moved) kill the other 19
test-gap survivors that batch 1 (#12237) left: #53 #73 (empty row after the
last gate), #58 #59 (log bound and capacity), #44 #45 (link wipe), #63 #64
(withdrawn edge), #107 #108 (edge on its cause), #105 #106 (pulse train),
#11, #17, #29, #35, #46, #62, #99.

The accepted file drops its 19 pending lines (58 entry lines: 26 equivalent,
the dead line 561, 31 hung). The note
docs/analog/mutation-sar_logic-2026-10-25.md carries both batches.

tri test specs/analog/sar_logic.t27: 44 tests, 44 pass, 0 fail, 0 vacuous.
Each of the 19 mutants was also applied by hand, one at a time, and turned
the intended test red. The survivor gate was not run and the seal was not
saved; the 606 killed / 28 survived forecast is not a measurement.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
gHashTag added a commit that referenced this pull request Oct 25, 2026
…ed (Closes #12237, Closes #12240) (#12331)

* test(analog): sar_logic mutation test gaps closed (Refs #12237)

Batch 1 of 2 for the 108 survivors of the sar_logic mutation census
(see #12163): tests P1 to P13 appended after the last original test, so no
line number of the census moved.

- specs/analog/sar_logic.t27: 13 new tests, 187 runtime asserts, 559 lines
  added and none removed. tri test: 31 tests, 31 pass, 0 fail, 0 vacuous.
- docs/analog/mutation-accepted-sar_logic.txt: 77 entries (26 equivalent,
  1 dead line, 19 pending #12240, 31 hung); the 12 unviable mutants are
  comments. The 61 survivors the new tests kill are not listed.
- docs/analog/mutation-sar_logic-2026-10-25.md: the census, each survivor
  and its test, and what is not claimed.

Not done here: the survivor gate was not run (the After count is a
forecast, not a measurement), the seal was not re-saved, and P14 to P26
belong to #12240.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(analog): sar_logic mutation test gaps closed, batch 2 (Refs #12240)

Thirteen tests, P14 to P26 of the census of #12163, appended at the end of
specs/analog/sar_logic.t27 (426 added lines, no line moved) kill the other 19
test-gap survivors that batch 1 (#12237) left: #53 #73 (empty row after the
last gate), #58 #59 (log bound and capacity), #44 #45 (link wipe), #63 #64
(withdrawn edge), #107 #108 (edge on its cause), #105 #106 (pulse train),
#11, #17, #29, #35, #46, #62, #99.

The accepted file drops its 19 pending lines (58 entry lines: 26 equivalent,
the dead line 561, 31 hung). The note
docs/analog/mutation-sar_logic-2026-10-25.md carries both batches.

tri test specs/analog/sar_logic.t27: 44 tests, 44 pass, 0 fail, 0 vacuous.
Each of the 19 mutants was also applied by hand, one at a time, and turned
the intended test red. The survivor gate was not run and the seal was not
saved; the 606 killed / 28 survived forecast is not a measurement.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(analog): sar_logic mutation gaps closed, 608 of 677 mutants killed (Closes #12237, Closes #12240)

The survivor gate on the changed tree (jobs 3, timeout 30 s) killed 608 of
677 mutants: 26 survived, 31 hung, 12 unviable, every one of the 57 not
killed on an accepted line. It exited 2 only because two accepted lines
(592 and 597, flip-cmp in sl_init), read as equivalent, are killed by the
new tests; both lines are removed from the accepted file, the seal is
re-saved, and the note carries the measured numbers.

Refs #12163

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

[SEED-3] Ring-3: fn signatures — function headers gen to Zig

1 participant