docs: align all documentation with the 1.0 API #424
No reviewers
Labels
No labels
adr
automated
bug
chore
dependencies
documentation
enhancement
epic
github-actions
P1-high
P2-medium
P3-low
release
research
rust
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/eventcore!424
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/doc-accuracy-overhaul"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A full documentation audit (multi-agent review + adversarial verification, then exhaustive store-method / type / facade-import / link sweeps) found the docs were substantially out of sync with the 1.0.0 codebase — including copy-paste-breaking API examples and several chapters built on a fictional API surface. This PR makes all documentation accurate against the real 1.0 API.
Documentation-only change: no library code or behavior is modified (every
.rsedit is doc-comment-only), so the feature BDD/TDD workflow does not apply.Accuracy fixes (rustdoc, manual, blueprints, READMEs, process docs)
StreamId::from/new/from_static→StreamId::try_new(the only constructor)run_projectionshown with its real 3-arg form(projector, &backend, config)ExecutionResponseusage uses.attempts(); removed reads of nonexistentevents_written/affected_streamsCommandError/EventStoreErrorvariants;RetryPolicy::max_retriestakesu32InMemoryEventStore::new,PostgresEventStore::new/from_pool,SqliteEventStore::new/from_connection,FileEventStore::open)emit!macro;require!documented as living in theeventcorecrateSecurity
Documented that SQLite at-rest encryption requires the non-default
encryptionfeature — without it,encryption_keyis silently ignored and data is stored in plaintext. Fixed in the crate rustdoc, README, and the security manual.Fiction-heavy chapters rewritten to the real API
configuration-reference, events-and-stores, schema-evolution, event-versioning, distributed-systems, monitoring-metrics, troubleshooting, web-API endpoints/handlers, compliance, deployment-strategies, backup-recovery. Removed fabricated surfaces (
PoolConfig/MetricsConfig/SecurityConfig/EventCoreConfig/ConfigBuilder,EVENTCORE_*env vars,eventcore-cli,eventcore::monitoring,SchemaRegistry/upcasting,EventToWrite/EventMetadata/ExpectedVersion/EventVersion/EventId/ReadOptions, store methods likewrite_events/list_all_streams/health_check) and replaced them with accurate guidance (metrics viaMetricsHook; schema evolution via serde defaults + new enum variants per ADR-0035; storage-layer backup).Metadata & integrity
ADR index completed (037–049) with corrected statuses;
RELEASE_PROCESStrigger prefix + crate list; version pins → 1.0; Forgejo (Slipstream) repo paths; historical banners on archived dev docs; guardrail docs corrected (crate list,emit!).Validation
cargo fmt,clippy,nextest,test --doc,cargo check,cargo audit, prettier — all green (full pre-commit gate).cargo docbuilds clean; thewith_metrics_hookexample is now compiled. Final sweep: 0 non-facadeeventcore::imports, 0 fabricated store methods, 0 broken intra-doc/markdown links.Follow-up (not in this PR)
Doctest hardening + a manual compile-check harness (convert rustdoc
ignore→no_runwhere feasible; compile-check the manual's self-contained EventCore examples) to prevent this drift from recurring.🤖 Generated with Claude Code
This PR updates the documentation to align with the 1.0 API, correcting inaccuracies and removing references to non-existent features. The changes are documentation-only, with no modifications to library code or behavior.
Walkthrough
General Changes
Specific Changes
emit!macro, which does not exist in the current API.run_projectionfunction calls to include the requiredconfigargument.eventcore-fsto the list of workspace crates in documentation.CommandErrorhandling.Security Documentation
encryptionfeature for SQLite at-rest encryption.Historical Documents
LLM usage and cost
Estimated total USD: $0.146886 via https://api.openai.com and https://api.openai.com
🟡 Warning: The
run_projectionfunction now requires a third argumentconfig. Ensure that all calls torun_projectionin the codebase are updated to include this argument.