v0.7.0 predates the GHCR publish step, so the quick start pointed at an image that does not exist. Document that the image starts with the next tagged release and fail the release job when an anonymous pull is denied, which also catches a brand-new private package.
The skill told the agent to append to /app/data/third-party-blocklist.txt, but under agent isolation the data directory is not writable by the executor uid. HOME points at the executor home in both modes and is writable there. Follow-up to #417.
- Findings with no live asset belong to a company only through their
task's company scope; unknown or non-numeric ids match nothing.
- Filter tasks by company on the server (GET /api/tasks?company=).
- Scope the grouped findings view, the asset tree and the stat cards.
- AND company_id outside the compiled asset DSL so OR cannot escape it.
- Add the 7 company switcher keys to tr.json and zh-CN.json.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWbhPFZifkVU75uaD5NYj5
The panel had no way to scope it to one target. Companies exist as the
ownership layer, but only the task form offered one, so a second engagement
mixed into every list.
Sidebar header, under the logo: a company picker that defaults to
"All companies" and persists per browser. Every asset-backed view follows
it — findings (all three views plus the asset tree and export), the
dashboard's finding panels, the task list, the traffic list and the assets
tabs.
Server side the switch rides on the existing ownership column: findings and
traffic take a company, and the assets list takes company_id on both the
plain and the DSL path. Findings with no live asset anchor stay visible
under their company, because they belong to no other one; the strict
subtree filter would hide them from every view.
Tests: TestFindingCompanyScopeFilter (own assets, another company, a
company with none, a nonexistent id) and TestPageHostsAllowlist. Full
./db/ ./traffic/ ./server/ pass.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWbhPDnkSEFNzBXG4wDvTj
- Priority 95-96 -> 70-72, below the built-in destructive denies (80/90/100),
so 'pip install x && curl -X DELETE ...' still hits the DELETE deny instead of
being downgraded to an approval (intercept.Match is priority-DESC).
- apply-intercept-rules.sh no longer sources .env as shell (code execution / $
expansion). It reads POSTGRES_USER/DB from the postgres container's own env.
- Add a 'deny' rule for reading /app/keys, /proc/<pid>/environ and the DSN, so
the key/DSN prohibition is enforced, not prose.
- Close named regex bypasses (pip3.12, git -c, bash -c "$(curl)", curl | tar);
document the remaining open bypasses, the false positive, and the target-only
limitation in the skill.
- Add hardening/rulecheck: compiles the patterns from the SQL (RE2) and asserts
positives, closed bypasses, and documented open cases (18 cases, 0 failures).
Add opt-in intercept rules (action ask, timeout -> deny) that pause the agent
before it downloads from code/exploit hosts, runs git clone, installs packages,
or pipes remote content into a shell, plus a third-party-code-review skill
(hash, blocklist-check, read and summarize the code before running it).
Nothing is seeded: the rules change no behavior until hardening/apply-intercept-rules.sh
is run, and code the agent writes itself is not gated -- only the point where
untrusted code enters. Regex patterns are RE2 (verified to compile); the apply
script is idempotent.
Tighten existing spill blob permissions on startup, charge 32 bytes per hook range pair, and open uploads with O_NOFOLLOW on Unix. Tests cover the startup walk, the 32-byte charge and the no-follow open.
Adds docker-compose.ghcr.yml (same ARTEX + PostgreSQL stack from the released image, ARTEX_IMAGE_TAG, built-in skills), switches the docker run example to the component ARTEX_PG_* variables, documents pull-and-up updates without a checkout, and attaches provenance and SBOM attestations to the image build.
In `.github/workflows/release.yml`, the `docker` job removes the
`DOCKERHUB_ENABLED` condition, adds `packages: write` permission, logs
in to `ghcr.io` with `GITHUB_TOKEN` on `push` events, and targets
`ghcr.io/${{ github.repository }}` while keeping Docker Hub publishing
optional when `DOCKERHUB_ENABLED` is `'true'`. Image metadata adds
`type=semver,pattern={{version}}` alongside `:latest` and the git tag,
and `docker/build-push-action` passes `ARTEX_VERSION=${{ github.ref_name
}}` for `linux/amd64` and `linux/arm64` while pushing only on `push`
events so `workflow_dispatch` runs build without pushing. Because the
image builds from the repository context without prebuilt binary
artifacts, `docker` removes the `bin-linux-*` artifact downloads and
`binaries` uploads only `bin-linux-amd64` for the `release` job's Syft
SBOM scan. `README.md` documents pulling, running, and updating
`ghcr.io/baarai/artex` alongside the checkout-based Docker Compose
setup.
Fixes#466
The comment sat on the closing brace of factEvidenceLines, so Go attached it
to no declaration and godoc showed it nowhere. Noted in the review of #441.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Tests for all pure functions (extractTitle, hostOf, uniq, id0, itoa),
engine lifecycle (enqueue edge cases, cooldown, close), DNS resolution
with both real and dead-DB asset stores, HTTP probing via httptest, and
worker integration. Uses a dead-DB pattern (unreachable PG) to exercise
code paths that discard DB errors without requiring a live database.
Adds coverage_test.go exercising the matchers_export.go wrappers
(CompileMatchers, MatchHead/MatchBody, ValidateHeaderTarget, ValidToken,
ParsePathQuery, BodyAllowedForStatus, SHA256Hex, Fingerprint,
HasConnectionHeader, splitComma/trimOWS), the Set.NoteError path, the
nil-URL and nil-header branches in Apply, parseStatus edge cases, and
the resp_headers/resp_body_regex error paths in compileMatchers.
Coverage: 89.0% -> 100.0%.
os.Create follows a symlink, and Stat treats a dangling link as missing, so a
name planted in the uploads directory could redirect the server's write.
Destinations are now Lstat'd, a symlink is rejected, and the chat name search
treats a link as taken.
Ranging over a body or collection built the iteration list without calling
alloc, so a large body bypassed MaxMemory. The length is charged before the
loop, and the run stops with ErrMemoryLimit when it does not fit.
normalizeURL returned the raw string when url.Parse failed, so a password in
scheme://user:password@ survived into the asset row. The authority's userinfo
is removed before that fallback.
HTTP and raw-stream bodies written under _blobs were 0644 in a 0755
directory, so any local user could read captured traffic. New blobs are
0600 and the bucket directory is 0700. An existing blob is tightened when
it is seen again.
Cloning the default transport kept ProxyFromEnvironment. The loopback guard
then saw the proxy address, so a link-local URL could still be fetched
through that proxy. Notifications now set Proxy to nil and connect directly.
uniqueUploadPath treated every Stat error except "not exist" as "try the next
suffix". A name the filesystem rejects never becomes "not exist", so the
handler looped. The search now returns that error, and it also stops after
10000 existing suffixes.
Unsubscribing closes the channel after dropping it from the map. The fan-out
copied the channel and sent after releasing the lock, so the close could land
first and panic the process. The send now happens while the lock is still held.