Repository navigation
sync fork - #2
Merged
Merged
Conversation
FindingFilename cut the name at 120 bytes, which can split a multi-byte character. archive/zip only sets the UTF-8 flag on valid names, so the entry was written without it and unzip tools decoded the whole name as CP437, garbling every non-ASCII character in it.
States the trust boundary discussed in #317: - output.json's scope_distance is the integrated scanner's own verdict and is ingested as-is; in-scope events are not re-checked against ARTEX's rule set. - The enforced boundary is the task allow-list: assets reach the graph (insert_assets) only through EvaluateAssetGate, and rejects are recorded as in_scope_not_asset. - The no-allow-list case is an accepted gap, with operator guidance: configure an allow-list per task or review output.json before feeding it to ARTEX. Cross-checking ingested events against ARTEX's rule set would redefine existing scanner configurations, so it is a deliberate design question, not an accepted vulnerability. Option 2 as picked on #317; documentation only.
A turn the provider's safety system declines (Anthropic stop_reason "refusal", OpenAI-compatible finish_reason "content_filter") has no text and no tool calls. Norma passes the stop reason through and the harness ends any tool-less turn with ReasonCompleted, so the run summary said the model "ended this turn normally", and steerHooks.Stop took the empty turn for an idle one and resent the conversation up to the empty-response retry count. The LLM recorder is the one layer that sees the stop reason. It now hands each completed call's stop reason to an optional context sink (llmrec.WithStopSink). captureRunSession installs a per-run tracker (agent.WithStopTracker) on that sink. With it: - steerHooks.Stop does not inject the idle-turn rerun after a refusal; - terminalText reports "provider refusal (stop_reason ...)" and says the intent was not completed, instead of the completed wording. Other terminal states and ordinary empty turns are unchanged. Fixes #327 Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix: report provider refusals, do not rerun them as idle turns
fix(report): keep finding zip names on a rune boundary
in_scope_not_asset counts in-scope events that are not asset types, not gate rejects: a rejected candidate comes back as an insertion forbidden error in the insert_assets result. EvaluateAssetGate also applies block rules whether or not an allow-list exists, so the no-allow-list gap is about the allow rule, not the whole gate.
…d-input docs(security): document scope_distance as a trusted input
json.Unmarshal of JSON null into a map yields nil. syncBrowserMCPProxy then assigned NODE_EXTRA_CA_CERTS under traffic capture and panicked, including during NewManager on every restart once that row was stored.
trimErr cut the error text at byte 300, which can split a multi-byte character. The result is stored as llm_profile_health.last_error, and PostgreSQL rejects the invalid UTF-8, so the breaker state of a profile whose provider answers in Chinese is never persisted and the write is retried every second.
fix(llmpool): keep trimmed provider errors on a rune boundary
fix(mcp): keep MCP env a writable map when JSON is null
marshalStringArray quoted double quotes but not backslashes. In a Postgres array element a backslash escapes the following quote, so a value such as x\",evil,\"y could close the current element and inject another. Double backslashes first, matching marshalJSONBArray.
fix(db): escape backslashes in PostgreSQL text[] literals
offset+length > size wraps when length is near MaxInt64, so the cap is skipped and make([]byte, length) can exhaust memory. Compare length against size-offset instead.
insert_assets swallowed ListAssetInterceptRules and TaskInterceptRulesSplit errors and evaluated an empty rule set, which allowed every asset. A load failure now refuses the whole call. The tool result is generic; the driver error stays in the process log.
image_path was opened as a raw filesystem path, so any readable png/jpg/jpeg/webp/gif on the host could be copied into the operator transcript. The path is now resolved from the task working directory and refused when it contains .. or EvalSymlinks outside that tree.
fix(traffic): bound BlobRange without overflowing int64
fix(agent): refuse insert_assets when intercept rules cannot be loaded
fix(server): confine ask_operator image_path to the task directory
FindingsCSV wrote name, class, summary, and task text as-is. A value starting with =, +, -, @, tab, or CR is evaluated as a formula when the file is opened in Excel or LibreOffice. Those cells are now prefixed with a single quote.
fix(report): neutralize formula cells in findings CSV export
The Services tab wrote the stored asset URL into href with no scheme check. A javascript: or data: value stored via insert_assets or the asset API became a clickable link. Non-http(s) URLs now render as text.
fix(web): only http(s) asset URLs become service hrefs
Chat joined sessionID into <workDir>/sessions with no allow-list, so ".." or a separator would escape that directory. Production callers use conv-<id>, but the exported method accepted any string. Accept only [A-Za-z0-9_-] up to 64 bytes, then confirm the cleaned path still sits under sessions/.
fix(agent): reject unsafe ChatAgent session ids
POST /api/auth/change-password checked the current password with bcrypt and had no limiter. A stolen session could guess without backoff. Reuse the login limiter, keyed by client IP and by the session token, so rotating the source address with the same token still blocks. A successful change clears both buckets.
fix(server): rate-limit change-password guesses
RecordExternal wrote method and header maps into req_head/resp_head with no token or line-break check. Replay already refused those values. An ingest JSON string with \r\n became extra evidence lines. Apply the same validHeaderName and CR/LF/NUL checks before storage.
fix(traffic): reject CR/LF in ingested methods and headers
npx @playwright/mcp queries the npm registry on every start even with the package installed globally, so the image's pin did not decide what ran and offline starts failed. Seed playwright-mcp --headless --browser chromium, rewrite leftover stock npx rows once, and install the Chromium build the MCP's own playwright-core expects. Fixes #329
The stock seed was npx @playwright/mcp, but the UI mock and common invocations use npx -y, which the first pass left untouched. Also add --browser chromium to a leftover playwright-mcp --headless row, resolve the MCP's playwright-core CLI via require.resolve, and cover proxy-arg stripping so capture sync does not depend on args[0].
playwright-core's exports map does not expose ./cli.js, so require.resolve threw inside the command substitution, the outer node got an empty script path, and the build still succeeded without installing chromium v1247. Run the binary npm links for @playwright/mcp instead. Verified with docker build: both v1247 and v1248 are in the cache, and @playwright/mcp's playwright-core launches 155.0.8059.12.
fix(mcp): launch the browser MCP from playwright-mcp, not npx
ensureDatabase quoted the DSN path into CREATE DATABASE with no check. A quote in the name could close the identifier. The name is now restricted to the unquoted-identifier alphabet before quoting.
The allowlist rejected names PostgreSQL accepts, so an existing install whose database name had a hyphen, a dot or non-ASCII characters refused to start. pgx.Identifier escapes any name, which closes the injection without refusing a name that already exists.
fix(db): reject unsafe CREATE DATABASE identifiers
TaxMachine
added a commit
that referenced
this pull request
Nov 23, 2026
#1/#4 ssh_upload/ssh_download broken (fact 931): the tool input structs had NO json tags - snake_case params (local_path/remote_path) never reached the handler, producing 'local_path and remote_path are required' for every call. Single-word fields matched case-insensitively (machine, username), which is why only underscore params broke. Tagged; AST-audited the whole agent package for the same class (no other multi-word untagged tool-input fields remain); auto-tagged the simple ones found along the way. VERIFIED by task 13 end-to-end: upload + download + hash compare -> confirmed fact 1723. #2 windbg-mcp attach_process 0x80070057: upgraded the VM service v0.18.0 -> v0.24.0 (backup kept). attach_process verified live against a running process - full register state returned. Unlocks heap tools on live Office processes instead of fresh launches. #3 fuzzer WER mis-attribution (task 11's 8 fake 'unique' crashes): Get-CrashSignature now requires the 1001 event to be newer than the current case's open start (:caseStart) - late-flushed pre-campaign events can no longer be attributed to the running case. BaaRai#5 re-dispatched intents replay generate-then-read from zero: exhausted intents now settle with a resume-checkpoint fact (last remote action + 'read existing results via crash_dumps/output dirs before regenerating' guidance) recorded synchronously at settlement, where a crash/timeout cannot lose it. BaaRai#6 crash dumps split across dirs: new crash_dumps worker tool (seed v10) - one call scans the WER LocalDumps configured folder + %LOCALAPPDATA%/CrashDumps + WER ReportArchive + caller extras, newest-first with process name parsed from dump names and a since_seconds attribution fence. Replaces every intent's hand-rolled two-dir watcher. All six resolved in the backlog with root-cause notes.
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.