Skip to content

feat(auto-sync): integrate Loopwright turnkey memory validation and workflow - #423

Merged
thxCode merged 2 commits into
mainfrom
feat/turnkey-memory-integration
Nov 16, 2026
Merged

thxCode merged 2 commits into
mainfrom
feat/turnkey-memory-integration

Conversation

@thxCode

@thxCode thxCode commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Validate committed .auto-sync/memory/auto-sync/ (index.json and entries/<id>.md front-matter) in .auto-sync/checks/validate_candidate.py while rejecting transient/forbidden files, symlinks, hardlinks, and candidate modifications under .auto-sync/memory/**.
  • Align .github/workflows/auto-sync.yml with gpustack/loopwright@main: fetch +refs/pull/${PR_NUMBER}/head without checkout on /auto-sync issue_comment, enable full dry-run compilation without the legacy sentinel endpoint URL, and scope diagnostics uploads to scrubbed JSON/YAML allowlists including memory-publication.json (!**/secrets.json, !**/*.sqlite*).
  • Snap glm-5.3 / glm-5.2 thinking levels in .auto-sync/checks/write_models_json.py to match @earendil-works/pi-ai thinkingLevelMap constraints.
  • Document Turnkey Memory separate-PR publication (loopwright/memory/auto-sync/main), memory-publication.json, and active-snapshot injection in docs/release-automation.md, and add unit plus live Loopwright Node-bridge tests in tests/pack/test_auto_sync_memory.py and tests/pack/test_validate_candidate.py.

Signed-off-by: thxCode thxcode0824@gmail.com

…orkflow

Signed-off-by: thxCode <thxcode0824@gmail.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .auto-sync/checks/validate_candidate.py Resolved
Comment on lines +678 to +679
for item in sorted(taskpack_dir.iterdir(), key=lambda p: p.name):
_require(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similarly, we should ignore .DS_Store files in the taskpack_dir loop to avoid validation failures on macOS.

Suggested change
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(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +779 to +780
for entry_file in sorted(entries_dir.iterdir(), key=lambda p: p.name):
label = f".auto-sync/memory/auto-sync/entries/{entry_file.name}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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}"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@thxCode
thxCode merged commit 3247706 into main Nov 16, 2026
7 checks passed
@thxCode
thxCode deleted the feat/turnkey-memory-integration branch November 16, 2026 09:19
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