Skip to content

[Issue-200] fix(cloud-sync): qualify Gist API endpoint on class - #201

Merged
CYoJkoY merged 3 commits into
mainfrom
issue-200-gist-api-class-access
Nov 6, 2026
Merged

CYoJkoY merged 3 commits into
mainfrom
issue-200-gist-api-class-access

Conversation

@CYoJkoY

@CYoJkoY CYoJkoY commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Linked Issue

Closes #200: Repair cloud synchronization target persistence, WebDAV parent creation, and provider snapshot consistency.

  • Stacked Branch Dependencies: None (Directly branched from main)

Change summary

Staged breakdown of all diffs against main by commit:

  • f85d119: Qualify the GitHub Gist API endpoint through its class and add a no-network Connect URL regression check.
  • b3c865f: Share OAuth access-token expiry handling across Google Drive and OneDrive, fail closed when Google Drive version metadata cannot be read, and cover token validity boundaries.
  • 80d1a59: Centralize persisted target handling, create nested WebDAV collections in order, and reject Gist, Google Drive, or OneDrive downloads whose version changes across split content and metadata requests.
  • Behavioral Guarantees: Provider identifiers, API endpoints, configuration keys, defaults, package format, and existing sync method signatures are preserved. New targets remain available in runtime state and are persisted to the existing INI key; persistence failures are now reported. Snapshot checks add metadata requests only to split-read download paths. GitHub Gist PATCH and Google Drive media upload still lack a documented atomic compare-and-write contract, so concurrent writes can race after the preflight check. OneDrive upload If-Match behavior remains unconfirmed for this endpoint.

Verification & Dependencies

  • Status of Assertions:
    • Command-line checks: AutoHotkey 2.0.31 scripts/ci/Invoke-Ahk.ps1 CapsLock-.ahk -Validate (PASS); scripts/ci/Invoke-Ahk.ps1 scripts/HotkeyRegression.ahk (PASS, 242 checks, 0 failures); git diff --check (PASS).
    • Runtime & Visual assertions: Regression checks exercise temporary INI persistence and failure reporting, ordered WebDAV MKCOL requests and failure propagation, and source-level guards for stable reads across Gist, Google Drive, and OneDrive content/version requests. No live cloud account sync was performed.
    • Unverified external facts: Live GitHub, Google Drive, Microsoft Graph, and WebDAV account behavior; OneDrive PUT If-Match support; and provider-side atomic write guarantees noted above remain unverified.
  • Dependency Pinning:
    • No dependencies or application versions changed. CI AutoHotkey remains pinned to exact version 2.0.28; local verification used installed AutoHotkey 2.0.31.

Review conclusion

Evaluation across the four engineering dimensions:

  • Correctness & Regression: PASS (Provider targets surface persistence errors, WebDAV parent failures stop the upload, and split downloads reject observed version changes. Gist PATCH and Google Drive upload retain documented non-atomic race windows.)
  • Performance Gain: PASS (No polling or loops added; metadata checks add two bounded reads around content only where the provider splits metadata and file content.)
  • Compatibility & Architecture: PASS (Existing provider contracts, settings, package schema, and native AutoHotkey architecture are preserved.)
  • Readability & Commit Completeness: PASS (Three atomic ASCII Conventional Commits reference Issue 200 and include regression coverage.)

Overall Verdict: PASS

Permission Notice

AI has completed staged development and review loops. Merging is an exclusive user privilege. Awaiting manual merge.

@CYoJkoY
CYoJkoY merged commit fed8020 into main Nov 6, 2026
1 check passed
@CYoJkoY
CYoJkoY deleted the issue-200-gist-api-class-access branch November 6, 2026 16:41
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 missing ApiBase property during GitHub Gist synchronization

1 participant