Claim the Mechanism — Patenting software that actually moves the needle
A sharp decision framework for patenting software innovations. When to file, when to publish defensively, when to keep trade secrets—with real examples from edge streaming, LLM prompts, and DOM diffing. Includes a 10-minute go/no-go worksheet you can use before every demo, paper, or release.
Software patents have a reputation problem. Most engineers see them as legal theater—abstract nonsense that blocks innovation instead of protecting it. But that reputation comes from bad patents: vague methods, obvious workflows, marketing disguised as invention. When you claim a real mechanism—a novel technical solution to a concrete problem—patents become strategic tools, not paperwork.
This guide is for the moment you're about to demo a new feature, publish a paper, or ship a technical release and you ask: *Should I patent this?*
We'll give you a sharp decision framework, four clear outcomes, real-world examples, and a 10-minute worksheet you can use to decide before you expose your work to the world.
---
The Decision Checklist: Patent or Not?
Run through these five questions in order. If you can't answer yes to all five, you probably shouldn't file.
1. Is it a technical mechanism, not just a business process?
Yes: An algorithm that reduces latency by 40%, a data structure that prevents race conditions, a protocol that eliminates round-trips. No: "A method for displaying ads based on user preferences," "A system for managing subscriptions," "An AI-powered recommendation engine" (without specifying how). Rule: If you can't draw a diagram or write pseudocode that shows the invention working, it's not patentable. USPTO and EPO both require technical character—software that improves how computers operate, not just what they display.2. Is it non-obvious to someone skilled in the field?
Yes: Combining two known techniques in a way that wasn't predictable, solving a problem that previously had no clean solution, achieving a result that surprised you when you first got it working. No: Using a cache to speed up lookups, storing data in JSON instead of XML, applying a standard library function to a new use case. Rule: If a competent engineer could arrive at the same solution in an afternoon given the same constraints, it's obvious. Obvious = not patentable.3. Does it have commercial or defensive value?
Commercial: Competitors will need this technique to match your performance, or licensees would pay to use it. Defensive: If you don't claim it, someone else might, and then block you from using your own invention. No value: It's a one-time solution, only applies to your internal tools, or the industry will route around it anyway. Rule: Patents cost $10–30K (US) and 18–36 months of legal attention. If the strategic value doesn't justify that, publish defensively instead.4. Can you disclose it without revealing trade secrets?
Yes: The mechanism itself is the value. Once competitors see the patent, they can implement it—but you still have first-mover advantage, brand, execution. No: The technique only works because of proprietary data, undisclosed parameters, or integration with secret systems. If you describe the algorithm, you give away the advantage. Rule: If the value is in keeping it secret, don't patent. Use trade secret protection instead (more on this below).5. Will it still matter in 3–5 years?
Patents take 2–4 years to issue (US), sometimes longer (EPO). By the time you have enforceable rights, will the technology still be relevant? Will the market still care?
Yes: Fundamental protocols, core algorithms, infrastructure techniques. These have long half-lives. No: UI patterns, API syntax, features tied to a specific platform version. These evolve faster than patent timelines. Rule: If the innovation will be obsolete before the patent issues, skip it. Focus on execution speed instead.---
Four Outcomes: What to Do Next
Based on your answers, pick one of these paths:
Outcome 1: File a Full Patent Application
When: You answered yes to all five questions. What to do:- Hire a patent attorney with software experience (not a generalist)
- Prepare: working code, diagrams, performance benchmarks, prior art analysis
- Budget $15–30K (US), €10–25K (EPO), more for global filing (PCT)
- Timeline: 18–36 months to first office action, 3–5 years to grant
→ File. This is a core technique with broad applicability and long relevance.
Outcome 2: File a Provisional, Gather Evidence, Decide in 12 Months
When: You're 80% sure it's patentable, but you need time to validate commercial value or you're not ready to spend $20K yet. What to do:- File a provisional patent application ($2–5K, sometimes DIY)
- This gives you 12 months of "patent pending" status
- Use that year to: ship the feature, measure adoption, see if competitors care, gather performance data
- Before the 12 months expire, either convert to a full application or let it lapse
→ Provisional. Lock in your priority date, ship it, see if it matters, then decide.
Outcome 3: Publish Defensively (No Patent)
When: The invention is real and non-obvious, but you don't want to pay for a patent and you don't want competitors to claim it either. What to do:- Publish a detailed technical description in a public, timestamped venue:
- This creates prior art that prevents anyone (including you) from patenting the same idea later
- You get freedom to operate; everyone else does too
→ Publish. Write a blog post with diagrams and code, post it on your site, tweet it, archive it on Wayback Machine. Now it's prior art.
Outcome 4: Keep It a Trade Secret (No Disclosure)
When: The value is in the secrecy, not the exclusivity. Or the mechanism depends on proprietary data, parameters, or infrastructure you won't disclose. What to do:- Do not file a patent (patents require full public disclosure)
- Do not publish it
- Protect it internally: NDAs, access controls, "confidential" markings, limited distribution
- Document that you're treating it as a trade secret (for legal protection under trade secret law)
→ Trade secret. Don't disclose. Keep it internal. Enforce confidentiality. This protection lasts as long as you keep it secret (no expiration), but if it leaks or someone reverse-engineers it, you lose all rights.
---
Real-World Examples: Patent, Provisional, Publish, or Secret?
Example A: Edge Streaming Protocol
Invention: A protocol that streams HTML fragments from edge workers, inserting tags that hydrate React islands only when visible in the viewport, reducing TTFB by 40% and TTI by 60%.
Analysis:
- Technical mechanism? Yes — concrete protocol with measurable performance gains
- Non-obvious? Yes — combines SSR, streaming, intersection observers in a novel sequence
- Commercial value? Yes — competitors (Vercel, Netlify, Cloudflare) will want similar performance
- Disclosure OK? Yes — the technique is valuable even if public; execution and infrastructure matter more
- Still relevant in 5 years? Yes — edge computing and streaming are long-term trends
Example B: LLM Prompt Templates
Invention: A library of prompt templates for GPT-4 that reduce hallucinations by 30% using chain-of-thought reasoning, few-shot examples, and output validation. Analysis:- Technical mechanism? Maybe — it's a process, but it's not clear if it improves how computers operate (USPTO requirement)
- Non-obvious? Maybe — prompt engineering is known; your specific templates might be clever but not necessarily inventive
- Commercial value? Low — prompts are easy to copy; the value is in your data and fine-tuning, not the templates
- Disclosure OK? No — if you publish the best prompts, competitors copy them immediately
- Still relevant in 5 years? No — prompt formats will change as models evolve
Example C: DOM Diffing Algorithm
Invention: A diffing algorithm for virtual DOM updates that marks subtrees with Merkle tree hashes, skipping reconciliation for unchanged branches, reducing re-renders by 60% vs. React. Analysis:- Technical mechanism? Yes — concrete algorithm with pseudocode
- Non-obvious? Yes — applying Merkle trees to virtual DOM is novel
- Commercial value? Yes — framework authors need this, or you could license it
- Disclosure OK? Yes — the algorithm is the value, not the implementation details
- Still relevant in 5 years? Yes — virtual DOM is foundational, this is an improvement
Example D: Internal Tooling for CI/CD
Invention: A build system that auto-detects changed modules and parallelizes tests across ephemeral containers, cutting CI time from 20 minutes to 4. Analysis:- Technical mechanism? Yes — it's a real system
- Non-obvious? Maybe — parallelizing tests is known; the container orchestration might be clever but not groundbreaking
- Commercial value? Low — this is internal tooling; no one would license it
- Disclosure OK? Yes — but there's no defensive threat (no one else will patent "parallel CI")
- Still relevant in 5 years? Maybe — CI evolves fast
---
Timing Rules: When You Must Decide
United States: 12-Month Grace Period
- You can publicly disclose (blog post, conference talk, product launch) and still file a US patent within 12 months
- After 12 months: barred from filing
- Rule: If you're demoing at a conference or launching a feature, you have 1 year to decide
- Trap: If you publish and a competitor files in the EU or China (no grace period), they can block you there even if you file in the US
Europe (EPO) and Most Other Countries: No Grace Period
- Any public disclosure before filing = prior art that invalidates your own patent
- You must file before you publish, demo, or ship
- Rule: If you want global protection, file first, launch second
China: No Grace Period (with narrow exceptions)
- Same as Europe: file before you disclose
- Enforcement is improving; if you're doing business in China, file there or risk copycats claiming your invention
Practical Workflow
- Before you demo/launch/publish: Run the 5-question checklist
- If yes to all five and you want global protection: File provisional (US) + priority filing (EP/CN) before disclosure
- If US-only: You can launch first, file within 12 months
- If unsure: File provisional (cheap, buys you 12 months), then decide
- If no patent value: Publish defensively or keep it a trade secret
---
Common Mistakes (and How to Avoid Them)
Mistake 1: Filing Too Late
Scenario: You launch a feature, it goes viral, then you try to file a patent 18 months later. Problem: In the US, you're barred after 12 months. In Europe/China, you were barred the day you launched. Fix: Decide before you disclose. If uncertain, file a provisional.Mistake 2: Describing What, Not How
Scenario: Your patent application says "a system for optimizing API responses using machine learning." Problem: That's a result, not a mechanism. Examiners will reject it as abstract. Fix: Describe the algorithm: "A neural network with architecture X, trained on dataset Y, using loss function Z, that predicts API response times and preloads slow endpoints." Show the mechanism.Mistake 3: Patenting Obvious Combinations
Scenario: You use Redis to cache database queries and claim "a method for accelerating data retrieval using in-memory storage." Problem: That's been done a million times. Obvious. Fix: Only file if your combination is non-obvious. Ask: Would a skilled engineer do this anyway? If yes, it's obvious.Mistake 4: Treating AI as an Inventor
Scenario: You used GPT-4 to generate the algorithm and list "ChatGPT" as an inventor. Problem: USPTO and EPO require human inventors. AI cannot be listed. Fix: List the humans who conceived the invention (even if AI assisted). Document human contribution.Mistake 5: Filing When Trade Secret Is Better
Scenario: Your competitive advantage is a secret dataset or proprietary parameter tuning. You file a patent that describes the algorithm but omits the secret parts. Problem: Competitors can now read your patent, implement the algorithm with their own data, and you've lost your advantage. Fix: Keep it a trade secret. Don't file.---
The 10-Minute Go/No-Go Worksheet
Use this before every demo, paper, or release:
| Question | Yes/No | Notes |
|---|---|---|
| 1. Is it a technical mechanism (algorithm, protocol, data structure)? | ||
| 2. Is it non-obvious to a skilled engineer? | ||
| 3. Does it have commercial or defensive value ($10–30K worth)? | ||
| 4. Can we disclose it without losing competitive advantage? | ||
| 5. Will it still matter in 3–5 years? |
- [ ] File full patent before disclosure (global) OR
- [ ] File provisional (US) + convert within 12 months OR
- [ ] Launch first (US only), file within 12 months
- [ ] File provisional, validate over 12 months
- [ ] Trade secret (do not disclose)
- [ ] Publish defensively (blog post, open-source, arXiv)
- [ ] Or ignore (not worth legal costs)
---
Related Reading
- TypeScript in 2025: Real AI, Real Types, Real Production — Type safety and runtime validation in AI-augmented workflows
- Billing & Settlement: Architecture for $1B/Month Precision — When technical mechanisms become defensible IP in financial systems
- OOP in 2025: Just Enough, Not Everything — Designing systems worth protecting (or not)
---
Conclusion: Claim the Mechanism, Not the Outcome
Bad software patents claim outcomes: "a method for improving user experience," "a system for optimizing performance." They're vague, obvious, and unenforceable.
Good software patents claim mechanisms: "a Merkle-tree-based diffing algorithm that skips reconciliation of unchanged subtrees by comparing cryptographic hashes at each node, reducing re-renders by 60% in React-like virtual DOM implementations."
The difference is specificity. If you can draw it, code it, and measure it—and if it's non-obvious, valuable, and durable—claim it. If not, publish it or keep it secret.
Run the checklist. Make the call. Move on.
Next time you're about to demo a breakthrough: Ask yourself, *Did we just build a mechanism worth claiming?* If yes, you have 10 minutes and a worksheet. Use them.