Skip to content

feat: add native agent CLI interface - #99

Draft
EYH0602 wants to merge 32 commits into
mainfrom
feat/agent-cli-interface
Draft

EYH0602 wants to merge 32 commits into
mainfrom
feat/agent-cli-interface

Conversation

@EYH0602

@EYH0602 EYH0602 commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Implements non-experiment plans 00–14 in plans/agent-cli-interface/; permanent designs live in docs/agent-cli-interface/.

  • Native discovery, structural/source/full reads, versioned machine output, keyword retrieval and bounded lexical duplicate advice.
  • Guarded node/logic/staging/session writes, same-as links, audited JSONL batches, complete before/after history, durable rollback/recovery and exact source preservation.
  • Complete directory/local-Git merge, source-scoped identity relocation, literal heading selectors, portable immutable captures, replay, conflicts and explicit audited repair.
  • Reconciles current main's artifact/concept annotations and claim falsification behavior. Workspace version is unreleased 0.1.23; Cargo.lock, changelog and embedded viewer are updated.
  • Companion protocol/CLI-backed skills/shared intention channel: [WIP, do not merge] feat: add native CLI-backed research skills and shared intentions Agent-Native-Research-Artifact#38

Verification

  • 835 locked workspace tests across 36 suites; one ignored.
  • Strict workspace/all-target Clippy; native+wasm and pure wasm checks.
  • Manual embedded viewer regeneration/freshness, release build, 16 acceptance-harness unit tests.
  • Complete unchanged final-binary acceptance runner: every mandatory performance budget passes; pinned status 16.05–16.87 ms, five 10k directory merges 868.62–894.49 ms against the fixed 1,000 ms gate. Complete lossless proof is archived with hashes. Overall acceptance remains not PASS because historical replay, report-only 100k failures and human approval remain explicitly recorded.
  • Actual final-release browser: thinking, display-only artifact pointer (not fetched), focused glossary, experiment result and bound claim/falsification.
  • Actual installed reader/PM/source-bounded compiler packaging tasks are archived separately. Final binary replays the complete PM revision with exact claim/session/index/reasoning readback and cleanly checks the compiler output; no new model experiment is claimed.
  • Actual two-process shared channel: CAS, acknowledgments, expiry, outage/recovery, idempotency, budget enforcement and unchanged knowledge; 16 channel unit tests.
  • Pinned packaging: 14 immutable archived pages, 3 pins, 107 inventoried operations; access-only variants: 21 files/13 pages; separate collective extension: 13 files.

Final source record: 4f70972cb68aaec122148cf98421dda29f3061e4.
Frozen executable SHA-256: edb181c62e4a275bfaae4e464aea83d54cafb125739b0fb8fbd2385531912734.
Runtime evidence and measurement attribution: docs/verification/agent-cli-2026-10-02/README.md.

Boundaries

  • Experiments/plan 15 are explicitly deferred by the user. Plans 16/17 are closed conditionals: their evidence gates have not fired.
  • Human F1–F7 protocol approval is pending. Historical paper reproduction is not claimed: exact corresponding historical skill/task subset is unresolved, and strict creation/ancestor/leaf/session-index incompatibilities are retained rather than bypassed.
  • Search/duplicate labels are bounded engineering controls, not natural-language quality or scientific equivalence evidence. 100k merge/Git probes are report-only; actual errors/timeouts remain recorded.
  • Public Rust constructor/type changes are distinguished from additive optional JSON fields. The integration minor/major release decision remains pending.

Merge policy

Merge this integration PR into main with a merge commit, preserving integration history. Do not squash this final integration PR. No merge, tag or release is authorized by this implementation task.

Experiment branch workflow

The researcher directed protocol PR #38 to remain draft. Experiments use feat/agent-cli-interface at exact commit 03f19c7767ec993ae53a0698417b8b68040d7fee through the external harness protocol submodule; they do not wait for a protocol merge or upstream F1–F7 approval. The submodule gitlink and each run manifest must record the exact commit, rather than collecting against a moving branch head. Original archived baselines, historical-source requirements and scored-registration checks remain unchanged. This is permission for experimental conditions, not upstream release approval. The external harness has not been created or run by this workflow update.

