Skip to content

Fix repository-wide generator and generated AST defects - #3

Merged
Frotty merged 3 commits into
masterfrom
codex/repository-defect-fixes
Dec 1, 2026
Merged

Frotty merged 3 commits into
masterfrom
codex/repository-defect-fixes

Conversation

@Frotty

@Frotty Frotty commented Dec 1, 2026

Copy link
Copy Markdown
Member

What changed

  • Failed list factories and detached codec decodes now release children that callers need to reuse. Tree visitors and recursive attribute clearing follow owned edges, and reference-list rendering handles null targets.
  • Cached attributes can be retried after callback failure. Circular computations converge together before publishing any results, including when a regular attribute reads a circular dependency.
  • Lists consistently replace the first matching reference, sort nested owned views while preserving parents, and respect identity-based collection membership. Tracked metadata comparison checks key membership in both directions. Snapshot creation diagnoses map keys and set members that would collapse to the same external symbol.
  • Schema generation is repeatable, recognizes the built-in Element type in ownership slots, prefixes generated attribute return types, and diagnoses inheritance cycles and generated-name collisions before emitting files.
  • The CLI reports lexer and parser errors with input locations. Companion grammars emit under their ANTLR name and preserve optional alternatives. Regeneration skips unrelated files and directories and keeps the newest generated backup.
  • Gradle runs the generator with the Java 25 toolchain, configures the CLI entry point, tracks companion grammar inputs, and publishes the declared project version. The README example uses a separate generator classpath and an acyclic generation task.

Validation

  • The original local suite passed 173 tests. The fixed suite passes 192 tests on both Java 25 and 27, including 19 new regression tests. The regressions cover the CLI, actual ANTLR compilation, generation, caches, ownership, lists, metadata, and graph snapshots.
  • Gradle assembled and launched the application and published into an isolated Maven repository under version 0.9.0. GitHub CI also runs the Java 25 and 27 matrix.
  • The audit covered the CLI, both active grammars, schema analysis, generated visitors and matchers, mutation and ownership, attributes, codecs and snapshots, metadata and revisions, Gradle and publishing, CI configuration, and the documented consumer entry point.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T21:14:25.455802Z f4a1e06 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Keep deterministic case analysis without restoring the unused containment graph. Validate symbol keys while saving the snapshot dependency order once, and retain both graph regressions.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e08883dbf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty
Frotty merged commit 5e2e9a5 into master Dec 1, 2026
2 checks passed
@Frotty
Frotty deleted the codex/repository-defect-fixes branch December 1, 2026 21:18
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.

1 participant