Add artifact admission and prepared put attempts#154
Conversation
📝 WalkthroughWalkthroughWS-ART-001-02C1 adds PostgreSQL-backed artifact admission scopes, charges, and prepared put attempts. It introduces locked admission validation, replay and capacity handling, migration safeguards, required byte-limit configuration, architecture checks, integration tests, documentation, and updated workflow and initiative gates. ChangesArtifact admission foundation
Estimated code review effort: 5 (Critical) | ~120 minutes Sequence Diagram(s)sequenceDiagram
participant Producer
participant ArtifactAdmissionService
participant ArtifactRepository
participant PostgreSQL
Producer->>ArtifactAdmissionService: submit admission request
ArtifactAdmissionService->>ArtifactRepository: resolve and lock source facts
ArtifactRepository->>PostgreSQL: lock canonical rows and admission scopes
ArtifactAdmissionService->>ArtifactRepository: reserve charges
ArtifactRepository->>PostgreSQL: persist charges and counters
ArtifactAdmissionService->>ArtifactRepository: create prepared put attempt
ArtifactRepository->>PostgreSQL: persist attempt and charge links
ArtifactAdmissionService-->>Producer: return admission result
Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2666cc7 to
a93be2e
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
PR Trust Bundle: WS-ART-001-02C1
Chunk And Intent
WS-ART-001-02C1- Admission And Put-Attempt FoundationReviewed implementation SHA:
535069cfb1a7312d731bb14a6023ceb0894402e9Trusted base:
8d5eb15b384fd75787ce98a099400a1d335d2560Merge intent:
.agent-loop/merge-intents/WS-ART-001-02C1.jsonCreate the durable PostgreSQL admission and prepared-attempt transaction that
must commit before provider I/O while keeping execution and product cutover
inactive.
Design And Scope
released charges may be reacquired only under locked capacity checks.
the caller's admission transaction; ART makes no AUTH permission decision.
preparedattempt commitatomically. Prepared scheduling/execution fields remain inactive and null.
execution, route, product cutover, task claim, reviewer lease, R2, or Flow
Node path is included.
Acceptance Proof
revalidated without crossing actor persistence ownership.
ledger contention.
success, or provider call.
next_run_at, executor, lease, terminal, replica, and receiptfields are null and execution generation is zero.
02C2and requires a separate explicit start.
Tests And Checks
GitHub Backend remains authoritative for the full isolated repository suite and
78-percent repository coverage floor.
Internal Review
All nine required tracks reviewed exact SHA
535069cf...: senior engineering,architecture, QA/test, security/auth, product/ops, reuse/dedup, CI integrity,
test delta, and docs. QA's initial High concurrency-proof finding was repaired
and passed on rerun. Docs' stale-evidence finding was repaired by regenerating
the exact-SHA evidence, this bundle, external status, and initiative state. No
blocking finding remains and every reviewer session is closed.
External Review
c93f1a24.c93f1a24.Remaining Risks
submission routes.
c93f1a24.Human Review Focus
attempt before provider side effects?
exact accounting?
Human Merge Ownership