@EYH0602 EYH0602 changed the title Implement native agent CLI interface and guarded research workflows feat: add native agent CLI interface Oct 3, 2026
@EYH0602
EYH0602 marked this pull request as draft October 3, 2026 02:39
EYH0602 and others added 19 commits October 2, 2026 20:53
…114)

* feat(skills): import CLI agent skills from protocol 03f19c7

Move the six ara-backed skills (research-foresight-cli, research-manager-cli,
compiler-cli, collective-{research,frontier,intentions}-cli) into this
repository so they change together with the binary, and so the upstream
protocol repository keeps only the Files-access skills.

Files are byte-identical to protocol commit 03f19c7: they match
variant-lock.json and collective-contract.json, and research-foresight-cli
reproduces the e1-test skill_digests.cli value. The collective skills gain the
MIT LICENSE they previously inherited from the protocol repository root.

tests/skills.rs checks skill names, licenses, identical cli-access.md copies,
and that every `ara <subcommand>` command line names a real subcommand.

* docs: plan stopping failed and blocked calls in CLI agent sessions

Preliminary e1-test traces show CLI sessions spend 3.25 model calls on failed
or blocked tool calls. The plan attributes them to five root causes (unstated
bash rules, exact-only --heading matching on the rubric, an unclosed `---`
hiding claims.md, truncated single-line JSON, and an unhelpful
invalid_document error) and proposes binary, skill, harness and corpus fixes,
each starting from a reproducing test.

* docs: stop handling the PaperBench rubric in the CLI in plan 18

rubric/requirements.md is benchmark grading material that the CLI serves
only because compiler-cli needed an allowlisted write path. On Category B
sessions agents make about 10 `ara show` calls per session on it (57% fail)
while the harness already allows reading it directly. Replace the heading
special-casing with removing rubric handling from reads, writes and merge,
and record the decision.

* docs: parse a stray leading `---` as a horizontal rule in plan 18

Only 7 of the 9 invalid corpus artifacts have an unclosed leading `---` in
claims.md; nanogpt-speedrun fails because its claim headings use `C01 —`.
Record the decision to treat an unclosed fence as front matter only when the
next non-blank line looks like YAML, warning either way, and leave the
em-dash heading form as an open question.

* docs: make text the agent output format in plan 18

Agents are told to pass --json everywhere, but JSON repeats each entry's text
and ls --json is 50k characters where its text form is 6k. Text mode is
incomplete: status and show <ids> still print JSON. Plan a complete compact
text form for every read command, with the digest in a header, and drop
--json from the skills; JSON stays the unchanged program contract. Also
accept dash separators in claim headings.

* docs: design the agent brief from Files-agent reads in plan 18

Files agents in e1-test orient by file names, grep to a path and line, read a
section, and cite path#anchor. Design the CLI's default text around that loop:
ls prints a document map, find prints grep-style hits with addresses, show
takes the cited address, and --lines/--max-bytes bound reads. Size the pilot
at 120 points (60 dev questions x Files and new CLI x 1 repetition) against
the existing dev pilot as the unchanged CLI baseline.

* docs: plan moving deterministic bookkeeping from the agent into ara

An audit of the CLI skills found the research-manager agent still computes
turn numbers, timestamps, session ids, events_logged and claims_touched rows
on every turn, and is asked to do four things ara already does or rejects.
Plan batch-level derivation, skill deletions, reference rewriting and
staleness counts in ara, and record a reproduced bug where claim add writes
fields alphabetically in a layout no other claim uses. Compiler and
collective bookkeeping are recorded as follow-ups.

* docs: revise and approve agent CLI plans 18 and 19

* feat: serve the PaperBench rubric as a plain external file

Remove native rubric reads, parsing, R IDs, EntryKind::Requirement and
rubric write allowlists. Merge treats rubric/ like evidence/ and src/
(external read-only). invalid_document errors carry an actionable hint.
Old rubric mutation rows, aliases and retained journals stay readable
history. Skills route rubric/evidence/src to file tools.

