Skip to content

Add fabricated-id guard: reject nodespace:// ids no tool result grounds - #2492

Merged
malibio merged 3 commits into
mainfrom
issue-2281-fabricated-id-guard
Sep 8, 2026
Merged

malibio merged 3 commits into
mainfrom
issue-2281-fabricated-id-guard

Conversation

@malibio

@malibio malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes E4B reports a fabricated nodespace:// id and field writes that never ran #2281: E4B narrated a fabricated nodespace:// id (and claimed a field write that never ran) after two real create_node calls succeeded. The existing anti-fabrication guards (zero tool calls, no-op writes) don't catch this shape because a real tool did run and did succeed — the fabrication is purely in how the model described it.
  • Adds a lexical guard: every nodespace://<id> reference in the model's final response text is checked against the union of ids appearing anywhere in this turn's tool call arguments and results (recursively — covers create_node/update_node's top-level id, search_nodes' nested results, resolve_query's resolved/id, etc.). Any id not in that grounded set converts the response to the existing CONFIRMATION_REQUEST, the same mechanism the other guards already use.
  • Ids are never something the model should originate — they come from a tool result or a prior turn's arguments, or they don't exist. This is a deterministic string-set check, not a model-in-the-loop heuristic, so it has no false-positive class that matters.
  • Out of scope (per the issue's acceptance criteria): extending the guard to claimed field writes not present in the turn's executions, and re-measuring the fabrication rate across several E4B reps — both are follow-up work, not blocking this fix.

Test plan

  • ungrounded_node_uris_flags_id_no_tool_ever_produced / fabricated_id_guard_converts_a_response_naming_an_invented_id — regression test using the exact reply recorded in E4B reports a fabricated nodespace:// id and field writes that never ran #2281 (verbatim fabricated id, real tool id it should have used instead)
  • fabricated_id_guard_leaves_a_response_naming_the_real_id_alone / fabricated_id_guard_does_not_fire_when_response_names_no_id — guard does not fire on grounded or id-free responses
  • Unit tests for extract_node_uris / grounded_node_uris / ungrounded_node_uris (dedup, markdown-delimiter/sentence-punctuation boundaries, nested JSON result shapes)
  • cargo test -p nodespace-agent — full package, no regressions
  • bun run test:all — 233 frontend files / 4913 tests, 4 browser test files, full Rust workspace — all green
  • bun run quality:fix — clean (eslint, svelte-check, tsc, cargo fmt, cargo clippy -D warnings)

🤖 Generated with Claude Code

https://claude.ai/code/session_0164eHb266SowSDBWtyaq3Gs

…ds (closes #2281)

E4B reported an invented nodespace:// id alongside real create_node calls —
the existing anti-fabrication guards all key on zero tool calls or writes that
persisted nothing, so a genuinely successful write narrated with a different,
made-up id passed straight through. Any nodespace:// id in the final response
is now checked against every id appearing in this turn's tool call args/results
(recursively, covering search results, resolve_query, etc.); an id absent from
that grounded set converts the response to the existing confirmation request.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0164eHb266SowSDBWtyaq3Gs
@malibio

malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Code Review Summary

This is a well-scoped, deterministic fix for issue #2281. The core mechanism — extract nodespace:// references from the response text, compare against a grounded set built by recursively walking every tool call's args/result this turn, convert to CONFIRMATION_REQUEST on any mismatch — is a clean, low-risk lexical check with no model-in-the-loop fuzziness. Real node ids are Uuid::new_v4().to_string() (verified in packages/core/src/**), which are always lowercase hex + hyphens, so the regex's exclusion set (., ,, !, ?, ;, :, backtick, whitespace, ), ]) cannot truncate or corrupt a real id — confirmed against node_uri_round_trip/node_uri_idempotent in tools.rs. All new tests pass (cargo test -p nodespace-agent --lib, 13/13 green on the new test names) and cargo clippy -p nodespace-agent --lib -- -D warnings is clean. Guard placement (after the zero-tool-call anti-fabrication guard, before narrated-tool-call/no-op-success/tool-failure-surfacing) is sound: each guard only acts on a non-empty normalized string and none of the guards re-introduce a nodespace:// substring into the text, so there is no reordering hazard or double-conversion risk.

Net positive: this closes a real gap (the existing guards all keyed on zero-tool-calls or zero-persisted-fields; neither catches "tool ran, succeeded, model narrated the wrong id"), the regression test reproduces the exact #2281 reply verbatim, and the two acceptance-criteria bullets not addressed here (extending to claimed field writes, re-measuring the E4B rate) are explicitly and correctly called out as out-of-scope follow-up in the PR description — that is a legitimate scoping decision, not a missing implementation.

One real (if narrow) gap is worth a conscious decision before or shortly after merge: grounding via tool call arguments, not just results, can be laundered.

Findings

Suggested Improvements

  • packages/agent/src/local_agent/agent_loop.rs (grounded_node_uris, near persisted_field_count): Grounding on exec.args in addition to exec.result means a model can "launder" a fabricated id by passing it as an argument to any tool call that actually executes — it never has to be confirmed real by a tool result. Concretely: model calls search_nodes({"query": "nodespace://cbaedefg-...-deadbeefcafe"}) — a real, executing call, but the argument is just an opaque string the tool doesn't validate — then references that same string in its final text. The call succeeds, the fabricated id lands in args, collect_node_uris walks it into the grounded set, and the guard never fires, despite no tool ever having returned or otherwise validated that id. The PR's own doc comment justifies including args via a narrower, legitimate case ("an id the user or a prior turn supplied and the model merely passed through — e.g. update_node(id: ...)"), but the implementation doesn't distinguish "id passed through from a prior turn" from "id invented and stuffed into an argument this turn." Given the issue's framing — "ids are never something the model should originate... they come from a tool result... or they do not exist" — result-only grounding would match that stated invariant exactly, since every tool cited (create_node, update_node, resolve_query, search_nodes) echoes the id back in its result too. Recommend either (a) restricting grounding to result only, or (b) if args grounding is intentional, narrowing it to specific well-known id-shaped argument keys (id, parent_id, node_id) rather than the whole arguments tree, plus a test demonstrating the laundering path is closed. Not a blocker — the bypass requires a more convoluted model behavior than simply asserting the id in prose, which isn't the reported failure shape — but it's a real false-negative class worth closing while the guard's contract is still being set, and it slightly undercuts the PR description's "no false-positive class that matters" framing (this is a false-negative class, not false-positive, but still a gap in the stated invariant).

  • packages/agent/src/local_agent/agent_loop.rs (guard scope): Worth a one-line comment on why grounding is scoped to all_tool_executions (this turn only) rather than also covering ids from earlier turns in the same session. As written, a later turn's response that legitimately references an id created in a prior turn — with no tool call in the current turn — would be flagged as fabricated, since all_tool_executions resets per run_turn. If cross-turn id references are reachable in the product (e.g. the model recalling a previously-created node's id from conversation history rather than re-querying it), this is a latent false-positive source worth confirming as intentional scope. If it's not currently reachable (session history doesn't feed ids back verbatim, or the system prompt requires re-resolving via tools), a short comment saying so would save the next reader from re-deriving it.

