Skip to content

Add embedded content checks - #121

Merged
ineedjet merged 8 commits into
mainfrom
agent/embedder-content-checks
Aug 12, 2026
Merged

ineedjet merged 8 commits into
mainfrom
agent/embedder-content-checks

Conversation

@ineedjet

@ineedjet ineedjet commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

🤖 [rubykatzen/baseline]:

Summary

  • add four declarative fragments in config/embedder.yml: message prefix, agent policy, README notice, and Dependabot config
  • expose embedder-shared.yml with JSON skip support and use it in baseline itself
  • support multiple fragments targeting the same file and keep ownership markers inside format-independent content
  • report every expectation and a full unified diff for each missing or outdated fragment

Verification

  • python3 -m unittest discover -s test -v
  • pre-commit run --all-files
  • production embedder config checked against this repository

Closes #118

@ineedjet
ineedjet force-pushed the agent/embedder-content-checks branch from c71eef2 to 381fef6 Compare August 12, 2026 00:03

@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: 3f3e680372

ℹ️ 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 config/embedder.yml
interval: daily
time: "10:00"
timezone: "Europe/Berlin"
- package-ecosystem: pip

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 Align the quick-start Dependabot config with this fragment

🤖 [rubykatzen/baseline]: When a consumer follows the newly documented setup, its Dependabot file contains only the github-actions and pre-commit entries shown in README.md, but enabling the embedder also requires this newly added pip entry and the following bundler entry as part of one exact substring. The resulting embedder workflow therefore fails on the documented configuration unless the consumer skips the entire dependabot fragment; update the example to match the enforced fragment or narrow the fragment to what the setup actually prescribes.

AGENTS.md reference: AGENTS.md:L29-L34

Useful? React with 👍 / 👎.

@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: 890cdb2260

ℹ️ 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 README.md
Comment on lines +94 to +96
The shared workflow checks repository files against the required fragments in
`config/embedder.yml`. Each named fragment has a target path and content that
must occur in that file. Multiple fragments may target the same file. Ownership

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 Add the required AGENTS fragments to quick setup

🤖 [rubykatzen/baseline]: A new consumer following this section creates only the workflow, but config/embedder.yml also requires the message-prefix and newly introduced embedded-fragments content in AGENTS.md; if that file or either fragment is absent, the first embedder run fails. Include instructions to install those fragments—or explicitly skip them—so the documented setup produces a passing workflow.

AGENTS.md reference: AGENTS.md:L29-L38

Useful? React with 👍 / 👎.

@ineedjet
ineedjet force-pushed the agent/embedder-content-checks branch 2 times, most recently from 027fbb5 to 2b55eee Compare August 12, 2026 00:36
@ineedjet
ineedjet force-pushed the agent/embedder-content-checks branch from 2b55eee to 2d7c1df Compare August 12, 2026 00:38
@ineedjet
ineedjet merged commit ed5adfe into main Aug 12, 2026
4 checks passed
@ineedjet
ineedjet deleted the agent/embedder-content-checks branch August 12, 2026 00:39

@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: 2d7c1dffac

ℹ️ 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 error:
diff = fragment_diff(name, fragment.path, fragment.content, "")
results.append(FragmentResult(name, fragment.path, "failed", error, diff))
elif fragment.content not in actual:

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 Normalize line endings before checking fragments

🤖 [rubykatzen/baseline]: When a consumer commits a target file with CRLF line endings, the configured LF fragment contains the same text but fragment.content not in actual still marks it as failed. Because fragment_diff() then calls splitlines(), the reported diff is empty, so this cross-repository check blocks CI without showing any corrective delta; normalize line endings consistently for matching and diffing.

🪟 📄 ⚠️

AGENTS.md reference: AGENTS.md:L39-L45

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.

Move Embedder into baseline

1 participant