Retornatus

Credits, Lineage & Prior Art

Ideas are credited by influence, not by superficial similarity. Retornatus does not claim novelty for established software-engineering patterns; its design contribution lies in how these ideas are separated, constrained, and composed into its governance model.

This document records provenance, not a bibliography of every related tool.

Open-source prior art
        ↓
Spec Guardrails
        ↓
real implementation + dogfooding
        ↓
lessons / limitations / proven guarantees
        ↓
Retornatus-specific research & design
        ↓
Retornatus

A. Direct predecessor — Spec Guardrails

Spec Guardrails (MIT) is the direct predecessor of Retornatus.

Retornatus is a separate successor architecture informed by lessons learned while building and dogfooding Spec Guardrails. It is not a fork, rename, or line-by-line rewrite of Spec Guardrails.

Spec Guardrails
      ↓
experience
      ↓
failure analysis
      ↓
preserve proven guarantees
      ↓
rethink mechanisms
      ↓
Retornatus

What Spec Guardrails demonstrated in practice

Dogfooding Spec Guardrails showed the practical value of:

Proven concernHow Spec Guardrails exercised it
Repo-native governanceDurable project state under .specs/
Planning before implementationSpec → tasks → execute → verify phases
Gates / brakesMechanical STOP checks (exit codes)
Tasks and controlled parallelismTask graphs, waves, loop patterns
Evidence before “done”Verification / proof expectations
Persistent project memoryFeature archives and memory index
Human checkpointsApprovals at meaningful boundaries
Restart continuityState that survives chat handoffs
Environment / agent integrationCursor, Claude, Copilot, Codex adapters

What Retornatus aims to preserve

Useful guarantees, not Spec Guardrails’ npm packaging, skill tree, or command surface:

Why a separate product

The Retornatus PRD treats Spec Guardrails as archaeology first (inspect implementation, not only docs), then redesigns mechanisms under native-first and complexity must be earned (PRD §66).

Retornatus therefore:

Spec Guardrails’ own lineage (transitive — do not duplicate)

Spec Guardrails itself incorporates and credits prior work in spec-driven development, task graphs, loop engineering, agent skills, and harness engineering. Those transitive influences are documented in Spec Guardrails’ own lineage and are not repeated here as direct Retornatus influences unless Retornatus independently revisited the original source.

Primary reference:

Upstream names recorded there (for navigation only — not Retornatus direct influences):

tlc-spec-driven, addyosmani/agent-skills, graph-engineering, loop-engineering, Addy Osmani’s Loop Engineering essay, awesome-harness-engineering, loopgate_harness, obra/superpowers, plus cited-not-vendored adjacent tools (e.g. DeepCode, RepoGraph, Graphify, RTK, NVIDIA SkillSpector).

Audit note: A search of this repository’s design artifacts (PRD, docs, implementation notes, commit messages) found no evidence that Retornatus independently re-studied those upstreams in a way that added influence beyond what arrived through Spec Guardrails. They therefore remain transitive.

Code: Retornatus does not vendor Spec Guardrails’ Node package, Python gate scripts, or skill trees. Relationship is conceptual / experiential. Spec Guardrails license: MIT.


B. Direct Retornatus research

Include only sources with justifiable evidence of study during Retornatus design, beyond Spec Guardrails archaeology.

B.1 Host Environment capability surfaces

SourceWhat was studiedWhat influenced RetornatusWhat Retornatus did differently
Cursor (rules / skills layout)Native rules (.cursor/rules), skills progressive disclosureCursor adapter, hub skill install, Rule projection into .mdcGovern via .retornatus/; bridges are projections only
Claude Code (CLAUDE.md / .claude)Project instruction surfacesClaude Code adapter + bridge markersNo Claude-specific domain policy in Core
OpenAI Codex / AGENTS.md patternsAgent instruction files, isolation hintsCodex adapter + AGENTS.md bridges; advisory isolation BoundariesDoes not spawn Codex sandboxes; records host execution observations

Nature: environment integration research. No code vendored from these products into Retornatus.

B.2 Implementation libraries (runtime dependencies)

These are engineering dependencies, not governance prior art:

PackageLicense (as published)Role in Retornatus
PydanticMITStructured domain models / validation
TyperMITIntention-oriented CLI
tomli-wMITTOML writing for project config
Python sqlite3 + FTS5PSFDerived disposable index

No modified copies of these libraries are vendored in-tree; they are normal package dependencies (pyproject.toml).

