Skip to content

Gate Markdown Vibescript snippets#288

Merged
mgomes merged 7 commits into
masterfrom
codex/issue-269-markdown-snippet-gate
Jun 18, 2026
Merged

Gate Markdown Vibescript snippets#288
mgomes merged 7 commits into
masterfrom
codex/issue-269-markdown-snippet-gate

Conversation

@mgomes

@mgomes mgomes commented Jun 18, 2026

Copy link
Copy Markdown
Owner

The regular Markdown docs are part of the language contract, but only runnable examples were covered before. This adds a wider compile/analyze gate for README and docs Markdown fences while keeping known unresolved syntax gaps explicit and self-invalidating.

Closes #269

@mgomes

mgomes commented Jun 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: fb0ffd3d9d

ℹ️ 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".

Comment thread internal/tools/analyze/markdown_snippets_test.go Outdated
@mgomes

mgomes commented Jun 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: 8e70599346

ℹ️ 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".

Comment thread internal/tools/analyze/markdown_snippets_test.go
@mgomes

mgomes commented Jun 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: f49dbddd89

ℹ️ 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".

Comment thread internal/tools/analyze/markdown_snippets_test.go Outdated
@mgomes

mgomes commented Jun 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: 6ddb2eebc3

ℹ️ 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".

Comment thread internal/tools/analyze/markdown_snippets_test.go
@mgomes

mgomes commented Jun 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: f2b683eb63

ℹ️ 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".

Comment thread internal/tools/analyze/markdown_snippets_test.go
@mgomes

mgomes commented Jun 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

1 similar comment
@mgomes

mgomes commented Jun 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@mgomes mgomes merged commit 1187e61 into master Jun 18, 2026
8 checks passed
@mgomes mgomes deleted the codex/issue-269-markdown-snippet-gate branch June 18, 2026 07:04

@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: 69b602ab6a

ℹ️ 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".

if err := analyzeMarkdownSnippetDeclarations(source); err != nil {
return err
}
_, err = compileAndAnalyzeMarkdownSnippet(engine, wrapMarkdownSnippet(source))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep declarations out of the fallback wrapper

For reference snippets that mix declarations with example calls, such as docs/strings.md:59, the original compile fails on the top-level call and this fallback wraps the entire snippet. That moves the def into __doc_snippet__; compileFunctionDef only stores function bodies and the evaluator reports nested FunctionStmt as an unsupported statement, so the gate passes snippets that are neither top-level-compilable nor runnable if the wrapper is called. Keep declarations top-level and wrap only the non-declaration statements instead.

Useful? React with 👍 / 👎.

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.

Markdown Vibescript snippets outside docs/examples are not compile-checked

1 participant