Repository navigation
feat(auto-sync): integrate Loopwright turnkey memory validation and workflow - #423
Conversation
…orkflow Signed-off-by: thxCode <thxcode0824@gmail.com>
There was a problem hiding this comment.
Code Review
This pull request introduces a Loopwright Turnkey Memory store validation mechanism, updates the model configuration script to support reasoning/thinking level snapping (specifically for GLM models), documents the memory architecture, and adds comprehensive unit and integration tests. The review feedback suggests ignoring macOS .DS_Store files during directory validation in validate_candidate.py to prevent unexpected local validation failures for macOS developers.
| for item in sorted(taskpack_dir.iterdir(), key=lambda p: p.name): | ||
| _require( |
There was a problem hiding this comment.
Similarly, we should ignore .DS_Store files in the taskpack_dir loop to avoid validation failures on macOS.
| for item in sorted(taskpack_dir.iterdir(), key=lambda p: p.name): | |
| _require( | |
| for item in sorted(taskpack_dir.iterdir(), key=lambda p: p.name): | |
| if item.name == ".DS_Store": | |
| continue | |
| _require( |
There was a problem hiding this comment.
Intentionally kept strict: @loopwright/memory loadMemoryStore (packages/memory/src/store.ts:183-187) enforces TASKPACK_DIRECTORY_ENTRIES = ["index.json", "entries", ".cas.lock"] and fails closed with MEMORY_SCOPE_VIOLATION if .DS_Store exists inside .auto-sync/memory/auto-sync, so validate_candidate.py mirrors that exact check locally.
| for entry_file in sorted(entries_dir.iterdir(), key=lambda p: p.name): | ||
| label = f".auto-sync/memory/auto-sync/entries/{entry_file.name}" |
There was a problem hiding this comment.
We should also ignore .DS_Store files in the entries_dir loop to prevent validation failures on macOS when non-markdown files are checked.
for entry_file in sorted(entries_dir.iterdir(), key=lambda p: p.name):
if entry_file.name == ".DS_Store":
continue
label = f".auto-sync/memory/auto-sync/entries/{entry_file.name}"There was a problem hiding this comment.
Intentionally kept strict: @loopwright/memory loadMemoryStore (packages/memory/src/store.ts:239-248) rejects any non-indexed or non-.md file inside entries/ with MEMORY_SCOPE_VIOLATION, so validate_candidate.py fails closed on .DS_Store inside entries/ to match runtime behavior.
Signed-off-by: thxCode <thxcode0824@gmail.com>
Summary
.auto-sync/memory/auto-sync/(index.jsonandentries/<id>.mdfront-matter) in.auto-sync/checks/validate_candidate.pywhile rejecting transient/forbidden files, symlinks, hardlinks, and candidate modifications under.auto-sync/memory/**..github/workflows/auto-sync.ymlwithgpustack/loopwright@main: fetch+refs/pull/${PR_NUMBER}/headwithout checkout on/auto-syncissue_comment, enable fulldry-runcompilation without the legacy sentinel endpoint URL, and scope diagnostics uploads to scrubbed JSON/YAML allowlists includingmemory-publication.json(!**/secrets.json,!**/*.sqlite*).glm-5.3/glm-5.2thinking levels in.auto-sync/checks/write_models_json.pyto match@earendil-works/pi-aithinkingLevelMapconstraints.loopwright/memory/auto-sync/main),memory-publication.json, and active-snapshot injection indocs/release-automation.md, and add unit plus live Loopwright Node-bridge tests intests/pack/test_auto_sync_memory.pyandtests/pack/test_validate_candidate.py.Signed-off-by: thxCode thxcode0824@gmail.com