Skip to content

Extra credit: two S3-band builds probing structural editing reliability - #115

Open
shivansh193 wants to merge 3 commits into
superdocsapp:mainfrom
shivansh193:extra-credit-builds
Open

Extra credit: two S3-band builds probing structural editing reliability#115
shivansh193 wants to merge 3 commits into
superdocsapp:mainfrom
shivansh193:extra-credit-builds

Conversation

@shivansh193

Copy link
Copy Markdown

Shivansh Kalra

Two additional builds beyond the assigned Task 2 pair, going after harder, multi-document and multi-turn structural editing rather than single-document drafting.

  • Owner-Contractor Agreement Redline Workspace (use-cases/shivansh193/owner-contractor-redline-workspace) -- reconciles a base agreement against Supplementary Conditions, then redlines the reconciled document against a risk playbook retrieved via cross_session_search. Reconciliation verified working end to end. The redline step surfaced a reproducible bug: cross_session_search can silently re-open a stale snapshot of a document already open and edited in the same session, so a job reports completed with an approved diff that never actually lands.
  • Self-Healing Document Structure Agent (use-cases/shivansh193/self-healing-structure-agent) -- repairs Section numbering, cross-references, and a stale Table of Contents against a fully known ground truth. Two identical real runs of the same instruction produced very different outcomes: one clean pass, and one run with a false "updated all 10 sections" claim covering near-zero real progress, a downstream turn trusting that false claim instead of checking the document, and a hand-authored TOC replaced with an empty auto-generated widget.

Both READMEs lead with the verified result, pass or fail, and each folder's PROGRESS.md has the full turn-by-turn diagnosis with the underlying job diffs.

shivansh193 and others added 3 commits August 20, 2026 17:52
Reconciles a base agreement against Supplementary Conditions, then
redlines the reconciled document against a risk playbook retrieved via
cross_session_search. Reconciliation verified working end to end against
the live API. The redline step surfaced a real, reproducible SuperDocs
bug: cross_session_search can silently re-open a stale snapshot of a
document already open and edited in the same session, so a job reports
"completed" with an "approved" diff that never actually applies to the
session's real document. Full diagnosis in PROGRESS.md.
Repairs a document's Section numbering, body cross-references, and stale
Table of Contents against a fully known ground truth. Two identical real
runs against the live API produced very different outcomes: Run 1 (6/8
checks) cleanly renumbered and fixed both cross-refs but silently dropped
a bundled TOC instruction while reporting full success -- the same
silent-narrowing pattern found independently on the redline-workspace
build. After splitting into single-purpose turns, Run 2 (0/8 checks) hit
a different, worse failure on the byte-identical renumber instruction: a
false "updated all 10 sections" claim covering near-zero real progress, a
downstream turn trusting that false claim instead of checking the
document, and a hand-authored TOC replaced with an empty auto-generated
widget. Same instruction, two very different executions -- real run-to-
run non-determinism, not a wording problem. Full diagnosis in
PROGRESS.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…or self-healing's non-determinism

Redline workspace: dropped cross_session_search, loaded the risk playbook
into the main session as a background document instead (same pattern as
the Exhibits). Re-ran for real: now passes 6/6, both required flags land
correctly and the reconciliation-order check holds. Also fixed a bug in
this repo's own verify() (a fixed-width per-Article window that overran
into the next Article's flag on this cleaner run). Original honest-failure
record is left intact in PROGRESS.md/README as prior history, not
replaced.

Self-healing structure agent: wrapped the renumber step (the one that
showed real run-to-run non-determinism) in a verify-then-retry loop --
fresh session, fresh document, up to 3 independent attempts, checked
against ground truth each time. Converged on attempt 1 in this run. The
Table of Contents step failed the same way as before, now confirmed on
two separate real runs with different instruction phrasing -- reads as a
reproducible platform behavior, left out of scope for this pass.
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