B.3 No additional direct conceptual upstreams recorded

As of this audit, no other external repositories are classified as direct Retornatus conceptual influences. If future work independently revisits a Spec Guardrails upstream (or a new source) and that study changes Retornatus design, document it here in the same PR with: source, what was studied, what changed, license, and whether any code was adapted.


C. Evaluated alternatives (studied / rejected for V1)

These are design decisions, not claims that Retornatus “is based on” the rejected approach. Primary evidence: PRD §65 Explicit V1 Non-Goals and native-first philosophy (§2.2).

Evaluated directionQuestionDecisionResult in Retornatus V1
Graph database / vector store for MemoryDo we need a graph/vector DB?NoCanonical files + relations + derived SQLite/FTS
Mandatory Loop EngineIs a durable Loop engine required?Noloop next as projection over ready work
Proprietary sandbox / worktree orchestratorRebuild host isolation?NoAdvisory Boundaries → native host isolation
Agent Pool / permanent specialist agentsEncode personas in the domain?NoSpecialization via Assignment + Context + Skills
Automatic Rule graduationMay recurrence create authority?NoRule Candidate → Human Decision → Rule
Event store / distributed scheduler / SaaS control planeRemote orchestration?NoLocal repository-native harness
Spec Guardrails command 1:1 cloneDrop-in CLI replacement?NoBehavioral parity where useful; separate UX

Where Spec Guardrails’ docs cite adjacent graph/harness tools as referenced, not vendored, Retornatus treats graph-memory approaches as a class of alternative rejected in the PRD — without listing those tools as Retornatus direct influences.


D. Original Retornatus design

“Original” here means decisions composed inside Retornatus’ architecture, not invention of generic software-engineering ideas.

Retornatus introduces within its own architecture the following separations and compositions.

Core work spine

Demand → Situation → Contract → Action → Execution (host)

Distinctions enforced in the model:

SeparationIntent
Demand ≠ ContractIntent is not yet an obligation
Contract ≠ ActionObligation is not the response
Action ≠ TaskDecomposition is optional
Task ≠ ExecutionPlanned work ≠ host run

Discovery spine

Finding → Question → Action → Evidence → Assurance → Resolution
SeparationIntent
Finding ≠ QuestionObservation is not yet a problem frame
Question ≠ ResolutionProblems are not closed by assertion
Evidence ≠ AssuranceObservation ≠ verdict
Resolution is established, not claimedAgent self-report is insufficient when proof is required

Adaptation spine

Experience → Learning → Graduation → Rule Candidate → Human Authority → Active Rule
SeparationIntent
Learning ≠ SkillInforms vs teaches how
Skill ≠ RuleProcedure vs constraint
Rule ≠ PolicyStanding constraint vs effect evaluation

Structural choices

ChoiceRetornatus modeling
Structured domain modelValidated entities (Pydantic) instead of implicit script/doc semantics alone
Native-firstGovern; do not duplicate host agent runtime / sandbox / subagents
Capability-oriented EnvironmentCore depends on capabilities; adapters speak environment
Context AssemblyContext assembled, not inherited; follows responsibility; sufficient, not comprehensive
Derived coordinationReadiness / parallelizable sets as projections — not mandatory canonical Wave/Loop engines
On-demand researched SkillsCreate/research/activate one Skill when needed; evolve from Learning
Complexity disciplineA mechanism must save more complexity than it introduces; complexity earned by concrete failure

Product contract: prd/PRD.md. User-facing concepts: docs/guide/Concepts.md.


Licensing summary

ArtifactLicenseNotes
Retornatus (this repository)MITLICENSE
Spec Guardrails (predecessor)MITConceptual/experiential influence; no code vendored
Pydantic, Typer, tomli-wMITDependencies via packaging
Host products (Cursor / Claude Code / Codex)Proprietary / host termsAdapters write local bridge files only

Derived/vendored third-party source trees: none identified in src/ at audit time (no NOTICE files, no copied skill packs from Spec Guardrails or its upstreams).


How to update this document

When adding an influence:

  1. State whether it is predecessor, direct, transitive, or evaluated-and-rejected.
  2. Cite evidence (PRD section, design note, or concrete adapter/code change).
  3. Record license and whether any code was adapted.
  4. Do not promote Spec Guardrails upstreams to “direct” without new independent study.

Keep the README section short; keep detail here.

← Docs hub Product site →