Plan step 1/6: Rubric removal (B1, B2, B9, S2, S3)

* feat: resolve headings in tiers and accept canonical read addresses

Resolve --heading exact-first (full vector, suffix, native-ID shorthand,
recorded redirect) before tolerant case-insensitive tiers. Misses return
unknown_id and ambiguities ambiguous_heading, with up to 40 ranked
canonical candidates; read errors no longer leak merge.* codes.
`show` accepts percent-encoded canonical addresses
(path#h/<seg>/<seg>[;occurrence=N]) and cited native forms.

Plan step 2/6: Heading resolution and canonical addresses (B3, B4)

* feat: read complete-but-invalid artifacts, recover stray claims fences and parse dash claim separators

Claim headings accept a spaced hyphen, en dash or em dash as well as a
colon (B10); ARA004 no longer flags those native spellings and merge
recognises them. A narrow recognizer recovers a stray leading `---` in
logic/claims.md (ARA228) while other unclosed fences stay protected
(ARA229); writes refuse candidates with unclosed fences. Structural
reads proceed through dangling-reference errors (ARA107/108/109) only
when every typed document is fully represented; refusals list blocking
codes and unrepresented lines.

Plan step 3/6: Parse recovery and read tolerance (B5, B6, B10)

* feat: default agent reads to brief address-led text

Without --json, read commands print brief text: ls lists documents with
counts and the direct-file boundary; `ls <path>` lists entry or heading
addresses; find prints ranked addresses with literal 1-based source hit
lines and optional --context; show prints a labelled block with native
source, its source_digest and the exact write selector, or a labelled
projection; status, path, refs and open are address-led. Diagnostics
print once on stderr as counts and codes, and text errors show hints,
candidates and blocking codes. JSON keeps its fields; find gains
additive line/matches/match_count/context.

Plan step 4/6: Brief default text output (B7)

* feat: bound and page agent show reads by lines and bytes

Add inclusive `--lines A:B` windows per native selection and a
`--max-bytes` response budget (brief show defaults to 16 KiB; JSON only
when explicit). Pages stop at whole lines, carry the full selection's
source_digest and name the exact next `--lines` window; a line that
cannot fit returns output_limit_too_small with the minimum budget.
Multi-address reads fit together or reject. Bounded JSON rows gain an
additive display object; unbounded JSON is unchanged.

Plan step 5/6: Bounded and resumable reads (B8)

* docs(skills): teach single-call ara reads and address-led orient/search/read/cite

Skills teach one quoted ara invocation per shell call with native bounds
(--lines, --max-bytes, --limit, --context) and next windows instead of
pipes or harness logs; orient/search/read/cite with printed addresses
and candidate choice after a miss; brief text for routine reads, JSON
where fields are consumed, and a full exact --source read with its
source_digest before guarded writes. The skills test also checks long
flags in skill ara commands against --help.

Plan step 6/6: Skill updates (S1, S4, S5)

* chore: bump version to 0.1.24 and record plan 18 changes

Refresh Cargo.lock workspace versions, add the Unreleased changelog
entries, and update the plan 18 status.

* fix: close integration gaps found in the final plan 18 review

Brief show keeps multi-line list items and drops the duplicated session
body; heuristics.md reads by its printed address; ambiguous scalar lists
print as items; empty brief results say so. File-access roots match in
any letter case. Docs, skills and plan status now match the shipped
JSON and display behaviour.

Plan integration fix (final review)

* fix: retain recovered claims during whole-document fence repairs

Claim retention checks in preserve_canonical_ids and validate_claim_retention
now use the recovery-aware claim heading inventory, so a document.replace
that removes a stray leading --- cannot silently drop a claim that reads
recover behind it. Write selectors stay strict.

* fix: render nested list items in show projections

A session list item that was itself a list printed a bare dash and lost
its values in text show output. List items now render recursively, with
a CLI regression on a session whose events_logged holds nested lists.

* fix: keep the diagnostics summary on projected text reads

Text reads with --fields bypassed the brief printer and only printed
diagnostic warnings, so admitted ARA107-109 errors vanished from the
output. Projected reads now print the same once-per-command error and
warning summary as unprojected reads, without per-warning lines.

* fix: refuse reads when an unclosed code fence swallows a claim

Detect claim-like headings hidden by a code fence left open at EOF in
logic/claims.md independently of dangling IDs. Structural reads on the
read-through path now refuse with invalid_artifact, and stray-fence
recovery (ARA228) no longer accepts such a document. Closed fences
holding example headings stay readable.

* docs(skills): separate entry-span from heading-body digests and find from show line numbers

entry.rename/entry.remove guard the heading-inclusive entry span, which no
show line prints; document a window-and-hash procedure for it and keep the
printed heading-body digest for document.replace, logic.revise Body and
paper.edit. find reports whole-document lines, so read around a hit with
show --document <source> --source --lines, not an address window; projections
reject --lines. Add executable skills tests that run the documented commands
and dry-run every guard scope.

* fix: print source-qualified addresses for colliding entry keys

Native namespaces can share a key (claim C01 and concept C01). Brief ls,
find, open, path, refs, show projection headers and miss candidates
printed the bare key, which show rejects as ambiguous_heading, and miss
candidates collapsed both entries into one bare C01.

A key that another loaded entry shares is now qualified by its source:
the cited section address (logic/claims.md#C01) for a heading-backed
entry, path#ID otherwise. Unique keys stay bare and --json rows are
unchanged. find --full also embeds colliding entries through the
qualified selector instead of failing.

* fix: resolve recipe documents from the decoded address path

show decoded a canonical document address once but, for a recipe
document, skipped the decoded path and looked the entry up by the
original escaped input. logic/solution/my%20notes.md, as printed by ls
and find, then failed with unknown_id and suggested itself as the
candidate. The recipe entry is now looked up by the path that named the
document, keeping the recipe JSON projection and one-pass decoding.

* fix: keep the claim-ID boundary when detecting fenced claim headings
* docs(plans): revise and re-approve plan 19 deterministic bookkeeping

Reproduce the claim-add layout bug on 0.1.24, specify locked clock
capture, define past-midnight session selection, keep day counts
known under overlapping sessions, use the existing Dependencies
bracket form, and split the work into sub-PRs 19a-19e.

* fix(write): render new claim/heuristic blocks in fixed schema order

New claim and heuristic blocks (add and promotion) follow the schema
registry order, inline single-line values that round-trip through the
reader, write Dependencies as [C..], keep other lists as lossless JSON,
and follow a CRLF file's line endings where the reader supports them.

Plan step 1/5: 19a new-entry rendering

* feat(write): derive clock values and audit ownership under the writer lock

Capture one UTC clock value per batch after lock and recovery, default
omitted node/staging/session/taste timestamps from it, let one
summarized session.log anchor omitted session/turn for audited
operations (selecting or creating the day's open session), and make
merge resolve/repair --turn optional with --timestamp/--summary.

Plan step 2/5: 19b clock and turn ownership

* feat(write): derive session events and claim touches from batch operations

Derive events_logged and claims_touched rows from successful operations
in a logged turn, keep caller summaries and judgments, reject
conflicting rows with both input locations, add an optional typed event
target for named promotions, and update the CLI skills so they no
longer hand-write CLI-owned bookkeeping (B1-B4).

Plan step 3/5: 19c operation-derived rows and skill updates

* feat: report observation inactivity from explicit references and derive stale days

Add a shared explicit-reference session history used by open and
observation.mark_stale. Observation rows in open gain turns/days since
the last exact ID or bound-node reference, the matched evidence, and a
history status; unknown chronology is null with a diagnostic, and
overlapping sessions keep the day count. mark_stale derives the
canonical eligible days when session_days is omitted, verifies supplied
lists exactly, excludes its own turn, and refuses unknown evidence.

Plan step 4/5: 19d explicit-reference evidence (D1, D2)

* feat(write): repair citations on rename, merge, redirect removal and split

Share one citation rule set between ara refs and the writer, rewrite
only allowlisted mutable reference tokens on entry.rename,
entry.remove with redirect, and claim merges (rewrite_references),
validate caller-mapped claim splits, keep historical citations
byte-exact and readable through authenticated mappings, and derive
merged/split claim touches.

Plan step 5/5: 19e citation repair (C1)

* docs: record plan 19 CLI experiments and implementation status

Add a runnable smoke script and its output covering 19a-19e on copies
of the agent-cli fixture, and mark plan 19 implemented in the index
with the audit and protocol review still pending.

* fix: close deterministic bookkeeping review gaps

* fix: prefer latest mutable import capture

* fix: retain absent mutable import boundaries
…oots to file tools (#116)

- `ara show <document> --source` now reads the same bytes as
  `show --document <document> --source`; file-access roots still return
  `invalid_document`, and entry IDs or several paths still need
  `--document`.
- CLI skills and the three shared access copies tell agents to list,
  search and read rubric/, src/ and evidence/ with file tools, not shell
  commands.
- Record the plan 18 dev pilot evidence and these follow-ups in plan 18.
- Bump to 0.1.26.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs: plan skill-led agent CLI command simplification

* docs: approve revised agent command simplification plan

* feat(agent-cli)!: consolidate commands and migrate live skills

* fix(cli): preserve refs in projected document text
Split the reader's access guide from writer guidance, adopt the Files
grounding rule, teach batched find/show calls, and keep a find --show
option conditional on the ara-eval screens.
Split the shared references/cli-access.md into a reading core and
references/cli-write.md. cli-access.md keeps the boundary and failures,
shell calls, orient/search/read/cite and the read-only ancestry and
unfinished-work tasks; it stays byte-identical in all three variants.
cli-write.md holds structured output and guarded sources, JSONL
transactions, the write tasks, PM and compiler procedures and review; only
research-manager-cli and compiler-cli carry it. No rule is dropped: the
stale-marking sentence moves to its own write subsection.

Writer pages link and load cli-write.md before writes; reader pages no
longer mention guarded writes. The reader's instruction text falls from
95,017 to 60,480 characters.

skills.rs checks both identical-copy sets, that the reader lacks
cli-write.md and never names it, links for every read and write task, and
runs the write recipes from cli-write.md.
Replace the CLI RETRIEVE.md rule that required show on every cited body
even when the excerpt sufficed with the Files arm's rule in CLI terms:
when a find hit is too terse to judge, show the surrounding section or
window the source document around the hit, rank on the real prose, and
cite the address ara printed.

The cli-access.md reading section no longer requires whole-document reads
or verifying every cited body for reading. The whole-section read for
writer procedures and the full exact-source read before a guarded write
stay in cli-write.md. The no-direct-knowledge-file boundary is unchanged.
Add a short Fewer requests rule to RETRIEVE.md Step 2 and the
cli-access.md reading section: one find query with every keyword for one
information need, several addresses in one show call, independent ara
commands as separate shell tool calls in the same response, and no ls
when the question already names what to search for. The shell-call rule
now says it limits the shell line, not the response.

skills.rs runs the documented batched show on a scratch artifact and
checks that it prints every address in request order. The skills doc
also records the Files grounding rule from the previous commit.
Adopt the reader-only access guide, Files grounding rule and fewer-requests guidance as workspace 0.1.28. The conditional find --show binary option is not implemented. Plan 21 becomes a design record with the measured outcome.
Plan 22 (draft): hidden typed documents behind a stray leading ---, one-step reader startup and batching, partial-success show, addressed and bounded find. Adds an ignored test reproducing the hidden-document problem.
Experiments, heuristics and problem documents whose unclosed --- opener is followed by a level-one title and typed entries are read like logic/claims.md, so their entries and headings stay addressable (ARA228). Metadata-like content stays hidden and writes still refuse the fence. Workspace 0.1.29 (plan 22 part A).
Concepts, related-work and untyped solution documents recover when a level-one title and a level-two section follow the opener and the text does not load as a YAML mapping or null. No paperbench artifact keeps an ARA229-hidden document (plan 22, P5).
One Access block and command card replace the reader's four boundary paragraphs; RETRIEVE and PREDICT load together and cli-access.md is read only after an unexplained error. RETRIEVE Step 2 sends ara ls with the first searches, one find per need and one multi-address show, and pairs ara find with a Grep of rubric/, evidence/ and src/ for whole-artifact searches (plan 22 part B).
…, bare entry-ID headings (0.1.31)

A multi-address show prints every resolved block and an error block with candidates for each unresolved address, exiting 1 (P3); --json adds an errors array. Whole-document find hits print in: <address> for their innermost section. show E01 resolves the unique heading starting with E01: when no native entry claims the ID (plan 22 part C).
…t and --all (0.1.32)

Brief find prints at most 3 matching lines per hit (--lines-per-hit) and stops at a 16 KiB budget (--max-bytes) with a count of omitted hits; --document restricts hits to named documents and --all requires every term. On 20 paperbench queries the default output fell 43% on average (plan 22 part D).
Describes how an agent reads an ARA through ara as of 0.1.32: the reader skill's access block and command card, bounded find, partial multi-address show and hidden-section recovery, with the constraints, rejected alternatives, tradeoffs and next steps measured in ara-eval.
* docs: plan fewer model round trips for the CLI reader

Split the reader's access guide from writer guidance, adopt the Files
grounding rule, teach batched find/show calls, and keep a find --show
option conditional on the ara-eval screens.

* feat(skills): give the CLI reader a reading-only access guide

Split the shared references/cli-access.md into a reading core and
references/cli-write.md. cli-access.md keeps the boundary and failures,
shell calls, orient/search/read/cite and the read-only ancestry and
unfinished-work tasks; it stays byte-identical in all three variants.
cli-write.md holds structured output and guarded sources, JSONL
transactions, the write tasks, PM and compiler procedures and review; only
research-manager-cli and compiler-cli carry it. No rule is dropped: the
stale-marking sentence moves to its own write subsection.

Writer pages link and load cli-write.md before writes; reader pages no
longer mention guarded writes. The reader's instruction text falls from
95,017 to 60,480 characters.

skills.rs checks both identical-copy sets, that the reader lacks
cli-write.md and never names it, links for every read and write task, and
runs the write recipes from cli-write.md.

* feat(skills): use the Files grounding rule in the CLI reader

Replace the CLI RETRIEVE.md rule that required show on every cited body
even when the excerpt sufficed with the Files arm's rule in CLI terms:
when a find hit is too terse to judge, show the surrounding section or
window the source document around the hit, rank on the real prose, and
cite the address ara printed.

The cli-access.md reading section no longer requires whole-document reads
or verifying every cited body for reading. The whole-section read for
writer procedures and the full exact-source read before a guarded write
stay in cli-write.md. The no-direct-knowledge-file boundary is unchanged.

* feat(skills): teach batched find and show calls to the CLI reader

Add a short Fewer requests rule to RETRIEVE.md Step 2 and the
cli-access.md reading section: one find query with every keyword for one
information need, several addresses in one show call, independent ara
commands as separate shell tool calls in the same response, and no ls
when the question already names what to search for. The shell-call rule
now says it limits the shell line, not the response.

skills.rs runs the documented batched show on a scratch artifact and
checks that it prints every address in request order. The skills doc
also records the Files grounding rule from the previous commit.

* chore: release the CLI reader round-trip skills as 0.1.28

Adopt the reader-only access guide, Files grounding rule and fewer-requests guidance as workspace 0.1.28. The conditional find --show binary option is not implemented. Plan 21 becomes a design record with the measured outcome.

* docs: plan removing the CLI reader's per-session turn overhead

Plan 22 (draft): hidden typed documents behind a stray leading ---, one-step reader startup and batching, partial-success show, addressed and bounded find. Adds an ignored test reproducing the hidden-document problem.

* fix(core): recover typed logic documents behind a stray leading ---

Experiments, heuristics and problem documents whose unclosed --- opener is followed by a level-one title and typed entries are read like logic/claims.md, so their entries and headings stay addressable (ARA228). Metadata-like content stays hidden and writes still refuse the fence. Workspace 0.1.29 (plan 22 part A).

* fix(core): recover other logic documents behind a stray leading ---

Concepts, related-work and untyped solution documents recover when a level-one title and a level-two section follow the opener and the text does not load as a YAML mapping or null. No paperbench artifact keeps an ARA229-hidden document (plan 22, P5).

* feat(skills): start the CLI reader in one step (0.1.30)

One Access block and command card replace the reader's four boundary paragraphs; RETRIEVE and PREDICT load together and cli-access.md is read only after an unexplained error. RETRIEVE Step 2 sends ara ls with the first searches, one find per need and one multi-address show, and pairs ara find with a Grep of rubric/, evidence/ and src/ for whole-artifact searches (plan 22 part B).

* feat(cli): partial multi-address show, section addresses on find hits, bare entry-ID headings (0.1.31)

A multi-address show prints every resolved block and an error block with candidates for each unresolved address, exiting 1 (P3); --json adds an errors array. Whole-document find hits print in: <address> for their innermost section. show E01 resolves the unique heading starting with E01: when no native entry claims the ID (plan 22 part C).

* feat(cli): bounded find with per-hit line cap, byte budget, --document and --all (0.1.32)

Brief find prints at most 3 matching lines per hit (--lines-per-hit) and stops at a 16 KiB budget (--max-bytes) with a count of omitted hits; --document restricts hits to named documents and --all requires every term. On 20 paperbench queries the default output fell 43% on average (plan 22 part D).

* docs: record plan 22 as a design with the paired pilot outcome

* docs: add the reader interface design doc

Describes how an agent reads an ARA through ara as of 0.1.32: the reader skill's access block and command card, bounded find, partial multi-address show and hidden-section recovery, with the constraints, rejected alternatives, tradeoffs and next steps measured in ara-eval.
EYH0602 and others added 5 commits October 14, 2026 17:38
detect_cycles mixed parent->child links with dependent->dependency links,
so cross-branch diamonds were reported as ARA110 cycles and a dependency
on one's own descendant was missed. Reverse DependsOn edges for the check
only. Clears ARA110 on all 58 affected internal trees.
Bring the 0.1.33 dependency-cycle direction fix (#127) and its design
record onto the integration branch. #121 squash-merged the earlier
reader-overhead work, so the only conflicts were the workspace version
and the matching CHANGELOG entry; both resolve to the 0.1.33 side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve PR #99's conflicts with main's dependency updates (#118-#126).

- Cargo.toml: keep the integration version 0.1.33 over main's 0.1.24.
- CHANGELOG.md: keep both sides; main's toml and tokio entries follow
  the integration branch's Changed entries.
- Cargo.lock: start from the integration lockfile and apply main's
  pins with cargo update --precise (leptos 0.8.22, serde_json 1.0.154,
  toml 1.1.8, tokio 1.53.2, insta 1.49.0 and their transitive updates),
  so the integration-only dependencies stay locked.

Verified: cargo fmt --check, clippy -D warnings, 1166 workspace tests
pass, and scripts/embed-viewer.sh --check is up to date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: plan optional-layer read-through and shared entry headings (#128)

Adds plan 23 and reproduction tests in agent_layer_tolerance.rs
(three fail on 0.1.33 as reported).

* fix: read real ARAs despite optional-layer warnings (0.1.34) (#128)

Typed experiment and heuristic headings share the claims heading parser
(spaced dashes, bracketed status). ARA217/ARA218 warnings about one
optional-layer file no longer refuse ls/show/find; results carry
complete: false and an incomplete list and exit 1. status keeps counts
and withholds only the affected prefix's next ID.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(cli): treat incomplete optional layers as a read warning (#128)

ls, show and find over an incomplete optional layer now exit 0 and keep
complete: false, the incomplete list and the brief line. Exit 1 on a read
means the request failed; here the request succeeds and the gap is an
artifact defect. status still exits 1 when incomplete.

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: record the full #128 real-ARA rerun

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
…35) (#131)

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>
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