Fix #116: Ship a reusable cross-repo schema drift CI gate (prevent future forks) - #118
Merged
Conversation
Contributor
Author
SummaryCross-repo schema-drift gate is logically sound and well-covered by tests in both languages; only minor defense-in-depth and CLI-UX suggestions, no blockers. Severitylow Blocking findings
Verdict✅ Approved Merge risklow Audit
{
"approved": true,
"severity": "low",
"summary": "Cross-repo schema-drift gate is logically sound and well-covered by tests in both languages; only minor defense-in-depth and CLI-UX suggestions, no blockers.",
"findings": [
{
"file": ".github/workflows/schema-drift.yml",
"line": 50,
"issue": "inputs.package-version is interpolated directly into the pip-install shell command (and again at line 68 for npm). The workflow_call trust model is the main guardrail, but a consumer that pipes an untrusted value into this input gets shell injection; prefer passing the value via an env: var and referencing $VAR.",
"kind": "suggestion"
},
{
"file": "bin/cli.js",
"line": 65,
"issue": "The --version branch is unreachable for the documented invocation: `wasmagent-protocol --version` leaves args.command === null, so the guard at line 61 prints help and returns 1 before the version check runs. Reorder the version check ahead of the command-null check.",
"kind": "suggestion"
},
{
"file": "src/wasmagent_protocol/drift.py",
"line": 185,
"issue": "depends_on_package treats any bare occurrence of the string \"wasmagent-protocol\" anywhere in pyproject.toml as a dependency, so a comment/tool-config mention would falsely satisfy the check and suppress a legitimate no-package-dep violation; parse the [project] dependencies list instead of a substring test.",
"kind": "suggestion"
}
],
"merge_risk": "low",
"Model": "opus",
"model": "claude-cli",
"effort": "high",
"tokens": {
"input_tokens": 0,
"output_tokens": 0
},
"same_verdict_count": 1
} |
Contributor
Author
|
Merge gate failed: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #116
Generated by claude-bot-go worker.