Skip to content

[BUG][Low]- Invalid overlay model ID can panic during bake #112

Open

Description

@arthurianresolve

Summary

A named overlay can carry an out-of-range ModelRef. Overlay::set checks the value kind, then Program::bake computes a canonical hash before validation; the printer indexes the model arena with that ID and panics. This requires an overlay with an invalid model ID to be baked; the CLI overlay path is selected by its operator.

Affected code

Suggested resolution

  • Range-check ModelRef in Overlay::set and validate a baked program before computing its canonical hash.

Acceptance criteria

  • An invalid ModelRef is rejected as an overlay error.
  • Baking a valid ModelRef still succeeds.

Related issues

#67 concerns error handling generally. This ticket identifies validation of ModelRef before baking and printing.

Validation performed

Static source review of upstream main at 72b247e2bddc7337f923461fb27b4127c7d104f3. No runtime exploit or live deployment test was performed.

Fix under review

PR #103: The PR validates model references and the baked program before canonical printing.

Tracking

  • Finding ID: csf_a7fc5fb5fa6ab94d6dce2a71
  • Fingerprint: codex-security/v1:sha256:27cf019bac207a87500a1ba0dd5e301914c8ca0a210b3f6e068f83c3ab096a5c

AI disclosure

OpenAI Codex assisted with the static source review and organization of this issue. No code change is included.

Activity

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

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