{"playbook":"Technical due diligence","url":"https://agentwranglers.se/playbook/due-diligence","updated":"2026-10-27","license":"https://creativecommons.org/licenses/by/4.0/","credit":"Required by the licence: credit Agent Wranglers with a link to the rule or playbook you used.","ids":"Each rule has an id, such as PAY-14, that never changes. Open a rule by its id at /r/PAY-14. Its revision changes whenever its content changes.","how":"Each rule's How and Measured text is on its own page: add .md to its url.","rules":[{"id":"TDD-1","revision":"2e40b9a713bf","updated":"2026-10-27","name":"Never sign a review of code you have changed","level":"Required","risk":"money","rule":"The person who signs a due diligence report has made no change to the code under review.","check":"The report names the signing reviewer. The repository history shows 0 commits by them, checked with the code host's commit search by author.","check_type":"static","url":"https://agentwranglers.se/playbook/due-diligence/scope-and-conduct/independent-reviewer","related":["/playbook/due-diligence/scope-and-conduct/findings-with-rule-ids","/playbook/due-diligence/preparing-to-sell/seller-self-review"],"sources":["https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final"]},{"id":"TDD-2","revision":"edbb10b1083b","updated":"2026-10-27","name":"Work from read-only access and delete copies afterwards","level":"Required","risk":"data","rule":"Review the target's code and systems with read-only access, and paste no code into outside AI tools without written permission. Delete every copy within 14 days of delivering the report.","check":"A push with the reviewer's access fails. The engagement record holds the written permission for any AI tool used, and a deletion note dated within 14 days of delivery.","check_type":"command","url":"https://agentwranglers.se/playbook/due-diligence/scope-and-conduct/read-only-and-delete","related":["/playbook/testing/test-data-and-environments/production-like-staging","/playbook/ai-assisted-development/isolation-and-credentials/tool-data-terms","/playbook/due-diligence/preparing-to-sell/technical-data-room"],"sources":["https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final"]},{"id":"TDD-3","revision":"54ae83f325fc","updated":"2026-10-27","name":"Tie every finding to a rule ID and evidence","level":"Recommended","rule":"Give every finding in a due diligence report the rule ID it breaks, a severity, the evidence and a fix estimate.","check":"A script reads the report's findings and fails when one lacks a rule ID, a severity, evidence or a fix estimate.","check_type":"command","url":"https://agentwranglers.se/playbook/due-diligence/scope-and-conduct/findings-with-rule-ids","related":["/playbook/due-diligence/scope-and-conduct/independent-reviewer","/playbook/due-diligence/scope-and-conduct/severity-scale","/playbook/engineering/version-control-and-review/name-principle-code-fix"],"sources":[]},{"id":"TDD-16","revision":"2b5757e7bb01","updated":"2026-10-27","name":"Rate every finding on a fixed severity scale","level":"Recommended","rule":"Rate each finding on one scale with four levels, defined in the report before any finding. The levels are deal-breaker, fix before closing, fix within 90 days and note.","check":"The report defines all four levels before its first finding. A script reads every finding and fails when one has no level, a level outside the four, or a Required rule rated as a note.","check_type":"command","url":"https://agentwranglers.se/playbook/due-diligence/scope-and-conduct/severity-scale","related":["/playbook/due-diligence/scope-and-conduct/findings-with-rule-ids","/playbook/due-diligence/preparing-to-sell/seller-self-review"],"sources":[]},{"id":"TDD-4","revision":"41a38a1d3ec5","updated":"2026-10-27","name":"Build the product from the company's own repository","level":"Required","risk":"money","stack":["lovable","bolt","replit","v0"],"rule":"Before signing, build and run the product from the company's own repository with read-only access, without help from the founders or the AI builder.","check":"The report records the commit hash built, the commands used and the result. It names the owner of each account from [Take control of every account before touching the code](https://agentwranglers.se/playbook/codebase-takeover/triage/take-control-of-accounts).","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/code-and-ownership/build-from-own-repository","related":["/playbook/codebase-takeover/triage/run-from-clean-checkout","/playbook/ai-assisted-development/apps-built-with-ai-builders/own-the-code","/playbook/codebase-takeover/triage/take-control-of-accounts","/playbook/due-diligence/code-and-ownership/tests-and-ci-health"],"sources":["https://reproducible-builds.org/docs/definition/"]},{"id":"TDD-5","revision":"fac14bb4d2b5","updated":"2026-10-27","name":"Confirm the company owns the code","level":"Required","risk":"law","rule":"Match every person and firm that wrote code to a signed agreement that gives the company the rights to it. Report each author without one as a finding.","check":"A script lists every commit author email in the history. Each one maps to a row in the rights table that names its agreement, or appears as a finding in the report.","check_type":"command","url":"https://agentwranglers.se/playbook/due-diligence/code-and-ownership/code-ownership-rights","related":["/playbook/due-diligence/code-and-ownership/licence-inventory","/playbook/open-source/contributions/contributor-sign-off","/playbook/due-diligence/preparing-to-sell/technical-data-room"],"sources":["https://www.copyright.gov/circs/circ30.pdf"]},{"id":"TDD-6","revision":"c680b817c334","updated":"2026-10-27","name":"List the licences of the code and every dependency","level":"Recommended","rule":"Produce a bill of materials with an SPDX licence identifier for every package, and assess each copyleft, unknown or missing licence in writing.","check":"The bill of materials, in SPDX or CycloneDX format, gives a licence for every package. Every copyleft, unknown or missing licence has a written assessment in the report.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/code-and-ownership/licence-inventory","related":["/playbook/open-source/licences-and-copyright/no-custom-licence","/playbook/open-source/licences-and-copyright/licence-in-package-metadata","/playbook/open-source/using-open-source/dependency-licence-policy","/playbook/due-diligence/code-and-ownership/code-ownership-rights","/playbook/application-security/supply-chain/sbom-and-provenance","/playbook/stack/delivery-and-infrastructure/sbom-and-signing","/playbook/ai-assisted-development/reviewing-agent-output/code-provenance"],"sources":["https://spdx.org/licenses/","https://opensource.org/licenses"]},{"id":"TDD-7","revision":"c033fa209e75","updated":"2026-10-27","name":"Scan the whole history for secrets","level":"Required","risk":"takeover","rule":"Run a secret scanner over every commit and branch of the repository, and test which found secrets still work. Every working secret is revoked before closing.","check":"The scan report covers every branch and every commit, and lists 0 verified live secrets, or each live secret has a revocation date before closing.","check_type":"static","url":"https://agentwranglers.se/playbook/due-diligence/code-and-ownership/history-secret-scan","related":["/playbook/stack/testing-and-code-quality/secret-scanner","/playbook/codebase-takeover/triage/rotate-inherited-secrets","/playbook/application-security/secrets-and-configuration/secrets-out-of-code"],"sources":["https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning","https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository","https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html"]},{"id":"TDD-8","revision":"892c58467e38","updated":"2026-10-27","name":"Find every part that depends on one person or one tool","level":"Recommended","rule":"For each critical area, record how many people can change it and which outside tools it cannot run without. Name every area with fewer than two people.","check":"For each of the five critical areas, the report lists its tools and the people who changed it in the last 12 months. Every area with fewer than two people is marked as a finding.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/code-and-ownership/single-points-of-failure","related":["/playbook/codebase-takeover/triage/record-handover-sessions","/playbook/compliance/processors-and-transfers/vendor-register","/playbook/codebase-takeover/triage/system-map"],"sources":[]},{"id":"TDD-9","revision":"fbbcd8147f2a","updated":"2026-10-27","name":"Ask the team to explain the critical paths without AI","level":"Recommended","rule":"Ask a team member to walk through payments, sign-in, permissions and data deletion in the code, without an AI tool. Record whether the explanation matched the code.","check":"The report records, for each of the four paths, who explained it and whether the explanation matched the code. It lists which of the four documents exist and their last change date.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/code-and-ownership/explain-without-ai","related":["/playbook/documentation/readme-and-docs-as-code/readme-sections","/playbook/documentation/readme-and-docs-as-code/linked-decision-records","/playbook/documentation/docs-for-coding-agents/runbooks-in-repo","/playbook/ai-assisted-development/setting-up-the-project/instructions-file"],"sources":[]},{"id":"TDD-10","revision":"e8b6539250d1","updated":"2026-10-27","name":"Check how the team reviews AI-written code","level":"Recommended","rule":"Sample the last 50 changes merged to the main branch. Record how many had a passing check run and a review by someone other than the author.","check":"For the last 50 merged changes, the report gives the share with an independent review and the share with a passing check run. It quotes the branch protection settings.","check_type":"command","url":"https://agentwranglers.se/playbook/due-diligence/code-and-ownership/ai-review-practice","related":["/playbook/engineering/version-control-and-review/protect-the-main-branch","/playbook/ai-assisted-development/reviewing-agent-output/independent-approval","/playbook/engineering/version-control-and-review/continuous-integration"],"sources":[]},{"id":"TDD-17","revision":"13e96aa6833a","updated":"2026-10-27","name":"Run the tests yourself and read 90 days of pipeline history","level":"Recommended","rule":"Run the full test suite on a clean checkout and record the pass rate and line and branch coverage of the critical paths. From the last 90 days of pipeline runs, record the failure rate, the flaky rate and the median duration.","check":"The report gives the test count, pass rate, skipped count, coverage per critical path, and the 90-day failure rate, flaky rate and median duration. Each number names the commit or the date range it came from.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/code-and-ownership/tests-and-ci-health","related":["/playbook/due-diligence/code-and-ownership/build-from-own-repository","/playbook/testing/test-quality/coverage-floor","/playbook/testing/flaky-and-slow-tests/quarantine-flaky-tests"],"sources":[]},{"id":"TDD-11","revision":"fc085a0a85ca","updated":"2026-10-27","name":"Test the access rules on the running product","level":"Required","risk":"data","rule":"With two test accounts in the running product, try to read and change the other account's records on every route. Check that no secret key ships to the browser and that payments are confirmed on the server.","check":"The report lists every route and table tested with the result for each, and the result of the browser bundle search. Every request for the other account's records fails.","check_type":"http","url":"https://agentwranglers.se/playbook/due-diligence/security-data-and-law/test-access-rules","related":["/playbook/accounts/roles-and-permissions/object-access","/playbook/data/multi-tenancy/row-level-security","/playbook/application-security/secrets-and-configuration/secrets-out-of-browser","/playbook/payments/payment-events-and-reconciliation/events-drive-fulfilment"],"sources":["https://wstg.owasp.org/v4.2/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References"]},{"id":"TDD-12","revision":"6ddf663d5c14","updated":"2026-10-27","name":"Check how personal data is handled","level":"Recommended","applies":["eu-users"],"rule":"Record whether a record of processing exists, which vendors receive personal data without a signed processing agreement, and whether deletion requests reach every store.","check":"The report states whether the record of processing exists and lists each vendor without a processing agreement. It gives the test deletion's result in every store.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/security-data-and-law/personal-data-review","related":["/playbook/compliance/records-and-data-map/records-of-processing","/playbook/codebase-takeover/triage/system-map","/playbook/compliance/processors-and-transfers/dpa-article-28"],"sources":["https://eur-lex.europa.eu/eli/reg/2016/679/oj"]},{"id":"TDD-13","revision":"d3eb12113a74","updated":"2026-10-27","name":"Record the product's Cyber Resilience Act duties","level":"Recommended","applies":["eu-users"],"rule":"State whether the Cyber Resilience Act covers the product. For a product it covers, name who reports exploited holes, the reporting route and the published support end date.","check":"The report says in scope or out of scope, with the reason. For a product in scope, it names the person who reports, the route and the support end date. Each missing one is listed as a finding.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/security-data-and-law/cra-duties-check","related":["/playbook/compliance/security-laws/cra-scope","/playbook/compliance/security-laws/cra-vulnerability-reporting","/playbook/compliance/security-laws/cra-support-period"],"sources":["https://digital-strategy.ec.europa.eu/en/policies/cra-summary"]},{"id":"TDD-18","revision":"6405a2daea4d","updated":"2026-10-27","name":"List every AI model the product depends on and its AI Act role","level":"Recommended","applies":["ai-features"],"rule":"List every model provider and model version the product calls, with the contract terms on training and data retention, the monthly cost and the fallback. Record the company's AI Act role and risk class for each AI feature.","check":"The report has one row per model with provider, model version, training terms, retention, monthly cost and a fallback test result. Every AI feature has an AI Act role and risk class, or a finding that says it has none.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/security-data-and-law/ai-dependency-review","related":["/playbook/compliance/processors-and-transfers/ai-provider-terms","/playbook/ai-features/latency-cost-and-fallbacks/provider-fallback","/playbook/compliance/ai-act/ai-register"],"sources":["https://eur-lex.europa.eu/eli/reg/2024/1689/oj"]},{"id":"TDD-19","revision":"2d366e041222","updated":"2026-10-27","name":"Time how long it takes to leave each sub-processor","level":"Recommended","rule":"List every sub-processor with the personal data it holds and the export path for that data. Record the measured or estimated time to move to another provider, and mark each one that has no export path.","check":"Every vendor in the invoices of the last 12 months appears in the report with data held, export path and time to leave. Each vendor without an export path has a finding with a severity.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/security-data-and-law/sub-processor-exit","related":["/playbook/compliance/processors-and-transfers/vendor-register","/playbook/compliance/processors-and-transfers/vendor-exit"],"sources":["https://eur-lex.europa.eu/eli/reg/2016/679/oj"]},{"id":"TDD-14","revision":"26abdb375177","updated":"2026-10-27","name":"Measure cost per customer over the last 12 months","level":"Recommended","rule":"Work out the monthly cost of hosting, the database, AI models and other usage-priced services per active customer, for each of the last 12 months.","check":"The report has a table of monthly cost per active customer per cost line, for 12 months or every month since launch.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/operations-and-growth/cost-per-customer","related":["/playbook/infrastructure/cost-and-ownership/cost-per-request"],"sources":[]},{"id":"TDD-15","revision":"f0bfa058dff4","updated":"2026-10-27","name":"List what must be rebuilt to grow","level":"Recommended","rule":"List every part that must be rebuilt to reach the buyer's growth plan. Give each an effort range and the load or date when it is needed.","check":"The report lists each item with an effort range in days and the user count, load or date by which it is needed.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/operations-and-growth/rebuild-list","related":["/playbook/architecture/technical-debt/debt-register","/playbook/codebase-takeover/rewrite-or-refactor/rewrite-conditions"],"sources":[]},{"id":"TDD-20","revision":"248eec76c04f","updated":"2026-10-27","name":"Measure delivery with the DORA metrics over 90 days","level":"Recommended","rule":"Compute the five DORA metrics from the last 90 days of version control and deploy history. They are change lead time, deployment frequency, failed deployment recovery time, change fail rate and deployment rework rate.","check":"The report gives all five metrics with the date range and the data source of each. A script recomputes them from the exported commit and deploy records and gets the same numbers.","check_type":"command","url":"https://agentwranglers.se/playbook/due-diligence/operations-and-growth/dora-metrics","related":["/playbook/engineering/ci-and-supply-chain/build-in-ci-and-verify"],"sources":["https://dora.dev/guides/dora-metrics/"]},{"id":"TDD-21","revision":"bb76bf040c46","updated":"2026-10-27","name":"Read 12 months of incidents and measured availability","level":"Recommended","rule":"Collect every incident of the last 12 months with its severity, duration, customers affected and postmortem. Compare measured availability per month with the team's service level objective.","check":"The report lists every incident of the last 12 months with severity, duration and a postmortem link or a finding that it has none. It shows measured availability per month next to the objective, from monitoring data.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/operations-and-growth/incident-history","related":["/playbook/operations/incidents/blameless-postmortems","/playbook/operations/service-levels/service-level-indicators","/playbook/due-diligence/operations-and-growth/customer-sla-review"],"sources":["https://sre.google/sre-book/postmortem-culture/","https://sre.google/sre-book/service-level-objectives/"]},{"id":"TDD-22","revision":"a0454eae2303","updated":"2026-10-27","name":"Compare customer service levels with what the system delivers","level":"Recommended","rule":"List every service level promised in customer contracts, with its measure and the credits it owes. Compare each one with 12 months of measured availability, and add up the credits owed but not paid.","check":"The report has one row per promise with contract, measure, promised value, measured value and credits owed. A promise whose measured value missed the target in any month of the last 12 has a finding with a severity.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/operations-and-growth/customer-sla-review","related":["/playbook/due-diligence/operations-and-growth/incident-history","/playbook/operations/service-levels/service-credits"],"sources":[]},{"id":"TDD-23","revision":"4f526f34b014","updated":"2026-10-27","name":"Run the buyer's checks on yourself before the review","level":"Recommended","rule":"Before you open the data room, run every rule in this playbook against your own product. Rate each finding on the same scale, and fix or explain each deal-breaker.","check":"A self-review report exists, dated within 90 days of opening the data room, covering every rule ID in this playbook. It has 0 open deal-breakers, and each other open finding has an owner and a date.","check_type":"manual","url":"https://agentwranglers.se/playbook/due-diligence/preparing-to-sell/seller-self-review","related":["/playbook/due-diligence/scope-and-conduct/independent-reviewer","/playbook/due-diligence/scope-and-conduct/severity-scale"],"sources":[]},{"id":"TDD-24","revision":"4eab381f6814","updated":"2026-10-27","name":"Keep a technical data room ready","level":"Recommended","rule":"Keep one folder with the documents a technical review asks for, each with an owner and a date updated within the last 90 days. A script lists any document that is missing or older than that.","check":"A script compares the folder with the list of required documents. It fails when one is missing or was last updated more than 90 days ago.","check_type":"command","url":"https://agentwranglers.se/playbook/due-diligence/preparing-to-sell/technical-data-room","related":["/playbook/due-diligence/code-and-ownership/code-ownership-rights","/playbook/due-diligence/scope-and-conduct/read-only-and-delete"],"sources":[]}]}