Skip to content

fix(cli): observe retained native lock metadata safely - #4662

Merged
yannickmonney merged 1 commit into
mainfrom
fix/observation-native-lock-metadata
Oct 9, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/observation-native-lock-metadata

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

A completed native deployment retains its .tale coordination directory. Read-only observation previously parsed that directory as a client slug and refused before verifying the retained configuration.

Recognize the exact reserved directory through the existing non-creating lock-path validator. Keep directory and file custody checks, admit only known regular coordination files, refuse active or retained operation metadata, and compare bounded metadata hashes again after native reads. Observation never opens SQLite or acquires, changes or removes a lock.

Validation: the actual withLock writer reproduces the old refusal; the corrected observer passes 105 tests with 1,998 assertions, including unknown entries, corrupt reserved-directory shape, symlink/hardlink and permission faults, active writers and concurrent metadata changes. CLI lint/typecheck, the 1,243-box manual-reference guard, full vendored SAST (162 rules on two production files, zero findings), and normal commit hooks passed. Live deployment observation remains separate evidence.

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