Repository navigation
fix: read mistyped tree text values instead of failing the tree (0.1.35) - #131
Merged
Merged
Conversation
…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
force-pushed
the
fix/130-tree-field-tolerance
branch
from
October 19, 2026 15:26
de1a312 to
95e5219
Compare
EYH0602
changed the base branch from
fix/128-readable-real-aras
to
feat/agent-cli-interface
October 19, 2026 15:26
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.
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:evidence:item- 7258910(an all-digit short SHA)did not match any variant of untagged enum Evidencealternatives:item- Build on Debian 12 … (rejected: …).(a one-key mapping)expected string scalarChange (0.1.35)
evidencescalars:Evidencehas a hand-writtenDeserialize. List items keep their source spelling ([be13e96, 7258910, 0123456]) with no warning, like any other text field.flat_yaml::parseretries 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 numericevidence:, a mapping, or a list in a scalar field. Each recovery warnsARA230 non-text-tree-fieldattrace/exploration_tree.yaml:line. Trees that loaded before load byte-identically.id,type,parent,also_depends_on, and non-text fields such asisolatedandsame_asstill fail withARA100.ARA230does not refuse reads (D1): the recovered text is exactly what the author wrote, so reads stay complete and exit 0 with the warning indiagnostics.ARA008 unquoted-tree-scalar, tree only (D2):ara check --fixsingle-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 fewerARA230.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, andARA008lint plusfix_dirwith 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 indescriptionto force a failure. It now usesisolated, which stays strict.cargo test --workspace(1193 tests),cargo clippy --workspace --all-targets --locked -- -D warnings,cargo fmt --checkandscripts/embed-viewer.sh --checkall pass.Real ARAs, 0.1.34 → 0.1.35
DissClaimer and MSI go from
invalid_artifact(ARA100) to readable. DissClaimer reports noARA230. MSI reports one, at line 5859, andara check --fixon a copy quotes exactly that line. mandate, mandate-eval (ARA105) and AgentFuzzBench (ARA112) still refuse; those are data errors, filed on their repos.