<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sys-ronin</title>
    <description>The latest articles on DEV Community by sys-ronin (@sys-ronin).</description>
    <link>https://dev.to/sys-ronin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3976523%2F60e91662-5731-4957-b374-9d4841750a7d.png</url>
      <title>DEV Community: sys-ronin</title>
      <link>https://dev.to/sys-ronin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sys-ronin"/>
    <language>en</language>
    <item>
      <title>Prior Art as Code: A practical guide to protecting open source innovations</title>
      <dc:creator>sys-ronin</dc:creator>
      <pubDate>Wed, 01 Jul 2026 13:06:53 +0000</pubDate>
      <link>https://dev.to/sys-ronin/prior-art-as-code-a-practical-guide-to-protecting-open-source-innovations-o96</link>
      <guid>https://dev.to/sys-ronin/prior-art-as-code-a-practical-guide-to-protecting-open-source-innovations-o96</guid>
      <description>&lt;h2&gt;
  
  
  Prior Art as Code: A Practical Guide
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Protect your open source project from patent trolls by embedding prior art in your repository
&lt;/h2&gt;




&lt;h2&gt;
  
  
  1. What Is Prior Art?
&lt;/h2&gt;

&lt;p&gt;Prior art is any public evidence that an invention already exists. Under US law (35 U.S.C. § 102(a)(1)), an invention cannot be patented if it was "described in a printed publication" before the filing date. Under European law (EPC Article 54(2)), the state of the art includes "everything made available to the public" before filing. The EPO's G 1/23 decision (2025) clarified that public availability alone is sufficient – no reproducibility required.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prior art proves the invention was already known.&lt;/strong&gt; That makes any later patent invalid.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Why Prior Art Matters for Open Source
&lt;/h2&gt;

