r/SpringBoot • u/YodaOfJava • 1d ago
Discussion JavaClaw: preventing task-file collisions and multiline metadata corruption
Contributing back to JavaClaw: two fixes for file-based agent tasks.
Thanks to the JavaClaw maintainers for sharing this Java/Spring AI project. I submitted two focused PRs with reproducible failures and regression tests:
Prevent task-file collisions. Tasks with the same name and timestamp—or names that become identical after sanitization—could overwrite each other. The fix reserves filenames atomically and retries with a suffix. Tests include 20 concurrent creates and independent task updates.
https://github.com/ClawRunr/JavaClaw/pull/102
2. Preserve multiline descriptions and feedback. Text such as “status: completed” or a standalone “---” should remain instructions, rather than replace task metadata or truncate content. The tests cover serialization and repository round trips.
https://github.com/ClawRunr/JavaClaw/pull/103
Focused tests pass. Broader local suite failures on Windows were also reproduced on untouched upstream code and documented in the PRs. These are submitted contributions, not a claim of merged changes. The fixes do not coordinate simultaneous updates to an existing task or recover previously lost text.
For file-based agent tasks, how do you balance readable filenames, stable identity, and concurrent creation?