문제: 설계서·계획서·납품 패키지·증거·학습 문서와 ADR이 기록이라는 표시 없이 지금 문서처럼 읽힌다. 상태 칸이 설계서 72개 중 40개, 계획서는 거의 없고, 있어도 Approved·확정·Accepted.처럼 값이 제각각이며 영어다. 고른 방법: docs/design, docs/history, docs/adr, docs/notification/adr의 .md 246개 맨 위에 같은 모양의 머리 블록을 단다. 칸은 상태·작성일· 요약(한국어 한 문장)·현재 정본, 대체됐으면 대체됨이다. 블록은 표시 줄 두 개로 감싸서 빼면 원문 바이트가 그대로 돌아온다(246개 모두 대조함). - 종류는 폴더가 정하고 둘째 줄에 적는다(plans/evidence는 증거). - 상태는 원래 상태 줄을 고정 어휘로 바꾼 값이다. 상태 줄이 없는 설계서와 체크 상자가 다 표시되지 않은 계획서는 「확인 안 함」. capability-status.md 제거 표로 지운 것이 확인된 설계서 다섯은 「폐기」, 2026-07-20 하네스 설계·계획과 production capability platform 설계는 「대체됨」이다. - 현재 정본은 구조 정리로 옮겨질 수 있는 src/messaging·src/grpc 대신 docs/ 쪽 문서나 옮기지 않는 leaf README를 가리킨다. docs/README.md에 「문서 수명과 언어」「기록 문서의 머리 블록」「문서와 코드를 같은 변경에서 고친다」를 더하고, 파생 서비스 안내에 머리 블록 충돌 가능성을 적었다. 버린 대안: H1 제목 아래에 블록을 두는 안은 보기에는 낫지만 빼는 규칙이 파일마다 달라져 원문 복원이 기계적이지 않다. 「종류」 칸을 따로 두는 안은 폴더와 같은 정보를 두 번 쓰게 한다. 위험·한계: 「확인 안 함」 설계서 38개, 계획서 51개는 지금 유효한지 아무도 판정하지 않았다. 요약은 제목·목표 줄을 보고 쓴 것이라 본문을 끝까지 읽지 않았다. 납품 패키지 셋의 MANIFEST.sha256는 이제 맞지 않는다 (납품 당시 바이트의 해시이고, 블록을 빼면 다시 맞는다). 리뷰 폴더에는 아직 머리 블록을 달지 않았다. 검증: 머리 블록을 뺀 내용과 HEAD 원본 246개 일치, check-work-docs.py rc=0, --links docs·README.md·CLAUDE.md·AGENTS.md 깨진 링크 0.
4.9 KiB
기록 · 계획서 본문은 쓴 때의 원문이다. 지금 동작은 「현재 정본」을 읽는다.
- 상태: 확인 안 함
- 작성일: 2026-09-17
- 요약: Mongo 빌드 검증 알고리즘을 Groovy에서 Java 빌드 도구로 옮기는 실행 계획이다.
- 현재 정본:
docs/mongodb/repository-adaptation.md
Mongo Gradle Verification Java Migration Implementation Plan
For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (
- [ ]) syntax for tracking.
Goal: Remove Mongo JUnit/XML and release-manifest verification algorithms from the Groovy leaf build script and move them into typed Java build tooling without changing task names or verification semantics.
Architecture: ca.mongo-verification lives in src/build-tools because the checks are repository certification tooling, not reusable compilation conventions. The plugin registers the two existing verification task names; normal Java verifier/parser classes own XML/JSON parsing and return typed records, while persistence-mongo/build.gradle keeps only plugin/lane/dependency declarations and check wiring.
Tech Stack: Java 21, Gradle 9 binary plugins/tasks, Jackson 3, JUnit 6, JUnit XML.
Spec: docs/superpowers/specs/2026-09-16-verification-surface-reduction-design.md
Global Constraints
- Preserve
verifyMongoTestLaneDisjointnessandverifyMongoReleaseContractLanestask names and report paths. - Preserve the existing
test+mongoStableContractTestdependency graph. - Do not add or resolve new production dependencies in the Mongo leaf.
- Keep Groovy only as declarative build DSL; no JSON/XML parsing or
doLastverification algorithm remains in the leaf. - Do not stage, commit, amend, or push; repository policy is human-only commits.
Task 1: Typed Mongo verification core
Files:
- Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/MongoLaneDisjointnessVerifier.java - Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/MongoLaneDisjointnessResult.java - Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/MongoReleaseContract.java - Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/MongoReleaseContractManifestParser.java - Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/MongoReleaseContractLaneVerifier.java - Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/MongoReleaseContractLaneResult.java - Test:
src/build-tools/src/test/java/dev/caskeleton/buildtools/mongo/MongoLaneDisjointnessVerifierTest.java - Test:
src/build-tools/src/test/java/dev/caskeleton/buildtools/mongo/MongoReleaseContractLaneVerifierTest.java
Interfaces:
-
Consumes: Gradle JUnit XML result directories and
config/mongodb/release-contracts.json. -
Produces: typed result records used by Gradle task classes.
-
Step 1: Write failing verifier tests covering disjoint lanes, overlap failure data, manifest filtering to hermetic lanes, missing result XML, and minimum-executed checks.
-
Step 2: Run
cd src/build-tools && ../gradlew test --tests 'dev.caskeleton.buildtools.mongo.*' --console=plainand confirm RED from missing production types. -
Step 3: Implement minimal typed records/parsers/verifiers using fail-closed XML parsing and Jackson 3 JSON tree parsing.
-
Step 4: Run the focused tests again and confirm PASS.
Task 2: Binary plugin/task ownership and leaf cleanup
Files:
- Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/MongoVerificationPlugin.java - Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/VerifyMongoTestLaneDisjointnessTask.java - Create:
src/build-tools/src/main/java/dev/caskeleton/buildtools/mongo/VerifyMongoReleaseContractLanesTask.java - Modify:
src/build-tools/build.gradle - Modify:
src/adapter/outbound/persistence-mongo/build.gradle
Interfaces:
-
Consumes: typed verifiers from Task 1.
-
Produces: existing task names
verifyMongoTestLaneDisjointness,verifyMongoReleaseContractLaneswith unchanged report paths. -
Step 1: Register
ca.mongo-verificationand the two typed tasks in Java. -
Step 2: Apply the plugin in the Mongo leaf and delete both Groovy
tasks.register { doLast { ... } }implementations. -
Step 3: Run
cd src && ./gradlew :adapter:outbound:persistence-mongo:verifyMongoTestLaneDisjointness :adapter:outbound:persistence-mongo:verifyMongoReleaseContractLanes --console=plain. -
Step 4: Run
cd src && ./gradlew :adapter:outbound:persistence-mongo:check --console=plain. -
Step 5: Run
cd src/build-tools && ../gradlew test --console=plainandgit diff --check.