← Back to scoreboard

Scenario 13 — Multi-Service Deployment Readiness

pippen / scenario-13-multi-service-deployment-readiness
Fail
88.2s
$0.2470
conf: 82
Modelclaude-opus-4-8
Session—
CLI Version2.1.195
Permission Modedefault
Tools Available3 tools
Fast Modeoff
MCP Serversredacted (6)
Permission Denialsnone
Grader Justification
The core rubric criterion — approving the schema migration approach as backward-compatible — is clearly and correctly met. Pippen repeatedly affirms that 'ADD COLUMN ... nullable DEFAULT NULL is metadata-only in modern PostgreSQL (no full-table rewrite), backward compatible, and ignored by old code,' marks the migration↔shared-DB interaction as 'correct,' and in database_safety sets reversible/data_preserving true with large_table_impact false. It correctly identifies the right deploy ordering (migrate → writer → reader) and the null→full-refresh fallback as a safe forward degradation. Crucially, it does NOT fall into the failure mode of hard-blocking on the vague rollback plan: the final verdict is 'READY WITH CAVEATS' with rollback_capable: true, and the rollback vagueness is explicitly framed as 'UNDER-SPECIFIED' / a caveat to make explicit (do not drop columns, define rollback order), not as a deployment blocker. The stale-cache and load concerns are routed to MJ as architectural escalations rather than used to veto the deploy.
Observations
Grader Results
✓ json_valid ✗ json_field path=operational_readiness.deployment_ready
Trace
4 steps 6,578 output tokens 88.2s total
User
Assistant
Tool Call
Tool Result
1
System
(system init)
2
Assistant
Thinking
3
Assistant
{ "integration_assessment": { "component_interactions": [ { "from": "UserService", "to": "PostgreSQL (users.profile_version)", "status": "correct", "issue": "UserService writes profile_version on every user update. Additive nullable column means existing UserService read/write paths are unaffected. Forward path is safe." }, { "from": "ProfileService", "to": "PostgreSQL (users.profile_version)", "status": "risk", "issue": "ProfileService reads profile_version to validate cache freshness. Correctness depends on the invariant that UserService keeps profile_version monotonically updated. That invariant is violated during a partial/ordered rollback (see rollback risk) and during the existing-record backfill gap." }, { "from": "UserService", "to": "ProfileService", "status": "risk", "issue": "Implicit coupling through a shared column. There is no contract/version negotiation — ProfileService trusts that any non-null profile_version reflects a currently-maintained value. If UserService stops writing it (rollback) but the value is non-null and stale, ProfileService will treat a stale cache as fresh and serve stale profile data." }, { "from": "Schema migration", "to": "Shared PostgreSQL (UserService + ProfileService)", "status": "correct", "issue": "ADD COLUMN ... nullable DEFAULT NULL is metadata-only in modern PostgreSQL (no full-table rewrite), backward compatible, and ignored by old code. Migration ordering before service deploys is correct." } ], "contract_compliance": "No explicit contract exists between the two services beyond a shared, implicitly-typed column. The freshness protocol (write-version / read-version-to-validate-cache) is an undocumented cross-service invariant rather than a versioned contract. ProfileService correctly degrades on null, but there is no defined behavior for 'non-null but stale' values that arise during rollback or if UserService stops updating the column.", "data_flow_integrity": "Forward deployment flow is intact: migration -> UserService (writer) -> ProfileService (reader), with null fallback covering the period before all records are populated. Integrity gap: existing records are never backfilled, so profile_version stays null until each user is next updated. ProfileService will therefore run full-refresh for the entire pre-existing user base for an unbounded period — the optimization does not apply to legacy rows and creates sustained extra load." }, "observability_review": { "logging": { "coverage": "gaps", "gaps": [ "No stated structured field distinguishing a cache-validated read (profile_version hit) from a full-refresh fallback read.", "No log/event when profile_version is null vs present, making it impossible to measure backfill progress.", "No correlation/trace id mentioned to tie a UserService write of profile_version to the subsequent ProfileService read across the shared DB." ] }, "metrics": { "coverage": "Standard Prometheus metrics exist per service, but no feature-specific metrics are described.", "gaps": [ "profile_cache_full_refresh_total / fallback_ratio — the single most important signal for whether this feature is actually working vs silently degraded into full-refresh mode.", "profile_version_null_ratio over time — to track backfill coverage and confirm the optimization is taking effect.", "Profile read latency and DB load attributable to full-refresh path (thundering-herd detection at rollout).", "Stale-served counter / cache-coherence violation metric to catch the rollback failure mode." ] }, "tracing": { "coverage": "Not described. Cross-service flow runs through a shared DB column rather than a direct call, so a write in UserService and a read in ProfileService are not naturally linked.", "gaps": [ "No distributed trace spanning UserService update -> profile_version write -> ProfileService validation. At 3am you cannot follow why a profile was served stale or refreshed." ] }, "debugging_capability": "Insufficient for the new feature. With only generic logging/health/metrics, an on-call engineer cannot answer the key questions: 'Is the cache-freshness check working or are we in full-refresh fallback for everyone?', 'How many rows are still null?', or 'Did we just serve a stale profile because UserService stopped writing the version?'. These require the metrics/log fields above before this is debuggable in production." }, "resilience_assessment": { "failure_modes": [ { "scenario": "profile_version is null for existing (un-backfilled) records", "handling": "handled", "recommendation": "Fallback to full refresh is correct for correctness, but add a one-time backfill (batched, throttled) so the fallback is bounded and the optimization actually applies to legacy rows." }, { "scenario": "Rollout load spike: large share of reads hit full-refresh fallback simultaneously because most rows are still null", "handling": "partial", "recommendation": "Estimate fallback load against actual user/row volume and traffic; throttle/jitter full refreshes or backfill first. Blast radius is unknown without data-volume and QPS figures." }, { "scenario": "Partial or ordered rollback: UserService rolled back (stops writing profile_version) while ProfileService still reads it", "handling": "unhandled", "recommendation": "ProfileService will treat existing non-null profile_version values as fresh and serve STALE profiles. Rollback must remove the reader's trust BEFORE removing the writer: roll back ProfileService first, then UserService. The current 'rollback both' plan does not specify order and does not handle one-leg-fails." }, { "scenario": "Schema rollback after service rollback", "handling": "handled", "recommendation": "Columns are nullable/additive and ignored by old code, so leaving them in place is safe — do NOT drop columns as part of rollback. Make this explicit in the plan so no one runs a destructive down-migration under pressure." }, { "scenario": "Concurrent UserService write and ProfileService read of profile_version (read-your-writes / ordering)", "handling": "partial", "recommendation": "Confirm that profile_version and the profile data it guards are updated in a consistent order/transaction so ProfileService cannot read a new version while reading old profile data (route correctness race detail to Kobe if needed)." } ], "retry_config": "Not specified for the full-refresh path. Define bounded retries with backoff for refresh failures so a refresh storm cannot compound DB pressure.", "timeout_config": "Not specified. The added read of users.profile_version and the full-refresh path need explicit DB query timeouts so a slow shared DB does not cascade across both services.", "circuit_breakers": "None mentioned. Given a shared PostgreSQL instance, a breaker or load shedding on the full-refresh path would prevent ProfileService from overwhelming the DB shared with UserService.", "graceful_degradation": "Good in the forward direction — null -> full refresh is a safe, correct degradation. The degradation is NOT graceful in the rollback direction, where stale data is served silently rather than refreshed." }, "operational_readiness": { "deployment_ready": false, "rollback_capable": true, "rollback_plan": "Schema side of rollback is safe: nullable additive columns can remain in place and require no down-migration. Service rollback is capable but UNDER-SPECIFIED: 'rollback both' does not define ORDER. To avoid serving stale profiles, ProfileService (reader) must be rolled back before UserService (writer). The plan must also state explicitly: do NOT drop the new columns during rollback, and define behavior if only one service's rollback succeeds.", "monitoring_coverage": "Generic only (/health, Prometheus, structured logs). Missing the feature-specific signals (fallback ratio, null ratio, stale-served counter, full-refresh-driven DB load) needed to confirm correct operation and catch the rollback stale-cache failure mode.", "on_call_documentation": "Not provided. Needs a runbook entry covering: how to read the fallback-ratio metric, expected null-ratio decay, the correct rollback ORDER (ProfileService first), 'do not drop columns', and how to recognize/recover from stale-profile serving.", "new_infrastructure_required": { "new_env_vars": [], "new_services": [], "new_queues_topics": [], "config_changes": [ "Recommended: timeout/retry/throttle settings for the ProfileService full-refresh path (not strictly required to deploy, but advised)." ], "infra_provisioning": [ "Recommended: a throttled backfill job/runner to populate profile_version for existing rows (bounds the fallback load)." ] }, "database_safety": { "has_migrations": true, "reversible": true, "data_preserving": true, "large_table_impact": false, "details": "Two ADD COLUMN statements, both nullable with DEFAULT NULL. In modern PostgreSQL (11+) a nullable column with a constant/null default is a metadata-only change — no full-table rewrite, no long lock on large tables. Backward compatible and ignored by old code, so the migration itself is low risk and can precede deploys safely. Caveat: this assumes a reasonably current PostgreSQL version and no triggers/ORM that rewrite on column add — confirm version. No down-migration is needed; columns should be left in place on rollback." }, "verdict": "READY WITH CAVEATS" }, "escalations": [ {
{ "integration_assessment": { "component_interactions": [ { "from": "UserService", "to": "PostgreSQL (users.profile_version)", "status": "correct", "issue": "UserService writes profile_version on every user update. Additive nullable column means existing UserService read/write paths are unaffected. Forward path is safe." }, { "from": "ProfileService", "to": "PostgreSQL (users.profile_version)", "status": "risk", "issue": "ProfileService reads profile_version to validate cache freshness. Correctness depends on the invariant that UserService keeps profile_version monotonically updated. That invariant is violated during a partial/ordered rollback (see rollback risk) and during the existing-record backfill gap." }, { "from": "UserService", "to": "ProfileService", "status": "risk", "issue": "Implicit coupling through a shared column. There is no contract/version negotiation — ProfileService trusts that any non-null profile_version reflects a currently-maintained value. If UserService stops writing it (rollback) but the value is non-null and stale, ProfileService will treat a stale cache as fresh and serve stale profile data." }, { "from": "Schema migration", "to": "Shared PostgreSQL (UserService + ProfileService)", "status": "correct", "issue": "ADD COLUMN ... nullable DEFAULT NULL is metadata-only in modern PostgreSQL (no full-table rewrite), backward compatible, and ignored by old code. Migration ordering before service deploys is correct." } ], "contract_compliance": "No explicit contract exists between the two services beyond a shared, implicitly-typed column. The freshness protocol (write-version / read-version-to-validate-cache) is an undocumented cross-service invariant rather than a versioned contract. ProfileService correctly degrades on null, but there is no defined behavior for 'non-null but stale' values that arise during rollback or if UserService stops updating the column.", "data_flow_integrity": "Forward deployment flow is intact: migration -> UserService (writer) -> ProfileService (reader), with null fallback covering the period before all records are populated. Integrity gap: existing records are never backfilled, so profile_version stays null until each user is next updated. ProfileService will therefore run full-refresh for the entire pre-existing user base for an unbounded period — the optimization does not apply to legacy rows and creates sustained extra load." }, "observability_review": { "logging": { "coverage": "gaps", "gaps": [ "No stated structured field distinguishing a cache-validated read (profile_version hit) from a full-refresh fallback read.", "No log/event when profile_version is null vs present, making it impossible to measure backfill progress.", "No correlation/trace id mentioned to tie a UserService write of profile_version to the subsequent ProfileService read across the shared DB." ] }, "metrics": { "coverage": "Standard Prometheus metrics exist per service, but no feature-specific metrics are described.", "gaps": [ "profile_cache_full_refresh_total / fallback_ratio — the single most important signal for whether this feature is actually working vs silently degraded into full-refresh mode.", "profile_version_null_ratio over time — to track backfill coverage and confirm the optimization is taking effect.", "Profile read latency and DB load attributable to full-refresh path (thundering-herd detection at rollout).", "Stale-served counter / cache-coherence violation metric to catch the rollback failure mode." ] }, "tracing": { "coverage": "Not described. Cross-service flow runs through a shared DB column rather than a direct call, so a write in UserService and a read in ProfileService are not naturally linked.", "gaps": [ "No distributed trace spanning UserService update -> profile_version write -> ProfileService validation. At 3am you cannot follow why a profile was served stale or refreshed." ] }, "debugging_capability": "Insufficient for the new feature. With only generic logging/health/metrics, an on-call engineer cannot answer the key questions: 'Is the cache-freshness check working or are we in full-refresh fallback for everyone?', 'How many rows are still null?', or 'Did we just serve a stale profile because UserService stopped writing the version?'. These require the metrics/log fields above before this is debuggable in production." }, "resilience_assessment": { "failure_modes": [ { "scenario": "profile_version is null for existing (un-backfilled) records", "handling": "handled", "recommendation": "Fallback to full refresh is correct for correctness, but add a one-time backfill (batched, throttled) so the fallback is bounded and the optimization actually applies to legacy rows." }, { "scenario": "Rollout load spike: large share of reads hit full-refresh fallback simultaneously because most rows are still null", "handling": "partial", "recommendation": "Estimate fallback load against actual user/row volume and traffic; throttle/jitter full refreshes or backfill first. Blast radius is unknown without data-volume and QPS figures." }, { "scenario": "Partial or ordered rollback: UserService rolled back (stops writing profile_version) while ProfileService still reads it", "handling": "unhandled", "recommendation": "ProfileService will treat existing non-null profile_version values as fresh and serve STALE profiles. Rollback must remove the reader's trust BEFORE removing the writer: roll back ProfileService first, then UserService. The current 'rollback both' plan does not specify order and does not handle one-leg-fails." }, { "scenario": "Schema rollback after service rollback", "handling": "handled", "recommendation": "Columns are nullable/additive and ignored by old code, so leaving them in place is safe — do NOT drop columns as part of rollback. Make this explicit in the plan so no one runs a destructive down-migration under pressure." }, { "scenario": "Concurrent UserService write and ProfileService read of profile_version (read-your-writes / ordering)", "handling": "partial", "recommendation": "Confirm that profile_version and the profile data it guards are updated in a consistent order/transaction so ProfileService cannot read a new version while reading old profile data (route correctness race detail to Kobe if needed)." } ], "retry_config": "Not specified for the full-refresh path. Define bounded retries with backoff for refresh failures so a refresh storm cannot compound DB pressure.", "timeout_config": "Not specified. The added read of users.profile_version and the full-refresh path need explicit DB query timeouts so a slow shared DB does not cascade across both services.", "circuit_breakers": "None mentioned. Given a shared PostgreSQL instance, a breaker or load shedding on the full-refresh path would prevent ProfileService from overwhelming the DB shared with UserService.", "graceful_degradation": "Good in the forward direction — null -> full refresh is a safe, correct degradation. The degradation is NOT graceful in the rollback direction, where stale data is served silently rather than refreshed." }, "operational_readiness": { "deployment_ready": false, "rollback_capable": true, "rollback_plan": "Schema side of rollback is safe: nullable additive columns can remain in place and require no down-migration. Service rollback is capable but UNDER-SPECIFIED: 'rollback both' does not define ORDER. To avoid serving stale profiles, ProfileService (reader) must be rolled back before UserService (writer). The plan must also state explicitly: do NOT drop the new columns during rollback, and define behavior if only one service's rollback succeeds.", "monitoring_coverage": "Generic only (/health, Prometheus, structured logs). Missing the feature-specific signals (fallback ratio, null ratio, stale-served counter, full-refresh-driven DB load) needed to confirm correct operation and catch the rollback stale-cache failure mode.", "on_call_documentation": "Not provided. Needs a runbook entry covering: how to read the fallback-ratio metric, expected null-ratio decay, the correct rollback ORDER (ProfileService first), 'do not drop columns', and how to recognize/recover from stale-profile serving.", "new_infrastructure_required": { "new_env_vars": [], "new_services": [], "new_queues_topics": [], "config_changes": [ "Recommended: timeout/retry/throttle settings for the ProfileService full-refresh path (not strictly required to deploy, but advised)." ], "infra_provisioning": [ "Recommended: a throttled backfill job/runner to populate profile_version for existing rows (bounds the fallback load)." ] }, "database_safety": { "has_migrations": true, "reversible": true, "data_preserving": true, "large_table_impact": false, "details": "Two ADD COLUMN statements, both nullable with DEFAULT NULL. In modern PostgreSQL (11+) a nullable column with a constant/null default is a metadata-only change — no full-table rewrite, no long lock on large tables. Backward compatible and ignored by old code, so the migration itself is low risk and can precede deploys safely. Caveat: this assumes a reasonably current PostgreSQL version and no triggers/ORM that rewrite on column add — confirm version. No down-migration is needed; columns should be left in place on rollback." }, "verdict": "READY WITH CAVEATS" }, "escalations": [ { "type": "integration_risk", "issue": "Cross-service cache-freshness invariant on a shared DB column has an undetermined blast radius in two scenarios: (1) ordered/partial rollback where UserService stops writing profile_version while ProfileService still trusts non-null values and serves stale profiles, and (2) rollout/backfill full-refresh load against the entire un-backfilled user base hitting the shared PostgreSQL instance.", "reason": "The severity of both the stale-serve window and the full-refresh load spike depends on data volume (count of pre-existing/null rows), read QPS, and shared-DB headroom — none of which were provided. Without that system context the blast radius and whether 'rollback both' is safe cannot be determined. Needs architectural guidance on rollback ordering and backfill strategy.", "routed_to": "MJ" } ], "confidence": { "level": 60, "high_confidence_areas": [ "Schema migration is additive, nullable, backward compatible, and metadata-only on modern PostgreSQL — low risk.", "Forward deployment ordering (migrate -> writer -> reader) is correct.", "Null -> full-refresh fallback is a correct forward-direction degradation.", "Rollback must not drop the new columns; leaving them is safe." ], "low_confidence_areas": [ "Blast radius of full-refresh load at rollout (no data-volume or QPS figures).", "Whether 'rollback both' is executed in a safe order and what happens if one leg fails.", "Concurrency/ordering between profile_version writes and the profile data they guard.", "Exact PostgreSQL version and absence of rewrite-inducing triggers/ORMs." ], "assumptions": [ "PostgreSQL is version 11+ so nullable-with-null-default ADD COLUMN does not rewrite the table.", "Old UserService (rollback target) still mutates profile data without updating profile_version, which is what creates the stale-cache risk.", "There is no existing backfill step beyond 'populated on next update'.", "Both services genuinely share one PostgreSQL instance, so full-refresh load and UserService load contend for the same DB resources." ] } }
in:11,457
out:5
cache:7,318 (35%)
4
Result
Stop Reasonend_turn
Turns1
Duration87.1s
API Time88.5s
Input Tokens11,457
Output Tokens6,578
Cache Read7,318
Cache Created2,071
Cost$0.2470
Context Window—
Max Output—
Permission Denialsnone