Skip to content

docs(skills): document markDirty in swamp-extension-datastore#1226

Merged
stack72 merged 1 commit intomainfrom
skills-datastore-markdirty
Apr 24, 2026
Merged

docs(skills): document markDirty in swamp-extension-datastore#1226
stack72 merged 1 commit intomainfrom
skills-datastore-markdirty

Conversation

@stack72
Copy link
Copy Markdown
Contributor

@stack72 stack72 commented Apr 24, 2026

Summary

Pick up the `markDirty()` addition from #1225 in the skill that guides
authors building custom datastore providers.

  • `references/api.md` — interface block includes `markDirty(): Promise`,
    plus a section describing when it's load-bearing (fast-path implementations
    that cache a clean/dirty watermark) versus when a no-op is correct (sync
    services that unconditionally walk the cache).
  • `references/examples.md` — the working sync service example returns a
    no-op `markDirty` with a comment pointing at the fast-path pattern in
    `design/datastores.md`.

No code changes, docs only — keeps guidance for extension authors in
lock-step with the core interface change that already shipped.

Test Plan

  • `deno fmt` clean per the skill-files rule in CLAUDE.md.

🤖 Generated with Claude Code

Pick up the markDirty() addition from #1225 in the skill that guides
authors building custom datastore providers. api.md now describes the
full three-method interface and when markDirty is load-bearing versus
when a no-op is correct; examples.md's sync service returns a no-op
markDirty with a comment pointing at the fast-path pattern in
design/datastores.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Code Review

Docs-only PR that adds markDirty() documentation to the swamp-extension-datastore skill references, keeping guidance for extension authors in sync with the core interface change from #1225.

Blocking Issues

None.

Suggestions

  1. Minor signature discrepancy: The documented interface shows markDirty(): Promise<void> while the actual DatastoreSyncService in src/domain/datastore/datastore_sync_service.ts:61 declares markDirty(options?: DatastoreSyncOptions): Promise<void>. The options param (carrying AbortSignal) is omitted from the docs. This is consistent with how pullChanged and pushChanged are already simplified in the same interface block (they also omit options? and the number | void return type), so this appears to be a deliberate choice to keep extension-author guidance simple. Worth noting but not blocking since the pattern is already established.

Looks good — accurate description of the markDirty contract, consistent with existing doc style, and the no-op example in examples.md correctly demonstrates the unconditional-walk case.

@stack72 stack72 merged commit 46b6744 into main Apr 24, 2026
10 checks passed
@stack72 stack72 deleted the skills-datastore-markdirty branch April 24, 2026 23:05
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