Skip to content

Fix ommer_contracts property name in application context#30

Open
oppenheim wants to merge 1 commit into
masterfrom
fix/ommer-contracts-property-name
Open

Fix ommer_contracts property name in application context#30
oppenheim wants to merge 1 commit into
masterfrom
fix/ommer-contracts-property-name

Conversation

@oppenheim

Copy link
Copy Markdown

Summary

  • Renames ContractComponentInstance.ommer_contract to ommer_contracts to match application_context_new.j2.
  • Restores the sibling-contract context block in prompts that include application_context_new.j2 (property analysis, CVL generation, property judge, Foundry, etc.).

Why

application_context_new.j2 references context.ommer_contracts, but the Python model exposed ommer_contract. Jinja resolves the missing attribute as Undefined, which is falsy, so the entire "other contracts in the application" section was silently skipped. Agents still had source tools to discover sibling contracts, but lost structured metadata (descriptions, sorts, and paths in update mode) that system analysis had already produced.

Test plan

  • Verified locally that rendering application_context_new.j2 with a multi-contract ContractComponentInstance now includes the sibling contracts section.
  • Run an AutoProve pipeline on a multi-contract project and confirm sibling contract names appear in bug-analysis / CVL-generation prompts.

Made with Cursor

Rename ContractComponentInstance.ommer_contract to ommer_contracts so
application_context_new.j2 can render sibling contract metadata in prompts.

Co-authored-by: Cursor <cursoragent@cursor.com>

@property
def ommer_contract(self) -> list[ExplicitContract]:
def ommer_contracts(self) -> list[ExplicitContract]:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants