Skip to content

Comments

fix(hashline): enforce hashline_read before hashline_edit#322

Merged
randomm merged 1 commit intodevfrom
fix/issue-321-hashline-read-enforcement
Feb 23, 2026
Merged

fix(hashline): enforce hashline_read before hashline_edit#322
randomm merged 1 commit intodevfrom
fix/issue-321-hashline-read-enforcement

Conversation

@randomm
Copy link
Owner

@randomm randomm commented Feb 23, 2026

Summary

  • Adds FileTime.hashlineRead() and FileTime.assertHashlineRead() to track which files have been read via hashline_read specifically
  • hashline_edit now requires a prior hashline_read call (not just any read), preventing agents from calling it after a plain read with no anchors
  • Fixes namespace shadowing bug in time.ts where local variable shadowed outer function
  • Adds cross-session isolation test confirming Session A's read doesn't grant Session B edit permission

Fixes #321

@randomm randomm merged commit 21268ef into dev Feb 23, 2026
1 check passed
@randomm randomm deleted the fix/issue-321-hashline-read-enforcement branch February 23, 2026 16:51
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.

fix(hashline): require hashline_read before hashline_edit

1 participant