Skip to content

Fix long audit notes blocking CAD edits and misleading Studio cancellation errors - #41

Merged
69 commits merged into
mainfrom
fix/059c-audit-history-persistence
Oct 26, 2026
Merged

69 commits merged into
mainfrom
fix/059c-audit-history-persistence

Conversation

@CenturyMesh

Copy link
Copy Markdown
Owner

Problem and resulting behavior

A BOM review note of at least 1,024 bytes could block subsequent previews, edits and saves with Current document has unjournaled large authoring payload. The Studio tool queue then obscured that exception as Request cancelled before execution.

Persist audit and usage ledgers intact outside the CAD history blob dictionary, and report tool-dispatch exceptions as STUDIO_TOOL_FAILED with the original diagnostic and observed revision.

Scope and contracts

  • Stacked on 059C: GPU dynamics, rubber and surfacing, with Studio and agent workflow fixes #40; base work/059c-rubber. This PR contains only the focused correction.
  • Roadmap: A.02 / D.02, verified in the local scope documented in docs/iterations/059C.md.
  • CAD journal hashes, blob validation, capacity limits, revision checks and atomic publication remain enforced. Legacy packed audit strings remain readable; no document format or release identity change.
  • Exception receipts do not claim that execution never started or that the document is unchanged. Genuine queued cancellation retains its own response.
  • No dependencies, runtime binaries or private drawing/session artifacts are included.

Verification

Local Windows Release/MSVC build succeeded. Seven distinct suites passed across focused runs:

ctest --test-dir out/native-release -C Release -R '^(iteration-history|reactivity-activity|async-authoring-051a)$' --output-on-failure
ctest --test-dir out/native-release -C Release -R '^iteration-history$' --output-on-failure
ctest --test-dir out/native-release -C Release -R '^(document-container|history-compaction-051a|feature-history-authoring|recovery-protection)$' --output-on-failure

The synthetic long-note regression reproduced the original exception before the fix. The first corrected run exposed an order-sensitive JSON comparison in the test; canonical object comparison fixed that assertion, and the final iteration-history run passed, including legacy packed-audit coverage.

ark-studio.exe --self-test-async-authoring-ui --settings-file <isolated-settings> --shot <local-capture> --size 1280 800 exited 0; the capture was inspected. This exercises the actual queued exception and cancellation paths. CTest UI registration was disabled in this local build, so the UI test was invoked directly.

Coverage includes exact note retention, preview/prepared apply, undo/redo, JSON/binary reopen and rejection of unjournaled large CAD payloads. git diff --check passes. Hosted CI and full-suite qualification are separate; no installer or OTA publication is claimed.

Review checklist

  • Follows AGENTS.md and relevant contracts.
  • Retains revision checks, atomicity and explicit rejection.
  • Applicable checks ran; evidence and limits are recorded.
  • Documentation reflects the verified scope.
  • No credentials or private user artifacts included.
  • No new dependencies or license changes.
  • No release/document version change required.

Bruno Santos and others added 30 commits October 22, 2026 08:46
…discovery

A.02/A.04/A.05/D.02: integrate PR35 zstd transport on current contracts, reclaim pages with transactional SQLite VACUUM, validate reused manifests, and preserve authoring and release identity. Add command search, strict parameter recipes through doc_preview, selective specialist exposure and shared-topic deferred activation. Local native persistence, contract and packaging tests passed; see docs/PROJECT_SCALE_COMMANDS_056C.md.
Bruno Santos added 26 commits October 23, 2026 14:35
@CenturyMesh
CenturyMesh changed the base branch from work/059c-rubber to main October 26, 2026 21:40
@CenturyMesh CenturyMesh closed this pull request by merging all changes into main in a3a169f Oct 26, 2026
@CenturyMesh
CenturyMesh deleted the fix/059c-audit-history-persistence branch November 13, 2026 13:36
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