Skip to content

fix: read mistyped tree text values instead of failing the tree (0.1.35) - #131

Merged
EYH0602 merged 1 commit into
feat/agent-cli-interfacefrom
fix/130-tree-field-tolerance
Oct 19, 2026
Merged

EYH0602 merged 1 commit into
feat/agent-cli-interfacefrom
fix/130-tree-field-tolerance

Conversation

@EYH0602

@EYH0602 EYH0602 commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #130. Follows #129 (merged).

Problem

After #128, two research ARAs still failed the whole exploration tree with ARA100, so every structural read refused them:

ARA Source Error
DissClaimer evidence: item - 7258910 (an all-digit short SHA) did not match any variant of untagged enum Evidence
MSI alternatives: item - Build on Debian 12 … (rejected: …). (a one-key mapping) expected string scalar

Change (0.1.35)

  • evidence scalars: Evidence has a hand-written Deserialize. List items keep their source spelling ([be13e96, 7258910, 0123456]) with no warning, like any other text field.
  • Recovery fallback: if serde-saphyr fails on the tree, flat_yaml::parse retries through the arena. It keeps that result only if the arena recovered at least one value. In a node text field (TEXT_FIELDS), a value YAML did not type as a string is read as its exact source text: a bare numeric evidence:, a mapping, or a list in a scalar field. Each recovery warns ARA230 non-text-tree-field at trace/exploration_tree.yaml:line. Trees that loaded before load byte-identically.
  • Identity fields stay strict: id, type, parent, also_depends_on, and non-text fields such as isolated and same_as still fail with ARA100.
  • ARA230 does not refuse reads (D1): the recovered text is exactly what the author wrote, so reads stay complete and exit 0 with the warning in diagnostics.
  • New format rule ARA008 unquoted-tree-scalar, tree only (D2): ara check --fix single-quotes one-line values and doubles any inner '. Multi-line values are reported without a fix. The fix guard requires no new errors, an unchanged normalized manifest, and one fewer ARA230.

Design doc: docs/agent-cli-interface/24-tree-field-tolerance.md.

Tests

  • crates/ara-core/tests/tree_field_tolerance.rs: evidence spellings and nulls, mappings and flow lists, multi-line values, strict identity fields, the deep-tree arena path, and ARA008 lint plus fix_dir with manifest equality.
  • crates/ara-cli/tests/agent_tree_field_tolerance.rs: both One mistyped tree value refuses the whole artifact (ARA100): keep scalar source text and degrade field mismatches to warnings #130 reproductions (they fail on 0.1.34) and a spelling guard.
  • agent_reads.rs: the identity-lookup fixture used a mapping in description to force a failure. It now uses isolated, which stays strict.
  • cargo test --workspace (1193 tests), cargo clippy --workspace --all-targets --locked -- -D warnings, cargo fmt --check and scripts/embed-viewer.sh --check all pass.

Real ARAs, 0.1.34 → 0.1.35

DissClaimer and MSI go from invalid_artifact (ARA100) to readable. DissClaimer reports no ARA230. MSI reports one, at line 5859, and ara check --fix on a copy quotes exactly that line. mandate, mandate-eval (ARA105) and AgentFuzzBench (ARA112) still refuse; those are data errors, filed on their repos.

…35) (#130)

evidence keeps a plain scalar's source spelling like other text fields.
A non-string value in a node text field is read as its exact source text
with ARA230 (failure-only fallback; trees that loaded are unchanged).
New fixable ARA008 quotes one-line values. Identity fields stay strict.

Co-Authored-By: Claude <noreply@anthropic.com>
@EYH0602
EYH0602 force-pushed the fix/130-tree-field-tolerance branch from de1a312 to 95e5219 Compare October 19, 2026 15:26
@EYH0602
EYH0602 changed the base branch from fix/128-readable-real-aras to feat/agent-cli-interface October 19, 2026 15:26
@EYH0602
EYH0602 merged commit 8fb34ea into feat/agent-cli-interface Oct 19, 2026
17 of 26 checks passed
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.

1 participant