Skip to content

Fix: skip unreadable FX chooser descriptors during qualify - #2370

Closed
ilia-murzinov wants to merge 2 commits into
repeat98:mainfrom
ilia-murzinov:fix/qualify-chooser-read
Closed

ilia-murzinov wants to merge 2 commits into
repeat98:mainfrom
ilia-murzinov:fix/qualify-chooser-read

Conversation

@ilia-murzinov

@ilia-murzinov ilia-murzinov commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

chooser_names() in scripts/octatrack-qualify.py walked every non-zero FX id and called fx_name(), which MEM-reads each descriptor. On a RAM dev twin of the release base, a tail id can point past what the development image maps; the read raises and device:test died after a machine-only trial (SEQ catalog test:procedure step 7).

The loop now stops on a zero id, skips ids whose descriptor cannot be read (continue, not break), and still returns every name it could resolve. chooser_name() matches by string, not index, so holes do not mis-name installed packages.

Guides: nothing.

Test plan

  • npm run check (or CI on this PR)
  • Unblocks SEQ 0.1.0-experimental #2348: that PR reverts this script to main until this lands or is linked.

On RAM dev twins of the release base, the FX id table can list slots whose descriptor address fails MEM read (fx_name raises). Aborting the whole list broke device:test after machine-only trials (SEQ 0.1.0). Skip unreadable rows instead of truncating the list.
@github-actions github-actions Bot added the bug Something isn't working label Nov 28, 2026
@repeat98

Copy link
Copy Markdown
Owner

Thanks for tracking this down, it unblocks SEQ nicely. Two things before it merges:

  1. Please add a changelog file (changelog/2026-11-28-<topic>.md). Every fix needs one.
  2. except RuntimeError also catches a lost USB link or any other device error, and the walk would then quietly return fewer names. Could you catch only the failed descriptor read (check that the reply is the memory-read error) and let anything else raise?

Also, which FX id and address failed on the dev twin? If the base leaves a stale entry at the end of the chooser table, I'd like to fix that in the base too.

Only ignore descriptors outside the dev USB map; other RuntimeError still raises.
@ilia-murzinov

Copy link
Copy Markdown
Contributor Author

Changelog added and the handler now catches only refused MEM reads (mem_refused: reply contains refused this MEM read). USB loss and other send() errors still raise.

Repro on the SEQ release procedure (27 Nov): twin 43ac24652a89f28b, device:test after accepted SEQ trial, qualify.run → chooser_names(1). FX1 id table at 0x40052798. The walk read names for indices 0–4, then failed on index 5: pointer word 0x40ad2454 → descriptor 0x40d43ea0, name field mem:0x40d43ea9:16 (above the dev map ceiling 0x40cfffff). The log is in /tmp/seq-procedure-release-eb667962/logs/07-unit-pass.log on the author's machine. I have not decoded which stock effect id sits in table slot 5 on that twin; if you want that word read on the unit I can capture it.

@repeat98

Copy link
Copy Markdown
Owner

@ilia-murzinov Can you maybe share your agent sessions with me so I can see what costed the most time and tokens? I want to streamline and improve your workflow :)) You can simply tell your agent inside that session to share it with me and it will upload it automatically via an endpoint on the site.

@repeat98

Copy link
Copy Markdown
Owner

Alternatively you can also run /modwerk-post-eval to open workflow improvement PRs

@ilia-murzinov

Copy link
Copy Markdown
Contributor Author

@repeat98 dumped everything here #2374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants