The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
docs: preserve runtime and verification lessons (#16379)
Dotta13e512816450
diff --git a/.agents/skills/verify-paperclip/SKILL.md b/.agents/skills/verify-paperclip/SKILL.mdindex b570578d09..3bdc6e759e 100644--- a/.agents/skills/verify-paperclip/SKILL.md+++ b/.agents/skills/verify-paperclip/SKILL.md@@ -189,6 +189,26 @@ For Paperclip-assigned work, attach important proof throughthe evidence directory or issue, not in the map. The generated`maps/generated/coverage.json` lists page references, not live test health.+### Preserve failures through acceptance++A successful retry establishes that a later attempt succeeded. Retain earlier+material failures in the verification record, including the failed requirement,+relevant logs, and what changed before the retry. Use a focused comparison or+reproduction to determine whether the change caused the failure. When useful,+check the unchanged baseline under comparable conditions. If the cause remains+unknown, state that uncertainty; do not infer an infrastructure fault from a+passing retry alone.++Report recovery and resolution separately. A later passing journey can show+recovery without explaining the earlier failure. Do not describe acceptance as+complete while a relevant requirement remains unverified. Record the remaining+gap and the next discriminating check instead of repeating retries until green.++Apply this to failures that bear on the changed behavior or requested acceptance+criteria. Independently established infrastructure failures can be tracked+separately, with supporting evidence and any checks they prevented still marked+blocked or not run. This does not require investigating every unrelated failure.+## CleanupClose the browser context you created (the smoke does this in `finally`). Leavediff --git a/.greptile/files.json b/.greptile/files.jsonindex 6794bccb30..ccf54ad800 100644--- a/.greptile/files.json+++ b/.greptile/files.json@@ -16,6 +16,17 @@"path": "rules/product-harness-responsibility.mdc","description": "Product requirements and review criteria for harness responsibility, minimal user-facing internals, truthful progress, and human decisions."},+ {+ "path": "rules/runtime-dependency-boundaries.mdc",+ "description": "Dependency cost, responsiveness, and verification requirements for changed server, adapter, and runner execution paths.",+ "scope": [+ "server/src/**",+ "packages/adapter-utils/src/**",+ "packages/adapters/*/src/**",+ "packages/paperclip-runner/src/**",+ "packages/paperclip-runner/runner/**"+ ]+ },{"path": "rules/chat-channel-platform-boundaries.mdc","description": "Architecture requirements and review criteria for separating chat channel platform implementations from shared orchestration.",diff --git a/rules/pull-request-review.mdc b/rules/pull-request-review.mdcindex 1ba08c9631..8389d2a0b7 100644--- a/rules/pull-request-review.mdc+++ b/rules/pull-request-review.mdc@@ -11,6 +11,9 @@ This rule applies when reviewing pull requests throughout this repository.`.github/PULL_REQUEST_TEMPLATE.md`. Request missing thinking paths and missingexplanations of what changed, why it matters, the benefits, verification, orrisks.+- For verification claims, read and apply+ [Preserve failures through acceptance](../.agents/skills/verify-paperclip/SKILL.md#preserve-failures-through-acceptance).+ Check that material failures remain accounted for after a successful retry.- Do not request UI screenshots in PR reviews for this repository. Visual stateverification is described through component tests, enumeration of states inthe PR description, and use of existing design tokens. This repository rulediff --git a/rules/runtime-dependency-boundaries.mdc b/rules/runtime-dependency-boundaries.mdcnew file mode 100644index 0000000000..8f80f69e74--- /dev/null+++ b/rules/runtime-dependency-boundaries.mdc@@ -0,0 +1,54 @@+---+description: Account for dependency cost on shared runtime paths and test the assumptions that mocks can hide.+globs: server/src/**,packages/adapter-utils/src/**,packages/adapters/*/src/**,packages/paperclip-runner/src/**,packages/paperclip-runner/runner/**+alwaysApply: false+---++# Runtime dependency boundaries++Apply this rule when adding or moving dependency calls into startup, request+handling, discovery, or recurring orchestration in the server, adapters, or+runner. A dependency includes a runtime API, filesystem, database, subprocess,+or remote service.++## Account for the work at the call site++Establish what the dependency actually does: whether it blocks shared execution,+how often it runs, what its cost grows with, and how it fails or stops. Reading a+small result does not imply a cheap operation. Use implementation, documentation,+or measurement as evidence when the behavior is not established.++Match repeated work to how often its underlying facts can change. Account for+calls inside loops and repeated requests. Keep unrelated work responsive when+the dependency is slow or unavailable. If using a timeout or cancellation,+verify that it can take effect while the operation is running and account for+work that continues after the caller stops waiting.++## Test the assumption that could invalidate the design++Identify the consequential assumption introduced by the change and choose+evidence that could disprove it. Check whether mocks remove the behavior being+relied upon, such as timing, contention, cancellation, persistence, or external+side effects. Where they do, exercise that boundary with a representative real+dependency or a controlled fault that preserves the relevant behavior.++Verify the affected contract, including unrelated work that must remain+responsive, rather than only the returned value. Keep coverage proportional to+the changed behavior; an exhaustive environment matrix is unnecessary. Record+the assumption, evidence, and remaining limits in the PR's verification section.++## Examples and limits++- A configuration getter that reads a network filesystem needs evidence about+ slow or unavailable storage and the effect on other work using that process.+- A remote permission check moved inside a search-result loop needs evidence+ about call count and latency as the result set grows. Any reuse must preserve+ authorization scope and freshness.+- Reading an already-loaded map or changing a pure value transformation does+ not require dependency-failure testing unless the change introduces a+ consequential cost or behavior assumption. Cosmetic edits do not trigger it.++**Review:** Check the changed call sites, the operational assumption, and whether+the supplied evidence exercises it. Request missing evidence for a concrete risk+introduced by the change. Do not require unrelated refactors or a new benchmark+suite for every edit.