docker-compose.yml built ARTEX_PG_DSN by interpolating POSTGRES_PASSWORD, so
/, ?, %, @, : and spaces made the URL invalid. The server now assembles that
URL from ARTEX_PG_HOST, ARTEX_PG_PORT, ARTEX_PG_USER, ARTEX_PG_PASSWORD,
ARTEX_PG_DBNAME and ARTEX_PG_SSLMODE. An explicit ARTEX_PG_DSN still wins.
ARTEX_PG_PASSWORD is scrubbed with the other startup secrets.
The caution branch ran after the status switch, for every status. A pending
or in_progress finding with a completed fixed or inconclusive retest got a
caution lesson, while docs/rsi-lessons.md says pending and in-progress
findings produce nothing. The caution is now written in the confirmed /
resolved / fixed branch only.
A negative disposition (false_positive, duplicate, ignored, risk_accepted)
now also withdraws the cautions written from the finding's retests. The doc
says a reversed disposition withdraws the finding's evidence, including every
retest of the finding, and a caution from a retest is that evidence: it
tells the next task to recheck a finding the operator has since rejected.
Nothing in the code or the doc says a caution should outlive that. Confirming
again restores it, as for the positive lessons. Reopening (pending /
in_progress) still retracts nothing.
The negative action is the label followed by "(prior <status>)", and the
whole string was cut at 320 runes. Past about 257 runes of summary the cut
removed the suffix, so false_positive and duplicate produced the same action
and the same dedupe key: a change inside the negative group reused the old
lesson instead of writing a new one and withdrawing the old.
The label is now cut to the room left by the prefix and the suffix, so the
status is always in the action and in the key. A summary short enough to fit
gives the same action as before, so existing keys do not change.
On a task with several companies the extractor does not write, and the
negative branch passed an empty keep key. Retraction then withdrew the
finding from every negative lesson, including the one that still matched
its status, and retired an adopted lesson whose disposition never changed.
The keep test now compares the lesson action, not the dedupe key. The
action names the status; the key also carries the company, which a task
with several companies cannot rebuild. A status change inside the negative
group still withdraws the previous lesson.
The lateral join took the newest retest of a finding whatever its status.
A pending, running, failed, or stopped retest can carry a verdict the agent
staged before the run ended, and that verdict became positive or caution
evidence. The join now reads the newest retest with status='completed' and a
non-empty verdict, so an unfinished retest neither writes evidence nor hides
an earlier completed one.
The planner overview now carries finding status, and prove_goal refuses
false_positive, duplicate, and ignored findings. A lesson with no company
is visible only to tasks that also have no company. Retraction withdraws
evidence, runs on disposition change, and still runs after a task gains
a second company.
Pins are name-only behind a proxy (name-only since #370), and deny/ask rules now inspect compound commands (#377); the allow rule stays strict. Also state the untrusted-boundary default plainly.
- Introduced uniform skipping functions in the db package: SkipPGUnavailable and SkipNoPG.
- Updated all relevant test files to utilize these new functions for better consistency and readability.
- Added new db/testpg.go file to house the skipping logic.
- Created architecture and operations documentation to provide a comprehensive overview of the ARTEX system.
- Added a verification script to streamline local testing and ensure code quality.
The status line said the proxy does not apply rules yet. Replace it with
the request and response phases, what exchange_rewrites records and how
the hashes are formed (plain SHA-256, keyed HMAC for sensitive actions),
the SSE and WebSocket behaviour, the 5 MiB response pass-through, the
snapshot limits (live slots are never deleted by the TTL), and the fact
that replays go through the proxy and are rewritten like captures.
Add the ARTEX systemd unit and document PostgreSQL setup, application deployment, operations, and successful automatic startup after reboot.
Co-Authored-By: Warp <agent@warp.dev>
The task report and the findings export asserted every finding with no
qualification: nothing said how far exploitation actually reached (PoE level),
whether the claim was machine-verified (verification status and note), whether
counterevidence was recorded, or whether any traffic was bound. The web UI
badges all of it (VERIFICATION_META, the detail page), so the report — the
artifact a client actually reads — was the last surface still asserting bare
claims.
Render it from one place:
- report/quality.go (new): two constructors and two pure renderers, no I/O, no
DB handle, so the block is unit-tested without a database.
- Both surfaces call the same helpers, which is the point: the task report and
the per-finding export cannot drift apart the way duplicated formatting does.
- Missing is explicit: a finding node with no standalone row prints
"not assessed (no finding record)" instead of an invented zero — the honest
gap the existing coverage work (#207) also insists on.
- Labels match the shipped UI wording (Verification, Confidence rationale,
Counterevidence) and states are humanised ("Not assessed", "False positive"),
with an unrecognised value printed verbatim so a new state cannot silently
vanish from a report.
- Bound-traffic count appears once per document: as a Proof bullet in the task
report (it has no traffic section), and in the export only when nothing is
bound — otherwise the traffic section already states it.
- The detailed report is capped at 8 KiB in the task report only, rune-safe, with
the cap derived into the truncation message; the export is the canonical
per-finding document and is never silently shortened.
- The export keeps its document structure: the single-finding document gets
"## Detailed Report" (a section like its siblings), the multi-finding summary
gets a bold label.
Read paths only: no change to the write side of poe_level or verification_status,
no schema change (all five columns already exist), no API/DTO change (the widened
FindingMeta stays internal to the report path, and the findings list keeps
selecting only what it renders). One extra task-scoped query on GET /api/report,
because findings bodies stay off the list path.
docs/vulnerability-traffic-evidence.md §Export describes the new Markdown.
A sensitive action sent without its value took the stored value at the same
position, so two sensitive actions of the same type and header name swapped
their values when reordered. The stored action is now found by type,
canonical header name and regex, wherever it stands, and exactly one must
match: none or several is refused (400, send the value).
The CRUD test no longer expects a refusal for a reordered action.
An update that keeps the stored value of a sensitive action can no longer
change the rule's host matcher (compared case-insensitively): the value
would otherwise be written to a new destination. Same invariant as the
custom HTTP tools. The url_regex matcher is not compared, an accepted and
documented limit.
Rule model, validation, limits, sensitive actions, API and storage, with the
statement that the proxy does not apply the rules yet. The README lists the
rules among the secrets encrypted at rest.
docs/ is ignored by .gitignore; the new file is force-added like the three
documents already tracked there.
Extracts candidate lessons from terminal tasks (confirmed, negative,
retest caution), gates them on cue + action + evidence, and makes
extraction idempotent through a per-source evidence key.
ARTEX_RSI_LESSONS selects off / shadow / inject. Shadow logs what would
have been shown; inject appends a code-owned, data-not-instructions block
after the planner and worker system prompts. No prompt mutation and no
adoption: status stays candidate.
Credit: the Library admission rule comes from harness2 (Google Research,
Apache-2.0, arXiv 2610.14224); the gain taxonomy from awesome-rsi
(lobehub).
Comments, doc comments, UI labels, log and error messages, LLM prompt
strings, markdown docs, test data and assertions. Identifiers, enum
keys, routes, placeholders and code structure are unchanged.
Notes:
- docs/漏洞流量证据.md renamed to docs/vulnerability-traffic-evidence.md
- tests that exercised CJK specific handling (GBK zip names, Chinese
full text search) now use ASCII equivalents; go build passes and the
test suite matches the pre translation baseline (remaining failures
need a PostgreSQL DSN and fail identically on the original)
- frontend mention syntax now uses English kinds (finding, asset, ...)
matching the backend, chat mentions tests pass