Skip to content

Keep OOBI startup alive while its peer is not listening - #40

Merged
kentbull merged 1 commit into
masterfrom
fix/oobi-qualification
Nov 1, 2026
Merged

kentbull merged 1 commit into
masterfrom
fix/oobi-qualification

Conversation

@kentbull

@kentbull kentbull commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Initial OOBI connections to a peer that has not started can raise EINVAL/ENOTCONN from pinned HIO’s getpeername path and stop the scheduler. Retain the native KERIpy resolver/client ownership and reopen only that unconnected socket, preserving its queued GET. Established-connection and TLS errors still propagate.

Use that narrow OOBI client adapter in runtime and fixture startup. Repair the two recovery-fixture callers missed in #39. Extend real OOBI coverage to late-starting servers without removing any assertions or original scenarios.

Validation: 7 focused real OOBI/commit-gap cases passed, including immediate/delayed availability and declared-AID key-state gating. Full final installed-wheel and paired qualification are running before merge. This closes qualification findings from early-merged #39; the first candidate is not counted as qualified.

Final validation: fresh installed-wheel suite passed locally (258 tests) and in CI. The maintained paired workflow passed at the exact coordinated source pins and matching Oracle wheel hash, preserving witnessed issuance, nonce rejection, lost-response retry, restart, replacement, revocation/withdrawal and actual token-balance assertions. Existing dependency warnings remain.

Contain the pinned HIO initial-connect race: connect_ex can report success before getpeername raises EINVAL or ENOTCONN on an unconnected socket. Reopen only that socket and retain the queued OOBI GET. Preserve native KERIpy resolver ownership and retry/validation semantics; established-connection and TLS errors still propagate.

Exercise actual late-starting OOBI servers and accepted-key-state gating. Update both recovery-fixture receiver callers to supply the authorized producer and its key-state readiness predicate. No assertions or parameter matrices are removed.

Validation: all seven delayed/immediate OOBI and commit-gap cases pass. This follows the early-merged OOBI PR; the final installed-wheel suite and paired qualification will run on the coordinated fix revisions before closure.
@kentbull
kentbull merged commit bde5b7e into master Nov 1, 2026
1 check passed
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