Nitpicks

  • Nit: bun.lock diff (removing "configVersion": 1) is unrelated lockfile drift, likely from a different local Bun version. Doesn't meaningfully violate the atomic-change principle (it's a no-op config field), but worth reverting or calling out so it isn't read as an intentional lockfile change later.
  • Nit: ungrounded_node_uris_flags_id_no_tool_ever_produced and the loop-level fabricated_id_guard_converts_a_response_naming_an_invented_id test exercise overlapping ground (same fabricated string, same grounding shape). Not a problem — the loop-level test is the one doing the real regression-proofing (full guard pipeline via run_guard_turn) — just noting the overlap.
  • Nit: The doc comment on collect_node_uris already acknowledges that walking the whole JSON tree grounds ids appearing in unrelated string fields (e.g. a title happening to contain the literal text). This is the same underlying "walk everything, trust everything" design choice as the args-laundering point above. Given the direction of error is deliberately favor-false-negatives-in-grounding over false-positives-in-flagging, and that tradeoff is clearly documented, this is a defensible call rather than a defect.

Verdict

Approve as a net positive. The core fix is correct, well-tested, faithfully reproduces the reported bug as a regression test, and closes a real detection gap with a cheap, deterministic check. The args-laundering gap is real but narrow, doesn't regress anything, and is easy to tighten in a fast follow-up if the team wants to close it before or after merge — it does not block this PR. No security, architectural, or correctness blockers found. Standard project conventions (no lint suppression, no backward-compat scaffolding, inline-only doc comments, Bun-only tooling) are all followed.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pragmatic code review complete (see detailed comment above). Verdict: APPROVE as a net positive. Core fix is correct, well-tested (13/13 new tests pass, clippy clean), faithfully reproduces the #2281 scenario as a regression test, and closes a real detection gap the other three guards miss. One non-blocking Improvement flagged: grounding via tool call args (not just results) permits a narrow id-laundering path — a model could pass a fabricated id as an argument to an unrelated executing tool call to get it into the grounded set without any tool result ever confirming it. Recommend tightening to result-only or specific id-shaped arg keys as a fast follow-up. No security, architectural, or correctness blockers.

