Skip to content

feat(guardrails): パターンKのSSOT同期ドリフトガードを追加 - #289

Merged
terisuke merged 1 commit into
devfrom
ssot-sync-guard
Aug 3, 2026
Merged

feat(guardrails): パターンKのSSOT同期ドリフトガードを追加#289
terisuke merged 1 commit into
devfrom
ssot-sync-guard

Conversation

@terisuke

@terisuke terisuke commented Aug 3, 2026

Copy link
Copy Markdown

Summary

実装

手段 内容
Plugin ssot-guard.ts mirror set の片側変更を検知 → 助言のみ(ブロックしない = I)
Command /ssot-check migrate-vs-SSOT / pin 等値比較のローカル手順
Skill ssot-sync impact-analysis と平行して重複定義側を更新
Version-pin 結線 extractVersionPins + assertVersionPinsEqual
ADR / plan-light パターン K を追記

受入(I)

  • 陰性: migration + SSOT 同時更新で助言なし
  • 陽性: migration-only で助言
  • 反証: OPENCODE_SSOT_GUARD=off で助言消える

Test plan

  • bun test test/plugin/ssot-guard.test.ts(13 pass)
  • local:deploy / local:check green
  • ライブ: half-change advisory / synced empty / pin drift detect
  • CI green 後マージ

Closes #288

Made with Cursor

migration/初期schema・version pin・OpenAPI など、同一最終状態に
一致すべき片側だけの更新を助言する。ハードブロックはせず(I)、
/ssot-check・ssot-sync skill・pin 結線テストで PR 前に検出する。

Closes #288

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

The following comment was made by an LLM, it may be inaccurate:

@terisuke
terisuke merged commit ec4f447 into dev Aug 3, 2026
9 checks passed
@terisuke
terisuke deleted the ssot-sync-guard branch August 3, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(guardrails): anti-pattern K — SSOT sync drift (migration changed without mirroring the SSOT / version pins)

1 participant