Skip to content

feat(config)!: patchula.pkl at the repository root, amending PatchulaConfig.pkl - #5

Merged
sweepies merged 3 commits into
mainfrom
config/root-patchula-pkl
Oct 21, 2026
Merged

sweepies merged 3 commits into
mainfrom
config/root-patchula-pkl

Conversation

@sweepies

@sweepies sweepies commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner
  • Discovery reads only patchula.pkl at the repository root; .github/patchula.pkl is ignored (hard cutover). The engine's cached config key is versioned so servers don't keep a config found at the old path.
  • The schema module is PatchulaConfig.pkl (was Patchula.pkl), pairing with PatchulaServer.pkl; it cannot collide with patchula.pkl on macOS/Windows. The Count still supplies it when the repository has no copy; a vendored copy wins.
  • Every example, test, doc page, the README and the skill use amends "PatchulaConfig.pkl".
  • Docs fix: managers { ... } appends to the defaults; replacing the list needs managers = new Listing { ... } (same for exclude).
  • Version 0.1.2.

🤖 Generated with Claude Code


Devin Review

…-schema.pkl

Only patchula.pkl at the root invites the Count; .github/patchula.pkl is no
longer read. The schema module is now patchula-schema.pkl, so a vendored copy
cannot collide with patchula.pkl on case-insensitive filesystems. The
configuration guide also showed amending managers, which adds to the
defaults; replacing the list takes managers = new Listing { ... }.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sweepies
sweepies force-pushed the config/root-patchula-pkl branch from 5df8f6e to e49b359 Compare October 21, 2026 20:57
@deepsource-io

deepsource-io Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 61c4635...4e59dab on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Rust Oct 21, 2026 9:53p.m. Review ↗
JavaScript Oct 21, 2026 9:53p.m. Review ↗
Shell Oct 21, 2026 9:53p.m. Review ↗
Secrets Oct 21, 2026 9:53p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

Comment thread crates/cli/tests/cli.rs Outdated
let output = cli(&["config", "check", dir.path().to_str().unwrap(), "--json"]);
assert!(output.status.success(), "{output:?}");
let json: serde_json::Value = serde_json::from_slice(&output.stdout).unwrap();
assert_eq!(json["valid"], true);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Used `assert_eq!` macro with a boolean literal, consider using `assert!(..)`


Boolean comparisons in assert_eq macros are harder to read than assert.

Comment thread crates/config/tests/config.rs Outdated
let github = directory.path().join(".github/patchula.pkl");
assert_eq!(discover(directory.path()).unwrap(), Some(root));
let github_only = tempfile::tempdir().unwrap();
std::fs::create_dir(github_only.path().join(".github")).unwrap();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Using `std::fs::create_dir` instead of `std::fs::create_dir_all`


fs::create_dir_all is preferable over fs::create_dir as it creates all
missing components in the provided path without erroring out.

Comment thread crates/engine/src/lib.rs Outdated
});
config: None,
dependencies: Vec::new(),
snapshot: Default::default(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Prefer using `T::default`, over trait function `Default::default()`


Calls to Default::default() are less readable than T::default().
Using the name of the type makes it easier for the reader to discern which type is being used.

Comment thread crates/engine/src/lib.rs Outdated
dependencies: Vec::new(),
snapshot: Default::default(),
inventory: None,
controls: Default::default(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Prefer using `T::default`, over trait function `Default::default()`


Calls to Default::default() are less readable than T::default().
Using the name of the type makes it easier for the reader to discern which type is being used.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
count-patchula 4e59dab Commit Preview URL

Branch Preview URL
Oct 21 2026, 09:54 PM

@devin-ai-integration devin-ai-integration Bot left a comment

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.

Devin Review found 0 potential issues.

Devin Review

sweepies and others added 2 commits October 21, 2026 21:22
…chema changes

The action's dry run runs a released Count, so its config links to this
checkout's patchula-schema.pkl. When the action resolves "latest", mise lists
releases from GitHub directly, since the public versions mirror can lag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The schema module pairs with PatchulaServer.pkl, and still cannot collide
with patchula.pkl on case-insensitive filesystems.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sweepies sweepies changed the title feat(config)!: patchula.pkl at the repository root, amending patchula-schema.pkl feat(config)!: patchula.pkl at the repository root, amending PatchulaConfig.pkl Oct 21, 2026
@sweepies
sweepies merged commit e345380 into main Oct 21, 2026
22 checks passed
@sweepies
sweepies deleted the config/root-patchula-pkl branch October 21, 2026 22:06
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