Defensive Technical Disclosure • Version 1.1

Sajimora™: Deterministic Cross-Language Contract Verification and Evidence-Grounded Static Analysis

An Incremental Platform for Polyglot Distributed Systems and Autonomous AI Coding Agents.

Author: The Sajimora™ Architecture & Research Group
Domain: sajimora.com
Correspondence: admin@sajimora.com
Document revision date: 1 November 2026
First public release: 1 November 2026
SHA-256 Digest: 9c6a57e9446bf203712dd6f0f2e1c3ce0fb636a4316d6d5de6f387da00f01656

Legal Notice & Intellectual Property Declaration

1. Defensive Technical Disclosure (Patents): This document publicly discloses selected technical methods, architectural concepts, and implementation approaches developed in connection with the Sajimora™ project. It is intended to make the subject matter expressly described herein publicly available for consideration as prior art under applicable patent laws, including 35 U.S.C. § 102 and EPC Article 54. Whether it affects a particular patent claim depends on the jurisdiction, actual public release date, accessibility, and sufficiency of the disclosure. This notice does not guarantee that any patent application or claim will be rejected.

2. Reservation of Rights (Copyright, Software & Trademarks): Copyright in this document's original text and diagrams remains with its respective copyright owner, except where separately licensed. This publication does not itself grant a licence to Sajimora software or source code; software is governed by its separate applicable licence. Rights in the Sajimora™ name, logos, and branding are addressed separately under applicable trademark laws. Use of the name here does not itself establish trademark registration.

Abstract

Modern software engineering is increasingly performed by autonomous AI coding agents and automated refactoring systems. However, autonomous agents face an architectural crisis when refactoring distributed enterprise systems: silent contract drift across polyglot boundaries. When backend APIs (Java Spring Boot, Micronaut, Go) evolve, lexical text search (grep, ripgrep) and probabilistic embedding retrieval (RAG) suffer from catastrophic semantic blindness—failing to resolve class inheritance, Jackson serialization aliases (@JsonProperty), and dynamic request envelopes, while flooding LLM context windows with tens of thousands of irrelevant tokens.

This whitepaper establishes the formal architecture of Sajimora™: (1) a cross-language Concrete Syntax Tree (CST) query engine achieving 98.66% context token reduction over lexical grep on enterprise codebases; (2) an evidence-grounded AI architecture where an embedded single-pass encoder proposes candidate evidence while a 100% deterministic Rust mathematical gate (VerdictAuthority) certifies soundness fail-closed. This document publicly discloses selected technical methods, architectural concepts, and implementation approaches developed in connection with the Sajimora™ project for consideration as potential prior art.

1. Introduction: The Failure Modes of Lexical Search

When an AI coding agent refactors an enterprise backend API, it must answer: “If I rename or delete this backend endpoint or field, what client call sites break?” In current practice, agents invoke lexical search tools (grep, ripgrep). Across an empirical benchmark of 20 production REST APIs in the ThingsBoard enterprise repository (a multi-million line Java backend + Angular frontend), lexical search demonstrated severe architectural failure modes:

1. Blindness to Inheritance

Controllers inherit endpoints from generic CRUD bases (e.g. DeviceController extends BaseCrudController<Device, UUID>). Grep searching DeviceController.java returns 0 matches, falsely certifying that an endpoint is dead.

2. Wire-Envelope Obfuscation

Frameworks wrap DTOs in reactive envelopes: ResponseEntity<Mono<Page<TbResourceInfo>>>. Grep cannot unwrap transparent containers, misinterpreting envelopes as structural data.

3. The Common Symbol Catastrophe

Modifying common words like .name floods the context window with 46,025 tokens (1,097 matched lines), triggering "Lost in the Middle" attention degradation and hallucinated repair loops.

4. Serialization Alias Invisibility

Renaming a field while preserving @JsonProperty("alias") triggers false breaking changes, while deleting @JsonProperty goes completely undetected by text search.

2. Closed-Loop Obligation Conservation

Sajimora™ models distributed cross-language verification as a closed-loop obligation conservation problem over an algebraic lattice. Let a path expression \(P\) be a sequence of segment atoms \(S_1 / S_2 / \dots / S_k\). The set of segment atoms forms a partial order \((\mathcal{S}, \sqsubseteq)\) ordered by matching specificity:

Literal(s) ⊏ Param(p, τ) ⊏ Wildcard(*) ⊏ RecursiveWildcard(**)

Let \(\mathcal{O}_{\text{net}}\) be the net unresolved contract obligations in a codebase. A build passes compilation if and only if \(\mathcal{O}_{\text{net}} = 0\). Any link where verification is inconclusive forces an immediate fail-closed build halt unless an immutable cryptographic exception hash exists in .sajimora/exceptions.sig.

3. Evidence-Grounded AI Architecture

A foundational architectural invariant is that AI is authorized to discover and propose candidate evidence; only deterministic Rust mathematics is authorized to certify verdicts.

