Skip to content

Logs an onboarding child id with a bad pass suffix - #284

Merged
johnnyt merged 1 commit into
mainfrom
se-hfxf-onboarding-pass-suffix
Nov 28, 2026
Merged

johnnyt merged 1 commit into
mainfrom
se-hfxf-onboarding-pass-suffix

Conversation

@johnnyt

@johnnyt johnnyt commented Nov 28, 2026

Copy link
Copy Markdown
Member

What

The onboarding page's focus (Onboarding.focus/1) picks the newest pass's child by parsing the pass suffix of each active child's execution id. An id whose suffix did not parse was read as the first pass without any sign.

An unparseable suffix is now logged as a warning naming the child id, and is still read as the first pass. An id with no @ is the first pass's own and logs nothing. The page's behaviour for every parseable id is unchanged.

Which acceptance branch, and why

The bead accepts either a pick that reads a pass order the persistence package exposes, or a surfaced unparseable suffix with a test. The pinned statifier_persistence (0.28.0 in mix.lock) builds the id in Linkage.child_execution_id/4 and the token in Linkage.invocation/1, but exposes no function that reads a pass back out of an id or orders two ids. So the first branch is not available here, and this PR takes the second.

Logged rather than refused: a refusal would turn a degraded pick into a page error, and the focus's documented errors are the storage layer's and the unknown-setup case.

Test

a child id whose pass suffix does not parse is logged and read as the first pass creates a child under a suffix that is not <macrostep>.<round>, calls focus/1, and checks the warning names that id. Sabotage: replacing the warning with a no-op turns this test red.

Gate

mix quality green on the committed tree (format, compile, credo, dialyzer, tests).

Provenance

Engineering choice: log, do not refuse (above).

The onboarding focus picks the newest pass's child by parsing the
suffix after "@" in the child's execution id. statifier_persistence
exposes no function that reads a pass back out of an id, so the parse
stays here. An id whose suffix is not "<macrostep>.<round>" was read
as the first pass without a sign, so a change to the id shape would
have degraded the pick silently.

Such an id is still read as the first pass, and is now logged as a
warning that names the id. An id with no "@" is the first pass's and
logs nothing. A test creates a child whose suffix does not parse and
checks the warning.

Refs: se-hfxf
@johnnyt
johnnyt merged commit b103981 into main Nov 28, 2026
4 checks passed
@johnnyt
johnnyt deleted the se-hfxf-onboarding-pass-suffix branch November 28, 2026 13:25
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