The keycloak project ended with four open questions that design could not
settle. A two-VM lab was built to answer them by measurement, and this is
that material: 26 experiments, 125 raw command outputs, 22 browser captures.
Follows the import procedure in README.md.
source/ the originating repository verbatim — 78 documents, 28 SVGs,
8 manifests, plus .source-revision recording the commit
final/ the SSOT
document.md 729 lines written from the 29 experiment documents, not
concatenated: what was predicted, what was measured, and
where the measurement itself was wrong
evidence/raw 125 outputs, flattened to <experiment>__<file> because
the originals collided (01-baseline.txt appeared three
times) and the audit only globs the top level
evidence/meta one per raw file; command and exitCode are null and the
README says why rather than inventing them
evidence/browser 22 captures
assets/ three diagrams through techviz
.techviz/ their VizSpecs
A separate project rather than an addition to keycloak: the B-layer answers
that project's four questions, but the A, C and D layers are about cluster
failure, SSO and operations, and one document.md should hold one subject.
The four question records there can point here through 관계.
Recorded rather than papered over: only three of the 28 diagrams were
remade. The repository forbids hand-drawn SVG and forbids titles inside the
canvas; all 28 originals carry both, so converting them is redrawing, not
reformatting. They stay in source/ and the gap is written into the document.
verify-pipeline.py passes. audit-records.py reports no issues.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2.3 KiB
2.3 KiB
kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, decisionStatus, decidedOn, source
| kind | slug | title | topic | project | status | sourceRevision | rootTreeNode | decisionStatus | decidedOn | source | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PROJECT_DECISION | repair-is-not-a-mode | Repair는 모드가 아니라 운영자가 호출하는 작업이다 | schema-ownership-and-capability-streams | clean-architecture-backend-template | 게시 전 | 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 | decision:repair-is-not-a-mode | ADOPTED | 2026-08-30 |
|
Repair는 모드가 아니라 운영자가 호출하는 작업이다
결정문
마이그레이션 이력 복구는 애플리케이션 기동 시 자동으로 수행하지 않고, 운영자가 명시적으로 호출하는 작업으로 둔다.
판단 이유
복구는 이력 테이블을 고치는 작업이다. 체크섬이 맞지 않거나 실패한 항목이 남아 있을 때 그것을 정리한다.
그 작업이 기동 시 자동으로 돈다면, 체크섬 불일치가 발견되는 대신 지워진다. 그리고 체크섬 불일치는 대개 누군가 이미 적용된 마이그레이션 파일을 고쳤다는 신호다.
즉 자동 복구는 알아야 할 사실을 감춘다.
그리고 복구는 되돌릴 수 없다. 이력을 고치고 나면 원래 어떤 상태였는지 알 수 없다.
그래서 운영자가 호출한다. 그 시점에 무엇이 어긋났는지 보고, 왜 어긋났는지 판단한 뒤에 실행한다.
영향
감수하는 것
체크섬 불일치가 생기면 기동이 실패하고 사람이 개입해야 한다. 배포가 멈춘다.
긴급 상황에서 복구 절차를 아는 사람이 필요하다.
얻는 것
이미 적용된 마이그레이션이 수정되었다는 사실이 감춰지지 않는다.
이력이 자동으로 고쳐지지 않으므로, 이력이 말하는 것과 실제가 다른 상태가 조용히 만들어지지 않는다.
근거
- 적용된 마이그레이션의 checksum은 그것을 돌린 모든 배포에 대한 약속이다 이 결정이 지키려는 규칙이다.
- Flyway가 스키마를 소유하고 런타임 롤은 DDL 권한을 갖지 않는다 같은 소유 원칙의 다른 면이다.