&lt;p&gt;Open source projects are prime targets for patent trolls because:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Threat&lt;/th&gt;
&lt;th&gt;Why It Matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Code is public&lt;/td&gt;
&lt;td&gt;Trolls can scan for novel inventions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No patent budget&lt;/td&gt;
&lt;td&gt;Most open source projects cannot afford to file or defend patents&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No legal team&lt;/td&gt;
&lt;td&gt;Individual contributors are vulnerable to lawsuits&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;The solution is prior art.&lt;/strong&gt; It costs nothing, requires no legal fees, and blocks patents before they are filed.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. The Problem with Traditional Defensive Publications
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;th&gt;Why It Fails&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Separate from code&lt;/td&gt;
&lt;td&gt;Hard to find, easy to ignore&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expensive&lt;/td&gt;
&lt;td&gt;Many services charge fees (IP.com, etc.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Static&lt;/td&gt;
&lt;td&gt;Rarely updated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Not enabling&lt;/td&gt;
&lt;td&gt;Vague descriptions do not convince examiners&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unverifiable&lt;/td&gt;
&lt;td&gt;No working code to prove the invention works&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Traditional defensive publications are weak prior art.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Prior Art as Code: A Better Approach
&lt;/h2&gt;

&lt;p&gt;Prior art as code embeds prior art directly in your source repository. It provides:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Benefit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Integrated with code&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Documents live alongside the implementation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Timestamped by Git&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Immutable proof of publication date&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Enabling disclosure&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Enough detail to re‑implement the invention&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Verifiable&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Working code is the evidence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Free&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Public repositories cost nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Searchable&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Patent examiners can find it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;This is stronger prior art.&lt;/strong&gt; It is enabling, verifiable, and timestamped.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Example: Thought OS
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Thought OS&lt;/strong&gt; is a real open source project that uses this approach. Its repository contains a comprehensive prior art document with various disclosed concepts, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;UUID permanence (items keep identity across renames)&lt;/li&gt;
&lt;li&gt;Hardware binding without TPM&lt;/li&gt;
&lt;li&gt;Resurrection from Git history&lt;/li&gt;
&lt;li&gt;Active cache validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each concept is described in its own separate document, making it easy to update, reference, and understand individually. The main document indexes them all. This modular approach is recommended for complex projects.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;For reference: &lt;a href="https://github.com/sjyotis/thought-os" rel="noopener noreferrer"&gt;https://github.com/sjyotis/thought-os&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  6. The Prior Art Document Itself Is Sufficient
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The prior art document alone, with working code and a timestamp, is sufficient to establish prior art and invalidate later patents.&lt;/strong&gt; The law itself provides the protection – 35 U.S.C. § 102(a)(1) and EPC Article 54(2) invalidate any patent that claims an invention already disclosed.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. How to Implement Prior Art as Code
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Identify Your Novel Inventions
&lt;/h3&gt;

&lt;p&gt;Ask: "What would I be angry about if someone else patented?"&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Write an Enabling Description
&lt;/h3&gt;

&lt;p&gt;Include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Plain language summary&lt;/li&gt;
&lt;li&gt;Technical specification (data structures, algorithms, protocols)&lt;/li&gt;
&lt;li&gt;Code references (files and line numbers)&lt;/li&gt;
&lt;li&gt;Diagrams (flowcharts, sequence diagrams)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 3: Create Prior Art Documents
&lt;/h3&gt;

&lt;p&gt;For simple projects, a single &lt;code&gt;PRIOR_ART_DISCLOSURE.md&lt;/code&gt; is enough. For complex projects with multiple independent features, create &lt;strong&gt;separate documents per concept&lt;/strong&gt; in a &lt;code&gt;docs/&lt;/code&gt; folder (e.g., &lt;code&gt;docs/resurrection-engine.md&lt;/code&gt;, &lt;code&gt;docs/hardware-binding.md&lt;/code&gt;). Use a main &lt;code&gt;PRIOR_ART_DISCLOSURE.md&lt;/code&gt; as an index linking to each.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Timestamp with Git
&lt;/h3&gt;

&lt;p&gt;Commit the documents with a message like &lt;code&gt;docs: add prior art disclosure&lt;/code&gt;. The commit timestamp proves publication date.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Link It in Your README
&lt;/h3&gt;

&lt;p&gt;Make the prior art document easy to find. Patent examiners need to discover it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Publish Publicly
&lt;/h3&gt;

&lt;p&gt;Push to a public repository (GitHub, GitLab, etc.). Public availability is what matters.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Suggested Platforms for Publication
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Best For&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;GitHub&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Source code + documents&lt;/td&gt;
&lt;td&gt;The standard for open source; patent examiners search here&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;GitLab&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Source code + documents&lt;/td&gt;
&lt;td&gt;Alternative to GitHub; also searchable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SourceForge&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Source code + documents&lt;/td&gt;
&lt;td&gt;Legacy platform, still indexed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;IP.com&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Prior art submission&lt;/td&gt;
&lt;td&gt;Paid service, submitted to patent offices&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Zenodo&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Document publication&lt;/td&gt;
&lt;td&gt;Assigns DOI (persistent identifier)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;arXiv&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Technical papers&lt;/td&gt;
&lt;td&gt;Academic-style prior art&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hacker News&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Project announcements&lt;/td&gt;
&lt;td&gt;Creates social timestamp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dev.to&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Technical articles&lt;/td&gt;
&lt;td&gt;Searchable, indexed by Google&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Best practice:&lt;/strong&gt; Publish on GitHub + one other platform (e.g., Zenodo) for redundancy.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Optional: Patent‑Prohibiting License
&lt;/h2&gt;

&lt;p&gt;While the prior art document alone is sufficient to invalidate later patents, you may choose to add an explicit patent‑prohibiting license. Such a license:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explicitly forbids patenting of the disclosed concepts&lt;/li&gt;
&lt;li&gt;Provides a separate legal basis (contract law) to challenge a patent&lt;/li&gt;
&lt;li&gt;Sends a clear signal that the technology belongs to no one&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is &lt;strong&gt;optional&lt;/strong&gt;. The prior art is the shield. The license is an extra lock on the gate.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. Why Prior Art as Code Is Stronger
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspect&lt;/th&gt;
&lt;th&gt;Traditional Prior Art&lt;/th&gt;
&lt;th&gt;Prior Art as Code&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;Paid&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Integration&lt;/td&gt;
&lt;td&gt;Separate&lt;/td&gt;
&lt;td&gt;Integrated with code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Timestamp&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Git commits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enabling&lt;/td&gt;
&lt;td&gt;Often vague&lt;/td&gt;
&lt;td&gt;Detailed, with code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Verifiable&lt;/td&gt;
&lt;td&gt;Hard&lt;/td&gt;
&lt;td&gt;Working code is evidence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Modularity&lt;/td&gt;
&lt;td&gt;Single document&lt;/td&gt;
&lt;td&gt;Separate files per concept&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Prior art as code is stronger because it provides all the evidence needed.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  11. Conclusion
&lt;/h2&gt;

&lt;p&gt;Prior art as code is a free, effective way to protect open source projects from patents. It works by:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Establishing a public, timestamped, enabling disclosure&lt;/li&gt;
&lt;li&gt;Referencing the actual working code&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The prior art document itself is sufficient.&lt;/strong&gt; The law (35 U.S.C. § 102(a)(1), EPC Article 54(2)) invalidates any later patent claiming the disclosed concepts. A patent‑prohibiting license is optional – it adds an extra layer but is not required.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every open source project should consider prior art as code.&lt;/strong&gt; It costs nothing. It blocks patents. It protects innovation.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;sjyotis&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
June 2026&lt;br&gt;&lt;br&gt;
&lt;a href="mailto:thought-os@protonmail.com"&gt;thought-os@protonmail.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>github</category>
    </item>
    <item>
      <title>Prior Art: The data structure that shapes Thought OS</title>
      <dc:creator>sys-ronin</dc:creator>
      <pubDate>Fri, 19 Jun 2026 12:19:47 +0000</pubDate>
      <link>https://dev.to/sys-ronin/the-data-structure-that-shapes-thought-os-3h8b</link>
      <guid>https://dev.to/sys-ronin/the-data-structure-that-shapes-thought-os-3h8b</guid>
      <description>&lt;h1&gt;
  
  
  The Three‑File Architecture
&lt;/h1&gt;

&lt;h2&gt;
  
  
  The Foundation of the Entire System
&lt;/h2&gt;




&lt;h2&gt;
  
  
  1. The Division
&lt;/h2&gt;

&lt;p&gt;Every notebook repository contains exactly three JSON files:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;structure.json&lt;/code&gt; – the notebook hierarchy: names, UUIDs, parent relationships, and references to notes and subnotebooks.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;notes.json&lt;/code&gt; – content of regular notes, keyed by UUID.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;files.json&lt;/code&gt; – content of file notes (any file type), also keyed by UUID.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This separation is the foundation upon which every other feature is built.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Why Three Files, Not One
&lt;/h2&gt;

&lt;p&gt;A single file containing everything (structure and all content) would create a single point of change for any modification. Every note edit would require rewriting the entire file. Git would store a full new version each time, regardless of delta compression, because the file would be completely different.&lt;/p&gt;

&lt;p&gt;By separating structure from content:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Renaming a notebook or moving a note changes only &lt;code&gt;structure.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Editing a note changes only &lt;code&gt;notes.json&lt;/code&gt; (or &lt;code&gt;files.json&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Adding a file changes only &lt;code&gt;files.json&lt;/code&gt; and &lt;code&gt;structure.json&lt;/code&gt; (but structure is a small addition).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each file evolves independently. Git stores deltas for each file separately, so a small change in &lt;code&gt;notes.json&lt;/code&gt; results in a small delta. The repository size grows with the number of changes, not with the number of versions times the total size.&lt;/p&gt;

&lt;p&gt;This is the primary mechanism that keeps the Git storage footprint low over years of use.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. UUID as the Common Key
&lt;/h2&gt;

&lt;p&gt;All three files use the same UUIDs to refer to notes and files.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;structure.json&lt;/code&gt; contains notes entries with &lt;code&gt;id&lt;/code&gt; fields.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;notes.json&lt;/code&gt; has keys equal to those UUIDs.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;files.json&lt;/code&gt; also uses the same UUIDs as keys.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When a note is created, a UUID is generated. That UUID is stored in &lt;code&gt;structure.json&lt;/code&gt; (as part of the note’s entry) and also becomes a key in &lt;code&gt;notes.json&lt;/code&gt; (or &lt;code&gt;files.json&lt;/code&gt;). The two are linked by the UUID.&lt;/p&gt;

&lt;p&gt;This allows the system to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Load the structure without loading content.&lt;/li&gt;
&lt;li&gt;Load a note’s content by looking up its UUID in the appropriate content file.&lt;/li&gt;
&lt;li&gt;Load content for a list of notes without scanning the structure again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because the link is by UUID, the content files are simple dictionaries. No complex mapping is needed.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. How This Enables Navigation
&lt;/h2&gt;

&lt;p&gt;Navigation (home screen, notebook view, subnotebook view) requires only &lt;code&gt;structure.json&lt;/code&gt;. The user sees a list of notes with titles, timestamps, and file indicators. None of that needs the actual content.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When the user opens a notebook, &lt;code&gt;structure.json&lt;/code&gt; is read. The notes list is built from the &lt;code&gt;notes&lt;/code&gt; array. The content of the notes is &lt;strong&gt;not loaded&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;When the user scrolls through the list, only the &lt;code&gt;structure.json&lt;/code&gt; data is used.&lt;/li&gt;
&lt;li&gt;The lock button can unload &lt;code&gt;structure.json&lt;/code&gt; when locking a notebook, freeing memory. The content files are not even loaded, so no memory is wasted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If structure and content were combined, unlocking a notebook would load all content automatically, increasing memory footprint and startup time.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. How This Enables Git History
&lt;/h2&gt;

&lt;p&gt;Git commits record changes to these files individually. Because they are separate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A commit that renames a note touches only &lt;code&gt;structure.json&lt;/code&gt;. The content file remains unchanged.&lt;/li&gt;
&lt;li&gt;A commit that edits a note touches only &lt;code&gt;notes.json&lt;/code&gt;. The structure file remains unchanged.&lt;/li&gt;
&lt;li&gt;A commit that deletes a note touches &lt;code&gt;structure.json&lt;/code&gt; (to remove the entry) and the appropriate content file (to remove the mapping). The two changes are in separate files, but they are part of the same commit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This separation means that when you view the history of a note, the &lt;code&gt;git log&lt;/code&gt; command can be scoped to &lt;code&gt;notes.json&lt;/code&gt;. It does not need to filter through commits that only changed structure. Conversely, activity view for a notebook (showing renames) can focus on &lt;code&gt;structure.json&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The commit messages embed the UUID and the action. Git does not need to parse the file content to understand what changed; the metadata is in the message.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. How This Enables Resurrection
&lt;/h2&gt;

&lt;p&gt;Resurrection requires reconstructing an item from a past commit. Because structure and content are separate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The structure at a given commit is retrieved from &lt;code&gt;structure.json&lt;/code&gt; at that commit.&lt;/li&gt;
&lt;li&gt;The content is retrieved from &lt;code&gt;notes.json&lt;/code&gt; or &lt;code&gt;files.json&lt;/code&gt; at the same commit.&lt;/li&gt;
&lt;li&gt;The UUID links the two.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the files were combined, reconstructing a single note would require loading the entire monolithic file and extracting the relevant parts. With separation, only the necessary parts are loaded: the structure entry for the note and its content entry.&lt;/p&gt;

&lt;p&gt;The timeline engine uses this to reconstruct only the requested item, not the whole notebook.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. How This Enables Precise Deletion with &lt;code&gt;git‑filter‑repo&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;When erasing a note, &lt;code&gt;git-filter-repo&lt;/code&gt; is told to operate only on &lt;code&gt;structure.json&lt;/code&gt;, &lt;code&gt;notes.json&lt;/code&gt;, and &lt;code&gt;files.json&lt;/code&gt;. Because the content is separate from the structure:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Removing a note requires removing its entry from &lt;code&gt;structure.json&lt;/code&gt; and its key from &lt;code&gt;notes.json&lt;/code&gt; (or &lt;code&gt;files.json&lt;/code&gt;). Both are in separate files.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;UUIDEraseFilter&lt;/code&gt; can target these specific files, leaving other files untouched.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the data were combined, erasing a note would require rewriting a single large file, potentially affecting other notes in the same file. Because of the separation, the operation is scoped and safe.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. How This Enables Restoration
&lt;/h2&gt;

&lt;p&gt;Restoration is the inverse of deletion. When a note is restored:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The structure entry is added back to &lt;code&gt;structure.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The content entry is added back to &lt;code&gt;notes.json&lt;/code&gt; (or &lt;code&gt;files.json&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;The UUID is reused; no new ID is generated.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because structure and content are separate, adding them back is a simple insertion. The restore process does not need to merge two different file formats; it just appends to the appropriate JSON dictionaries and writes the files.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. How This Enables Memory Efficiency
&lt;/h2&gt;

&lt;p&gt;When a notebook is unlocked:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;structure.json&lt;/code&gt; is read and parsed. This gives the entire note list (titles, timestamps, etc.) without loading any content.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;notes.json&lt;/code&gt; and &lt;code&gt;files.json&lt;/code&gt; are &lt;strong&gt;not read&lt;/strong&gt; until a note is viewed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When a note is viewed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The appropriate content file is read and parsed.&lt;/li&gt;
&lt;li&gt;The entire dictionary is loaded, but only one note’s content is displayed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When the user returns to the notebook list, the content dictionary can be discarded (in practice, it stays until the notebook is locked or the app exits, but it is not needed for the list). The structure remains in memory, but structure is small compared to content.&lt;/p&gt;

&lt;p&gt;If structure and content were combined, unlocking a notebook would load all content automatically, consuming memory proportional to the total size of all notes.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. How This Enables the Lock Button as Memory Manager
&lt;/h2&gt;

&lt;p&gt;Locking a notebook discards:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The parsed &lt;code&gt;structure.json&lt;/code&gt; (the note list).&lt;/li&gt;
&lt;li&gt;The parsed &lt;code&gt;notes.json&lt;/code&gt; and &lt;code&gt;files.json&lt;/code&gt; (if they were loaded).&lt;/li&gt;
&lt;li&gt;The encryption key.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because structure and content are separate, locking can be selective. The system does not need to keep structure in memory once the notebook is locked; it can be reloaded from disk when unlocked again.&lt;/p&gt;

&lt;p&gt;If structure and content were combined, locking would either have to keep the combined structure in memory (wasting memory) or discard it entirely (requiring a full reload on unlock, which would reload all content as well). The separation allows fine‑grained control.&lt;/p&gt;




&lt;h2&gt;
  
  
  11. How This Enables Git Delta Efficiency
&lt;/h2&gt;

&lt;p&gt;Git stores each file independently. Because structure and content are separate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;structure.json&lt;/code&gt; changes frequently but remains small (a few kilobytes). Git stores deltas for it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;notes.json&lt;/code&gt; and &lt;code&gt;files.json&lt;/code&gt; grow over time but change only when their corresponding notes are edited. Each edit produces a small delta (the change in the encrypted blob, which Git compresses further).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If all data were in one file, every edit would change the entire file. Even with delta compression, the first edit after a large addition would create a large delta because the file would shift. Separation prevents this.&lt;/p&gt;




&lt;h2&gt;
  
  
  12. How This Enables Deterministic UUID‑Level Synchronisation
&lt;/h2&gt;

&lt;p&gt;The three‑file architecture is the foundation for the sync algorithm. Because each UUID has its own independent chain of commits grouped by UUID, the system can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Collect commits per UUID&lt;/strong&gt; without parsing content. The commit message contains the UUID, and the raw blobs of the three files are captured as they are.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resolve conflicts by timestamp&lt;/strong&gt; for each UUID independently. Because notes are stored as key‑value pairs, changes to different UUIDs never interfere with each other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replay winning commits&lt;/strong&gt; by simply writing the raw encrypted blobs. Each commit is a complete snapshot of the three files. Writing the blobs overwrites only the changed UUID’s entry, leaving other UUIDs untouched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Preserve non‑conflicting edits&lt;/strong&gt; automatically. If one side added a note (UUID‑A) and the other side added a different note (UUID‑B), both chains are kept. The final state contains both notes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Avoid merge commits entirely&lt;/strong&gt; because the sync algorithm rebuilds history on an orphan branch, never creating merge commits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If structure and content were combined, a single commit would contain changes to multiple UUIDs. Grouping by UUID would be impossible without parsing the entire file. Conflict resolution would require merging file contents, not just comparing timestamps. The sync algorithm would become as complex as Git’s own merge. The three‑file architecture makes UUID‑level sync possible and simple.&lt;/p&gt;




&lt;h2&gt;
  
  
  13. Why This Design Is the Foundation for Everything
&lt;/h2&gt;

&lt;p&gt;Without this separation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Navigation would require loading content.&lt;/li&gt;
&lt;li&gt;Git history would be a single file’s history, making it impossible to separate structure changes from content changes.&lt;/li&gt;
&lt;li&gt;Resurrection would require reconstructing a monolithic file.&lt;/li&gt;
&lt;li&gt;Deletion with &lt;code&gt;git-filter-repo&lt;/code&gt; would be imprecise and risk affecting unrelated data.&lt;/li&gt;
&lt;li&gt;Restoration would be a full‑file rewrite.&lt;/li&gt;
&lt;li&gt;Memory would be tied to total note count, not active use.&lt;/li&gt;
&lt;li&gt;The lock button could not unload structure independently of content.&lt;/li&gt;
&lt;li&gt;Git storage would grow much faster because each edit would rewrite the entire notebook state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Synchronisation would be impossible&lt;/strong&gt; without complex file‑level merging, and per‑item conflict resolution would not exist.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This separation is not an implementation detail. It is the central architectural decision that enables every other feature:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Navigation&lt;/strong&gt; – uses structure only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git history&lt;/strong&gt; – separate files mean separate history streams.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resurrection&lt;/strong&gt; – reconstruct by UUID from two separate files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Filter‑repo deletion&lt;/strong&gt; – target specific files, not the whole notebook.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restoration&lt;/strong&gt; – append to two separate files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory efficiency&lt;/strong&gt; – load structure without content, load content on demand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lock button&lt;/strong&gt; – discard structure, content, and key independently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage efficiency&lt;/strong&gt; – small deltas for small changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Synchronisation&lt;/strong&gt; – per‑UUID commit chains, timestamp‑based conflict resolution, linear history reconstruction.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every feature you built rests on this single decision: keep the notebook’s blueprint separate from its contents, and link them by UUID. Without it, the system would be a conventional note‑taking app. With it, it becomes a versioned, memory‑efficient, resurrectable, securely erasable, and synchronisable knowledge base.&lt;/p&gt;

&lt;p&gt;This is why the three‑file architecture is the most important part of the codebase. It is not merely a storage format; it is the enabling structure for everything that follows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/sys-ronin/terminal-notes/" rel="noopener noreferrer"&gt;terminal-notes - github&lt;/a&gt;&lt;br&gt;
&lt;a href="mailto:sys_ronin@protonmail.com"&gt;sys_ronin@protonmail.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;sys-ronin&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>distributedsystems</category>
      <category>ai</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>An example where AI/LLM is used to create an architecture under the architects strict instruction</title>
      <dc:creator>sys-ronin</dc:creator>
      <pubDate>Tue, 09 Jun 2026 19:59:23 +0000</pubDate>
      <link>https://dev.to/sys-ronin/a-python-terminal-writer-with-git-github-e2ee-sync-hardware-bound-keys-and-temporalsearch-po6</link>
      <guid>https://dev.to/sys-ronin/a-python-terminal-writer-with-git-github-e2ee-sync-hardware-bound-keys-and-temporalsearch-po6</guid>
      <description>&lt;p&gt;I am a 40 years old sysadmin with 25 years old system knowledge without any formal education (no cs degree) and no python experience.&lt;/p&gt;

&lt;p&gt;It is happened when i tried to design my note taking applications architecture Where I with my lack of formal education took a different path for building that (architecture) using AI/LLM.&lt;/p&gt;

&lt;p&gt;I accidentally built my own cognition just asking myself how i think. I just thought it will be a great idea if i follow my own thought process, how it remember everything without searching inside my head. Then later I found after a thorough research that it is something very rare incident, where i have designed an architecture what matches the theory of our human hippocampus. &lt;/p&gt;

&lt;p&gt;Though i created it for myself but I realised It is worthy enough to share the artefact built by AI/LLM and the discovery of what AI/LLM can do when instructed precisely with all its power. &lt;/p&gt;

&lt;p&gt;I found similarities where my every python modules works as various features, the notebook folder acts as the memory and the application as a whole works as the brain. Where it creates memory, remember memory, forgot memory, erase memory where uuid is used as engram.&lt;/p&gt;

&lt;p&gt;As it is accidentally built with my own cognition design (just like everybody else, same human brain), I found it does not need any learning curve and really helpful for writing, where I don't have to fight with the application for its distraction during writing.&lt;/p&gt;

&lt;p&gt;Some of its features:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Only python 3.13, git and an editor is needed.&lt;/li&gt;
&lt;li&gt;No learning curve&lt;/li&gt;
&lt;li&gt;Unlimited notebooks/notes/files&lt;/li&gt;
&lt;li&gt;Temporal Search&lt;/li&gt;
&lt;li&gt;Git is used as item level versioning&lt;/li&gt;
&lt;li&gt;AES-GCM encryption&lt;/li&gt;
&lt;li&gt;Hardware bound movable vault without TPM&lt;/li&gt;
&lt;li&gt;USB drive can be used as vault.&lt;/li&gt;
&lt;li&gt;UI disappears while using&lt;/li&gt;
&lt;li&gt;Free conflict free sync using github&lt;/li&gt;
&lt;li&gt;App, Data and Keys can live separately&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The AI/LLM development methodology is not documented for its vastness.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/sys-ronin/terminal-notes" rel="noopener noreferrer"&gt;terminal-notes - github&lt;/a&gt;&lt;br&gt;
&lt;a href="mailto:sys_ronin@protonmail.com"&gt;sys_ronin@protonmail.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repo is published as "prior art"&lt;/p&gt;

&lt;p&gt;sys-ronin&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>hci</category>
      <category>ai</category>
      <category>computerscience</category>
    </item>
  </channel>
</rss>
