Skip to content

Dev - #10

Merged
ar4ntic merged 8 commits into
mainfrom
dev
Jun 2, 2026
Merged

Dev#10
ar4ntic merged 8 commits into
mainfrom
dev

Conversation

@ar4ntic

@ar4ntic ar4ntic commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Symlink rejection and scan limits change import/sync behavior on unusual trees; privacy heuristics may produce noisy doctor warnings without changing sync data.

Overview
Bumps the workspace to 0.1.2 and tightens how AgentMesh reads repos and talks to adapters, alongside several module extractions and CI tweaks.

Safety and dependencies: Entity import/sync and shared collect_entity_files now avoid following symlinks and enforce depth, file-count, and byte limits. Adapter JSON-RPC reads reject oversized Content-Length values before allocating the body. jsonschema is built with default-features = false, which removes a large HTTP/TLS dependency tree from the lockfile.

Doctor: Health reporting moves into pipeline/doctor.rs and gains lockfile privacy warnings when entity IDs, paths, lineage, or override keys look credential-like, with a new lockfile_privacy_warnings count on DoctorHealth.

Refactors: Runtime hook install/remove logic is split into hooks.rs for Claude, Codex, the CLI, and the watcher’s OS service registration; frontmatter handling moves into the adapter SDK’s frontmatter.rs. .gitignore adds .ai/ and agentmesh.lock; installer CI runs installers/test-install.sh.

Reviewed by Cursor Bugbot for commit 5fb06d3. Bugbot is set up for automated code reviews on this repo. Configure here.

ar4ntic added 8 commits May 31, 2026 10:54
…, enhance file handling in adapters, and improve privacy checks in the pipeline
Extract CLI inspection and hook management into focused modules, move core doctor reporting behind pipeline/doctor.rs, and isolate watcher service registration. Split adapter hook handling and SDK frontmatter helpers while preserving the existing public APIs and behavior.

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5fb06d3. Configure here.


const MAX_ENTITY_TREE_DEPTH: usize = 32;
const MAX_ENTITY_FILE_COUNT: usize = 1024;
const MAX_ENTITY_TOTAL_BYTES: u64 = 64 * 1024 * 1024;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Entity limit constants duplicated across two crates

Medium Severity

MAX_ENTITY_TREE_DEPTH, MAX_ENTITY_FILE_COUNT, and MAX_ENTITY_TOTAL_BYTES are defined with identical values in both agentmesh-adapter-sdk-rust and agentmesh-core::pipeline. These represent the same security limits for the same kind of operation (entity file collection). If one is updated without the other, adapters and the pipeline would enforce inconsistent limits, potentially causing sync failures for entities that pass adapter import but are rejected by the pipeline (or vice versa).

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5fb06d3. Configure here.


fn relative_or_path(workspace_root: &Path, path: &Path) -> PathBuf {
workspace_relative(workspace_root, path).unwrap_or_else(|_| path.to_path_buf())
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Identical helper function duplicated across both adapters

Low Severity

The relative_or_path function is identically defined in both the Claude and Codex adapters. This new utility (a fallback wrapper around the SDK's workspace_relative) was introduced in this diff in both places simultaneously. It belongs in the adapter SDK alongside workspace_relative, where both adapters already import their shared helpers from.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5fb06d3. Configure here.

@ar4ntic
ar4ntic merged commit 05960c2 into main Jun 2, 2026
7 checks passed
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