Skip to content

fix: resolve configured priors for plain function models - #1705

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/function-config-priors
Oct 17, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/function-config-priors

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Plain functions reached the class-prior lookup as None and could not build default priors. Resolve their own config path, report missing configuration clearly, and construct function results directly while preserving the existing class-method path.

Closes #1702.

API Changes

af.Model(function) now resolves function defaults using the existing module/name config layout. Missing function configuration raises an actionable ConfigException. Both normal and frozen function models evaluate correctly. Class and initializer-method behavior is preserved. See full details below.

Test Plan

  • Full serial suite: 3,706 passed, 121 skipped, 1 xfailed.
  • Model subtree: 204 passed, including configured/explicit function priors, normal/frozen evaluation, missing configuration and initializer-method compatibility.
  • Compared against unmodified main: free, fixed and mixed model hashes, search identifiers and exact output-folder paths are unchanged.
  • GitHub Python 3.12/3.13 checks pending.
Full API Changes (for automation & release notes)

Changed Behaviour

  • Model.make_prior: standalone functions use their own config entry; missing defaults raise ConfigException with an explicit-prior remedy.
  • Model._instance_for_arguments: standalone functions are called directly; class initializer methods keep their owner allocation path.

Migration

No signature or output-identifier changes. No existing model/search folders renamed. No downstream script changes required.

Workflow

Human review and /prm required; no merge authorized. Heart readiness STALE: CI unavailable to local Heart collector, no test-run report, install verification or release validation. This is development, not release readiness. Ordinary user-authorized workflow; no independent-review claim.

Generated by the PyAutoLabs agent workflow.

@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Oct 17, 2026 — with ChatGPT Codex Connector
@Jammy2211
Jammy2211 merged commit debd95d into main Oct 17, 2026
5 checks passed
@Jammy2211
Jammy2211 deleted the feature/function-config-priors branch October 17, 2026 20:01
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 23, 2026
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.

fix: resolve configured priors for plain function models

1 participant