Skip to content

Validate and document solana-add-idl skill: InstructionView pattern, preset regeneration test #373

Description

Context

PR #367 updated InstructionView in the Solana parser core and fixed the skill drift in solana-add-idl. The skill update was committed in the main repo working tree but not yet merged into a PR.

Goal

Validate the updated solana-add-idl skill by using it to regenerate existing presets from scratch.

Structured test plan (3-commit PR)

  1. Commit 1: update the skill (merge changes from PR fix(solana): IDL presets degrade gracefully on v0+ALT accounts #367 working tree)
  2. Commit 2: delete mod.rs and config.rs for test programs (keep IDL .json files):
    • dflow_aggregator (template)
    • neutral_trade (35 discriminated instructions)
    • onre_app (38 discriminated instructions)
  3. Commit 3: regenerate with the skill, commit output

Iterate until CI passes and generated output matches existing presets.

Acceptance criteria

  • make -C src test passes with regenerated presets
  • Generated mod.rs uses InstructionView::from_context(), no resolve_accounts()
  • Generated test helpers use dummy_account_strings, not Vec

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions