Open
Conversation
# Conflicts: # strix/agents/StrixAgent/strix_agent.py # strix/agents/StrixAgent/system_prompt.jinja
Contributor
Greptile SummaryThis PR delivers two interconnected features: source-aware diff-scoped testing and shared wiki memory for whitebox agents. Together they give Strix the context and focus needed to conduct high-signal whitebox security reviews in CI/PR workflows. Key changes:
Confidence Score: 5/5
Important Files Changed
Prompt To Fix All With AIThis is a comment left during a code review.
Path: tests/tools/test_agents_graph_whitebox.py
Line: 290-293
Comment:
**Misleading `context` fixture in test**
`_extract_repo_tags` only reads `agent_state.task` (via regex over `/workspace/<name>` and `github.com/.../name` patterns) — it never inspects `agent_state.context`. The test passes because `task="analyze /workspace/appsmith"` alone produces the `repo:appsmith` tag. The `context={"whitebox_repo_tags": ["repo:appsmith"]}` field is never consumed, so readers might incorrectly infer that passing explicit tags through `context` would affect note selection.
Consider removing the `context` key from the `SimpleNamespace` to keep the fixture minimal, or — if explicit tag passing via `context` is planned — implement and test that path.
```suggestion
agent_state = SimpleNamespace(
task="analyze /workspace/appsmith",
)
```
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: containers/Dockerfile
Line: 97-101
Comment:
**Non-reproducible gitleaks installation**
The `TAG` value is resolved at image build time by querying the GitHub releases API without authentication. This has two risks:
1. **Non-reproducibility**: successive builds may pull different gitleaks versions, making it hard to track exactly which version is in production images.
2. **Build fragility**: unauthenticated GitHub API calls are rate-limited (~60 req/hour). On a busy CI runner the `curl | jq .tag_name` could return an error message (or `null`), producing a malformed download URL that fails silently inside `set -eux` — or, because `set -eux` is active, aborts the entire layer.
Consider pinning to a known-good version (the approach already used for other tools in this repo):
```dockerfile
RUN set -eux; \
GITLEAKS_VERSION="8.21.2"; \
ARCH="$(uname -m)"; \
case "$ARCH" in \
x86_64) GITLEAKS_ARCH="x64" ;; \
aarch64|arm64) GITLEAKS_ARCH="arm64" ;; \
*) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \
esac; \
curl -fsSL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_${GITLEAKS_ARCH}.tar.gz" -o /tmp/gitleaks.tgz; \
tar -xzf /tmp/gitleaks.tgz -C /tmp; \
install -m 0755 /tmp/gitleaks /usr/local/bin/gitleaks; \
rm -f /tmp/gitleaks /tmp/gitleaks.tgz
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (5): Last reviewed commit: "grep" | Re-trigger Greptile |
Collaborator
Author
… sources and add related tests
Collaborator
Author
Collaborator
Author
Collaborator
Author
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.
No description provided.