From f9be6de0064fb8f062d569f2aabf91dd56e86fa7 Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 19 Nov 2026 20:25:37 -0500 Subject: [PATCH] Illustrate how architecture decisions guide and evolve through agent memory --- docs/assets/readme/rupro-workspace-mobile.svg | 37 +++++++++++++------ 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/docs/assets/readme/rupro-workspace-mobile.svg b/docs/assets/readme/rupro-workspace-mobile.svg index 947420f906..f0cd49720a 100644 --- a/docs/assets/readme/rupro-workspace-mobile.svg +++ b/docs/assets/readme/rupro-workspace-mobile.svg @@ -1,5 +1,5 @@ -ruPro workspace · learning across runsClaude proposes a retry rule, Codex tests it, and the owner approves lesson M17. Catalog recalls M17 on a new read timeout. A simulated Catalog replay compares six passing cases without memory to eight with the lesson. Billing then checks a timed out payment against its receipt and records the owner’s decision. +ruPro workspace · learning across runsClaude proposes a retry rule, Codex tests it, and the owner approves lesson M17. Catalog recalls M17 on a new read timeout. A simulated Catalog replay compares six passing cases without memory to eight with the lesson. Billing then checks a timed out payment against its receipt and records the owner’s decision. An architecture decision record preserves the reason for the rule. A later replay reveals a missed deadline and the owner approves a successor. + + + ruPro / workspace Sample data · native actions simulated -AgentsTerminalReviewAnalyticsClaudeCheckout · run 1Why did the second read succeed?The first GET timed out. A retry worked.Try one retry on reads only.CodexCheckout · same traceTest Claude’s rule before we reuse it.Checking reads, writes and repeat timeouts.I’ll attach the results for review.1/8 -AgentsTerminalReviewAnalyticsTerminalCheckout · simulated session$npx ruflo@latest init›/ruflo · Claude Code$npm test -- retry✓GET timeout: retry once✓POST timeout: stop✓Second timeout: stop3 rule checks passed2/8 -AgentsTerminalReviewAnalyticsReviewReview before savingCodex · CheckoutTrace and three checks attached.− on timeout: stop+ GET: retry once+ writes: never retryOwner decisionApprove✓ ApprovedLesson M17 saved with its test evidence.3/8 -AgentsTerminalReviewAnalyticsClaudeCatalog · memory recallA catalog read timed out. Any prior lesson?Found M17 in Checkout’s approved lessons.It applies to a timed out GET.CodexCatalog · replayApply M17 to this read.The retry returned 200. Writes stay untouched.Now replay all eight cases with and without M17.4/8 -AgentsTerminalReviewAnalyticsLearning analyticsCatalog · run 2Passing cases by replay■Without memory■With M17Without memory6 / 8With lesson M178 / 8Both runs replay the same eight fresh cases.5/8 -AgentsTerminalReviewAnalyticsClaudeBilling · run 3A payment timed out. Can we retry?M17 covers reads. This was a POST.The payment may already have settled.CodexBilling · payment traceCheck the receipt before doing anything.I’ll read the ledger by payment ID.The original charge appears once.6/8 -AgentsTerminalReviewAnalyticsTerminalBilling · simulated replay$npm test -- payment-timeout✓Response lost after charge✓Payment lookup found receipt✓Charge attempts: 1✓Duplicate charges: 0✓Owner review requestedReceipt attached to the run7/8 -AgentsTerminalReviewAnalyticsReviewBilling · decisionCodex · BillingPayment ID matched one ledger entry. request: POST /charge receipt: settled action: keep original chargeOwner decisionConfirm✓ ConfirmedReceipt and decision saved with run 3.8/8 +AgentsTerminalReviewAnalyticsClaudeCheckout · run 1Why did the second read succeed?The first GET timed out. A retry worked.Try one retry on reads only.CodexCheckout · same traceTest Claude’s rule before we reuse it.Checking reads, writes and repeat timeouts.I’ll attach the results for review.1/11 +AgentsTerminalReviewAnalyticsTerminalCheckout · simulated session$npx ruflo@latest init›/ruflo · Claude Code$npm test -- retry✓GET timeout: retry once✓POST timeout: stop✓Second timeout: stop3 rule checks passed2/11 +AgentsTerminalReviewAnalyticsReviewReview before savingCodex · CheckoutTrace and three checks attached.− on timeout: stop+ GET: retry once+ writes: never retryOwner decisionApprove✓ ApprovedLesson M17 saved with its test evidence.3/11 +AgentsTerminalReviewAnalyticsClaudeCatalog · memory recallA catalog read timed out. Any prior lesson?Found M17 in Checkout’s approved lessons.It applies to a timed out GET.CodexCatalog · replayApply M17 to this read.The retry returned 200. Writes stay untouched.Now replay all eight cases with and without M17.4/11 +AgentsTerminalReviewAnalyticsLearning analyticsCatalog · run 2Passing cases by replay■Without memory■With M17Without memory6 / 8With lesson M178 / 8Both runs replay the same eight fresh cases.5/11 +AgentsTerminalReviewAnalyticsClaudeBilling · run 3A payment timed out. Can we retry?M17 covers reads. This was a POST.The payment may already have settled.CodexBilling · payment traceCheck the receipt before doing anything.I’ll read the ledger by payment ID.The original charge appears once.6/11 +AgentsTerminalReviewAnalyticsTerminalBilling · simulated replay$npm test -- payment-timeout✓Response lost after charge✓Payment lookup found receipt✓Charge attempts: 1✓Duplicate charges: 0✓Owner review requestedReceipt attached to the run7/11 +AgentsTerminalReviewAnalyticsReviewBilling · decisionCodex · BillingPayment ID matched one ledger entry. request: POST /charge receipt: settled action: keep original chargeOwner decisionConfirm✓ ConfirmedReceipt and decision saved with run 3.8/11 +AgentsTerminalReviewAnalyticsADRArchitecture decision recordA1 · Retry policyWhy: repeating a charge can bill twice.Reads: retry once on timeoutWrites: look up the receiptEvidence: M17 + Billing traceOwner decisionAccept✓ AcceptedADR A1 accepted. Lesson M17 cites A1.9/11 +AgentsTerminalReviewAnalyticsClaudeOrders · run 4A read timed out. What did Checkout learn?Memory found M17, backed by ADR A1.One retry is allowed for this GET.CodexOrders · replayDid the retry help before the deadline?The retry succeeded after the caller left.Record the late result as a failed case.10/11 +AgentsTerminalReviewAnalyticsReviewADR revision · proposedA2 · DeadlineReplay: the old rule missed the caller deadline. A1: retry a timed out GET+ A2: check remaining time Keep the write restrictionOwner decisionApprove✓ ApprovedA2 supersedes A1. M17 now cites A2.11/11