…kfile drift

Two review findings addressed:

- grounded_node_uris now scans only tool RESULTS, not arguments. Grounding
  on args let a model launder a fabricated id by passing it as an argument
  to any unrelated executing call (e.g. search_nodes({"query": "nodespace://
  invented-id"})) — the call succeeds, the tool never validates the
  argument, and the id would enter the grounded set unconfirmed. This
  matches the issue's own stated invariant: ids come from a tool result or
  they do not exist.

- Added grounded_node_uris_from_history, scanning session.messages' Role::Tool
  entries (prior turns' serialized tool results, which format_tool_result
  pushes into history verbatim and which do feed back into inference). Without
  this, a response correctly recalling an id from an earlier turn — with no
  tool call in the CURRENT turn — would have been flagged as fabricated, a
  reachable false-positive the turn-scoped-only version didn't guard against.

- extract_node_uris' terminator set now also excludes `"`, since the guard
  scans raw serialized JSON (session history) as well as prose; without it,
  an id immediately followed by a JSON closing quote failed to match the
  plain grounded string.

- Reverted an unrelated bun.lock lockfile-drift diff (configVersion field)
  picked up from a different local Bun version during `bun install`.

Also addressed: PR comment noted the args-laundering gap could theoretically
worsen with the args removed if a legitimate `update_node(id: "nodespace://
abc")` pass-through relied on args grounding — verified this is a non-issue,
since every write tool (create_node, update_node) echoes the id back in its
RESULT too, so result-only grounding still covers that case.

Reviewer's other two nitpicks (test overlap between unit and loop-level
fabricated-id tests; collect_node_uris walking whole JSON trees rather than
specific keys) were left as-is — both are explicitly-documented, deliberate
tradeoffs favoring false-negatives-in-grounding over false-positives-in-
flagging, not defects.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0164eHb266SowSDBWtyaq3Gs
@malibio

malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed review feedback

Fixed:

  • args-laundering gap (Suggested Improvement) — grounded_node_uris now scans only tool results, not args. Grounding on arguments let a model launder a fabricated id by passing it as an argument to any unrelated executing call (e.g. search_nodes({"query": "nodespace://invented-id"})) without any tool ever confirming it real. Result-only grounding matches the issue's own stated invariant ("ids come from a tool result... or they do not exist") and every write tool (create_node, update_node) already echoes its id back in the result too, so no legitimate case is lost. New test: ungrounded_node_uris_does_not_flag_an_id_grounded_only_by_args.
  • cross-turn scope gap (Suggested Improvement, confirmed reachable — not hypothetical) — added grounded_node_uris_from_history, scanning session.messages' Role::Tool entries. format_tool_result serializes tool results verbatim into history, and that history feeds every subsequent turn's inference, so a response correctly recalling an id from several turns ago — with zero tool calls in the current turn — would have been wrongly flagged as fabricated under the original turn-scoped-only version. New test: ungrounded_node_uris_is_grounded_by_a_prior_turns_tool_result_in_history.
  • Extending grounding to raw serialized JSON (session history) surfaced a related boundary gap in extract_node_uris's terminator set: a double quote wasn't excluded, so an id immediately followed by a JSON closing " (e.g. "id":"nodespace://abc") failed to exact-match the plain grounded string. Added " to the exclusion set. New test: extract_node_uris_stops_at_a_json_string_delimiter.
  • Nit: reverted the unrelated bun.lock diff (configVersion field), which was lockfile drift from a different local Bun version picked up during bun install in this worktree.

Not changed (both explicitly-documented, deliberate tradeoffs rather than defects, per the review's own framing):

  • collect_node_uris still walks the whole JSON tree rather than specific keys — favoring false-negatives-in-grounding (a node title containing the literal text) over false-positives-in-flagging, which is the safer direction of error for this guard.
  • Test overlap between the unit-level and loop-level fabricated-id tests — the loop-level test is the one doing the real regression-proofing (full guard pipeline via run_guard_turn); the unit test isolates the extraction/grounding logic. Kept both for that reason.

Verification:

  • cargo test -p nodespace-agent --lib local_agent::agent_loop — 171/171 passing (added 3 new tests, all existing tests green)
  • cargo test -p nodespace-agent (full package) — all green
  • cargo clippy -p nodespace-agent --all-targets -- -D warnings -D clippy::unused-async — clean
  • bun run quality:fix — clean (eslint, svelte-check, tsc, cargo fmt, cargo clippy)
  • bun run test:all (via the pre-push gate) — full Rust workspace + frontend suite green on push. Note: one frontend perf-timing test (bulk structural operations ... complete in <80ms) flaked once under full-suite load during local iteration, unrelated to this Rust-only change (passes in isolation, and passed on both test:all runs bundled with this push) — a pre-existing timing-sensitive test, not a regression introduced here.

Pushed as 219556f8.

@malibio

malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Re-review: commit 52aaf57 → 219556f

Focused on the diff addressing the prior review's two findings (git diff 52aaf572 219556f8 -- packages/agent/src/local_agent/agent_loop.rs) plus the new surface area the fix itself opens.

Verification performed

  • cargo test -p nodespace-agent --lib — 613 passed, 0 failed, 1 ignored (full package).
  • cargo test -p nodespace-agent --lib local_agent::agent_loop:: — 171 passed, matching the PR comment's figure exactly.
  • Ran both new tests individually with --exact: ungrounded_node_uris_does_not_flag_an_id_grounded_only_by_args and ungrounded_node_uris_is_grounded_by_a_prior_turns_tool_result_in_history — both pass.
  • cargo clippy -p nodespace-agent --all-targets -- -D warnings -D clippy::unused-async — clean.
  • git diff origin/main...HEAD -- bun.lock — empty. The revert is clean; configVersion drift is fully gone.

Finding 1 (args-laundering) — confirmed fixed, test verified non-trivial

grounded_node_uris now walks only exec.result, dropping exec.args entirely (git show 52aaf572:... confirms the old signature had no session param and old grounded_node_uris walked both). The new test constructs an execution where the id lives only in args (search_nodes({"query": "nodespace://invented-id"}), result has no id) and asserts it's flagged as bad. Against the OLD code this test would fail: old grounded_node_uris walks exec.args too, so invented-id would land in the grounded set and bad would be empty, failing the assert_eq!. Confirmed non-trivial.

Finding 2 (cross-turn scope) — confirmed fixed, test verified non-trivial

ungrounded_node_uris now takes session: &AgentSession and unions grounded_node_uris_from_history(session), which scans Role::Tool messages in session.messages via extract_node_uris on the raw msg.content. The new test pushes a ChatMessage::tool_result(...) directly into session.messages (simulating a prior turn) with zero entries in executions for the current turn, and asserts the id it references is not flagged. Against the OLD code this wouldn't even compile — the old ungrounded_node_uris(text, executions) took no session parameter — so the test is unambiguously exercising new behavior, not a coincidental pass.

Item 1 — is scanning raw Role::Tool.content a "trust everything" regression one level up? No — traced and closed.

Production session.messages only ever receives a Role::Tool entry from one call site (agent_loop.rs ~line 2603-2609), and its content is always prompt_templates::format_tool_result(&tc.function_name, &result_value, is_error):

pub fn format_tool_result(_name: &str, result: &serde_json::Value, is_error: bool) -> String {
    if is_error {
        serde_json::to_string(&serde_json::json!({"error": result})).unwrap_or_default()
    } else {
        serde_json::to_string(result).unwrap_or_default()
    }
}

This is always exactly serde_json::to_string(&result_value) or the error-wrapped form — never args, never assistant-authored text, never anything else. ChatMessage::tool_result(...) (packages/nlp-engine/src/chat/types.rs) is the sole constructor that sets role: Role::Tool; grepped every other site that constructs or names Role::Tool and none of them are reachable from the live run_turn path:

  • golden/runner.rs, golden/case.rs, openai_compat_inference.rs tests — golden-case/test-fixture infrastructure, not the production loop.
  • chat/mod.rs:991 (chat_message_to_oai_value) only reads msg.content to render a template value; it doesn't construct history.
  • Critically, maybe_summarize_history (the one place that synthesizes new history content from a model-authored summary) inserts its result as ChatMessage::text(Role::System, summary_content) — Role::System, not Role::Tool. So a model-generated summary (which could in principle mention any id, real or hallucinated, in prose) is correctly excluded from the grounding scan. This was the main thing worth checking here and it's clean.

No path exists in production code that pushes a synthetic/fabricated Role::Tool entry. This closes the "reopened trust boundary" concern.

Item 2 — synthetic ChatMessage::tool_result call sites: all non-production

Grepped every call site: golden/runner.rs:167,476, openai_compat_inference.rs:773 (test), and three in agent_loop.rs test module. All are unit tests or the offline golden-case tuning harness (golden/case.rs CaseRole::Tool → Role::Tool), never reachable from a live AgentSession a real user's guard runs against. No finding.

Item 3 — regex " exclusion: correct, no false-negative introduced

Real ids are UUID v4 strings (lowercase hex + hyphens only, per the original review's verification against packages/core/src/**), so " was never a legitimate id character — adding it to the terminator class can only change where a match stops, never truncate content that should have been included. If anything this closes a pre-existing edge case for free: prose like nodespace://abc"Task" (id immediately abutting a quoted title with no space) would previously have swallowed "Task" into the extracted "id" and failed to match a grounded plain id; now it correctly stops at the quote. No false-negative class introduced; net improvement.

Item 4 — performance: real but minor, and worth a one-line comment

ungrounded_node_uris (and therefore grounded_node_uris_from_history's full Role::Tool history scan) runs on every turn with non-empty response text, not just turns where extract_node_uris(text) actually finds a nodespace:// reference — the gating check at the call site is only !normalized.is_empty(), not "response mentions an id." That means the O(history size) regex scan over every tool-result message's content executes unconditionally on the common case (most responses don't mention a node id at all), building a HashSet that's then thrown away unused.

This is bounded, not unbounded — maybe_summarize_history's existing TOTAL_TOKEN_BUDGET (32K tokens) / PREFILL_STABILITY_CEILING (8K) gates already cap total history size for an unrelated reason (context-window management), so this scan can never run over arbitrarily large history — but it's still wasted work on every no-op turn, and there's no reuse of the existing history-capping precedent here (which the task description correctly anticipated).

Suggested improvement (non-blocking): short-circuit — extract ids from text first, and only call grounded_node_uris_from_history if that's non-empty:

fn ungrounded_node_uris(text: &str, executions: &[ToolExecutionRecord], session: &AgentSession) -> Vec<String> {
    let ids = extract_node_uris(text);
    if ids.is_empty() { return Vec::new(); }
    let mut grounded = grounded_node_uris(executions);
    grounded.extend(grounded_node_uris_from_history(session));
    ids.into_iter().filter(|uri| !grounded.contains(*uri)).map(str::to_string).collect()
}

This also makes the common case (no id mentioned) allocation-free rather than building and discarding a HashSet. Not a blocker — even the worst case here is a linear regex scan over a context-window-bounded string on a background/inference-adjacent path, not a hot loop — but cheap to fix now given the function's already being touched.

Nit: stale doc comment

agent_loop.rs line ~1991, at the guard's call site: "ids are never something the model should originate... they come from a tool result (or a prior turn's args) or they do not exist" — the (or a prior turn's args) clause is left over from the pre-fix design. Args grounding was removed entirely; the actual second source is now "a prior turn's tool result, read back from session history," not args. Worth a quick word-swap so the next reader doesn't infer args grounding still exists.

Summary

Both original findings are genuinely fixed, verified by tests that are non-trivial (one would fail against the old code's logic, the other wouldn't compile against the old signature). The fix's own new surface area — raw-string history scanning and the regex terminator change — was traced end-to-end and found sound: the only production writer of Role::Tool content is format_tool_result, which is always trusted, schema-shaped tool-result JSON; the summarizer correctly keeps its synthesized text out of the Tool role entirely. The regex change is strictly a false-negative fix, not a new risk. The one real gap is a minor, non-blocking performance nit (unconditional history scan on every turn regardless of whether the response mentions an id at all) plus a one-line stale-comment nit.

Verdict: APPROVE. Net positive, closes both previously-flagged gaps correctly, introduces no new correctness or security issues. The performance short-circuit and stale-comment nit are cheap enough to fold in now but do not block merge.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review of commit 219556f (fixes commit 52aaf57's review findings). Verdict: APPROVE.

Both prior findings verified fixed with non-trivial regression tests (confirmed each would fail/not-compile against the old code): (1) grounding now scans only exec.result, closing the args-laundering path; (2) grounded_node_uris_from_history correctly closes the cross-turn scope gap by scanning session.messages' Role::Tool entries.

Traced the new surface area end-to-end: the sole production writer of Role::Tool message content is format_tool_result (always serde_json::to_string(&result) or its error-wrapped form) — never args, never model-authored text. maybe_summarize_history correctly inserts its synthesized summary as Role::System, not Role::Tool, so summarization can't smuggle model prose into the grounding scan. No path pushes a synthetic Role::Tool entry in production. The new '"' regex exclusion is a pure false-negative fix (real ids are UUIDv4, never contain a quote) with no new false-negative introduced.

cargo test -p nodespace-agent --lib: 613 passed. Scoped to local_agent::agent_loop: 171 passed (matches PR description). Both new tests pass individually. cargo clippy -p nodespace-agent --all-targets -- -D warnings -D clippy::unused-async: clean. bun.lock revert confirmed clean against origin/main.

Two non-blocking nits posted in the detailed comment: (1) ungrounded_node_uris runs the full history scan unconditionally on every non-empty response, even when the response mentions no nodespace:// id at all — a cheap short-circuit (check extract_node_uris(text) first) would avoid wasted work on the common case; (2) a stale doc comment at the guard's call site still says ids come from a tool result '(or a prior turn's args)', which is inaccurate now that args grounding was removed. Neither blocks merge.

- Short-circuit the fabricated-id guard's grounding computation when the
  response contains no "nodespace://" substring at all — semantically
  identical (extract_node_uris already returns empty in that case), but
  skips the history/result scan entirely on the common path of a response
  that never mentions an id.
- Fixed a stale doc comment on the guard that still said ids come from
  "a prior turn's args" — args grounding was removed in the previous
  commit; ids now come from a tool result, this turn or an earlier one.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0164eHb266SowSDBWtyaq3Gs
@malibio

malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed re-review nits

Both non-blocking nits from the re-review addressed in 3772b1f4:

  • Short-circuit ungrounded_node_uris's call when the response contains no nodespace:// substring at all — semantically identical (no behavior change, all 171 tests still pass), skips the grounding scan on the common path.
  • Fixed the stale doc comment on the guard that still said ids come from "a prior turn's args" — inaccurate since args grounding was removed in the previous commit.

Pure cleanup, no logic change to the guard's behavior — no further re-review needed. Ready for merge pending final approval.

@malibio
malibio merged commit 174f395 into main Sep 8, 2026
@malibio
malibio deleted the issue-2281-fabricated-id-guard branch September 8, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E4B reports a fabricated nodespace:// id and field writes that never ran

1 participant