STAGE 1: Single-Pass Slot-Tagging Encoder (sajimora-ai)
• Lightweight 25M–40M ModernBERT / Candle Rust runtime (< 50MB RAM)
• Single parallel forward pass: 3ms–5ms on standard consumer CPU
• Extracts candidate path and parameter provenance without sequential generation
STAGE 2: Salsa Symbol-Table Grounding Engine
• Binds extracted slots against active in-memory compiler symbol tables
• Validates configuration provenance and dependency call graphs
STAGE 3: Deterministic VerdictAuthority (Pure Rust Math)
• 100% Deterministic, Fail-Closed Verification Gate (Zero LLM in the decision loop)
• Certifies: COMPATIBLE | BREAKING | UNKNOWN (Admissible Evidence Only)

4. Empirical Verification: 20 Selected DTO/Field Cases (ThingsBoard)

Empirical measurements conducted on 20 selected DTO and field refactoring cases from the ThingsBoard repository via native Rust instrumentation (measure_exact_tokens.rs):

# Target DTO & Refactored Field Grep Ingestion Grep Lines Sajimora Tokens Call Sites Token Reduction
1RuleChain.name46,025 tokens1,097464 tokens8 sites-98.99%
2TbResourceInfo.customerId10,933 tokens287353 tokens5 sites-96.77%
3AgentApplication.agentId1,218 tokens34372 tokens5 sites-69.45%
4JwtPair.token3,114 tokens66192 tokens0 sites-93.83%
5Alarm.customerId10,933 tokens287259 tokens2 sites-97.63%
6Device.customerId10,933 tokens287291 tokens3 sites-97.33%
7OtaPackageInfo.deviceProfileId2,035 tokens53251 tokens1 site-87.66%
8AgentAppProfile.name46,025 tokens1,097338 tokens4 sites-99.26%
9Edge.customerId10,933 tokens287366 tokens5 sites-96.65%
10Integration.configuration24,550 tokens523312 tokens3 sites-98.72%
11Job.customerId10,933 tokens287322 tokens3 sites-97.05%
12Queue.name46,025 tokens1,097187 tokens0 sites-99.59%
13WhiteLabelingParams.logoImageUrl268 tokens9396 tokens5 sitesGrep missed 5 sites!
14DeviceProfile.name46,025 tokens1,097302 tokens3 sites-99.34%
15EntityInfo.name46,025 tokens1,097189 tokens0 sites-99.58%
16EntityView.entityId13,989 tokens378266 tokens2 sites-98.09%
17HomeDashboardInfo.dashboardId2,382 tokens62281 tokens2 sites-88.20%
18TenantProfile.name46,025 tokens1,097302 tokens3 sites-99.34%
19AiModel.version12,436 tokens321260 tokens2 sites-97.90%
20Asset.customerId10,933 tokens287259 tokens2 sites-97.63%
TOTAL 20 Selected DTO/Field Cases 445,785 tokens 8,477 5,963 tokens 58 sites -98.66% OVERALL

5. Defensive Technical Disclosure and Intellectual Property Notice

5.1 Purpose of publication: This document publicly discloses selected technical methods, architectural concepts, and implementation approaches developed in connection with the Sajimora™ project. It is intended to establish a verifiable public disclosure of the technical subject matter expressly described herein for consideration as prior art.

5.2 Scope: The disclosed subject matter includes: (1) closed-loop obligation conservation and algebraic path-lattice verification across polyglot boundaries; (2) separation of probabilistic AI-generated candidate evidence from deterministic static verification and verdict certification; and (3) the concrete CST algorithms, mathematical representations, data structures, and empirical measurements described in Sections 2, 3, and 4. The scope is strictly limited to what is sufficiently described herein and does not extend to undisclosed inventions, proprietary systems language architectures, runtime memory models, or future developments of Sajimora™.

5.3 Defensive prior-art intent: This publication is intended to make the disclosed technical subject matter publicly available for consideration as prior art under applicable patent laws, including 35 U.S.C. § 102 and Article 54 of the European Patent Convention. Whether it affects a particular patent claim depends on the applicable jurisdiction, actual public release date, accessibility, and sufficiency of the disclosure. No guarantee is made that any subsequent patent application or claim will be rejected.

5.4 Copyright: Copyright in the original text, diagrams, illustrations, and other copyrightable material in this document remains with its respective copyright owner, except where a separate licence expressly provides otherwise.

5.5 Software and trademarks: This publication does not, by itself, grant a licence to Sajimora software, source code, or other materials outside this document. Software licensing is governed by the applicable software licence. Rights in the Sajimora™ name, logos, and branding are addressed separately under applicable trademark laws. Use of the name “Sajimora™” in this document does not itself establish trademark registration.

5.6 Publication record: Project: Sajimora™ • Document: Technical Whitepaper — Defensive Publication • Version: 1.1 • Publication date: 1 November 2026 • Canonical location: https://sajimora.com/whitepaper.html • Publisher: The Sajimora™ Architecture & Research Group • Contact: admin@sajimora.com • Document SHA-256 Digest: 9c6a57e9446bf203712dd6f0f2e1c3ce0fb636a4316d6d5de6f387da00f01656.

Important: This notice is a publication statement, not a legal opinion or a substitute for advice from a patent professional. Public disclosure may affect patent rights differently across jurisdictions. Obtain jurisdiction-specific advice before relying on any grace period or filing strategy.