Skip to content

chore: dead template surface — instantiate what we ship, drop what nothing uses - #61

Merged
moveeeax merged 2 commits into
masterfrom
chore/dead-surface
Aug 23, 2026
Merged

chore: dead template surface — instantiate what we ship, drop what nothing uses#61
moveeeax merged 2 commits into
masterfrom
chore/dead-surface

Conversation

@moveeeax

Copy link
Copy Markdown
Owner

The reviews flagged template API that nothing instantiates ("a silently broken signature passes CI"). Principle applied: documented fork-facing API gets an instantiating test; undocumented-and-superseded gets deleted — every deletion grep-proven across src/tests/docs/scripts/frontend.

Deleted: KafkaConsumer::commit() (duplicated the commitSync path), the 2-arg produce overload, Auth::has_any_role/require_any_role/current_user_is_admin (undocumented, zero callers, require_admin routes through require_permission).

Instantiated/covered: CrudBase owned-triple — new test_crud_owned.cpp drives all three templates through the #42 Database seam with a fictional owned repo (the compile-guarantee the review asked for; --owned scaffold output confirmed to exercise them too). Database::execute_transaction/IsolationLevel/execute_write_idempotent — three real integration tests (SHOW transaction_isolation per level, multi-statement rollback, idempotent replay converging) plus fork-API documentation in CONVENTIONS §3. Messaging pre-init guard smokes, Jobs::default_max_retries, Migrations::get() guard.

Rewritten: Validation::uuid now delegates to Api::detail::is_uuid_segment — the second, regex-based UUID implementation is gone; semantics and the error contract verified against the existing tests, signature untouched (add-orgs.sh scaffold stays compatible).

Gates green (test-buckets 49 unit / 35 integration with the new files, selftest 19/19).

@moveeeax
moveeeax merged commit 897bf00 into master Aug 23, 2026
11 checks passed
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