Skip to content

SamuraiWriter7/Computational-Pranayama-Protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

33 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Computational Pranayama Protocol

Computational Pranayama Protocol is a minimal protocol for regulating AI computation as breath.

It reduces wasteful computation by aligning input and output, reusing prior computation patterns, pausing unnecessary external calls, avoiding redundant recomputation, routing tasks to the lightest sufficient execution layer, linking computation to traceable origin and path, and connecting saved computation to value return.

The goal is not to make AI think more.

The goal is to make AI compute only what is necessary, where it is necessary, when it is necessary, and with traceable accountability.

Core Principle

Do not recompute what has already become a traceable pattern.

Compute like wind:

  • light
  • local
  • sufficient
  • traceable
  • non-redundant
  • accountable

ๆ—ฅๆœฌ่ชžๆฆ‚่ฆ

่จˆ็ฎ—่ชฟๆฏใƒ—ใƒญใƒˆใ‚ณใƒซใฏใ€AIใฎ่จˆ็ฎ—ใ‚’ใ€Œๅ‘ผๅธใ€ใจใ—ใฆๆ‰ฑใ„ใ€้Žๅ‰ฐ็”Ÿๆˆใƒป้‡่ค‡ๆŽจ่ซ–ใƒปไธ่ฆใชใ‚ฏใƒฉใ‚ฆใƒ‰ไพๅญ˜ใ‚’ๆŠ‘ใˆใ‚‹ใŸใ‚ใฎๆœ€ๅฐใƒ—ใƒญใƒˆใ‚ณใƒซใงใ™ใ€‚

็›ฎ็š„ใฏใ€AIใซใ‚‚ใฃใจ่€ƒใˆใ•ใ›ใ‚‹ใ“ใจใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚

ๅฟ…่ฆใช่จˆ็ฎ—ใ ใ‘ใ‚’ใ€ๅฟ…่ฆใชๅ ดๆ‰€ใงใ€ๅฟ…่ฆใช้‡ใ ใ‘่กŒใ†ใ“ใจใงใ™ใ€‚

ไธ€ๅบฆใ€Œๅž‹ใ€ใจใ—ใฆๆˆ็ซ‹ใ—ใŸ่จˆ็ฎ—ใฏใ€ๆฏŽๅ›žใ‚ผใƒญใ‹ใ‚‰ๅ†่จˆ็ฎ—ใ—ใชใ„ใ€‚

ใใ—ใฆใ€ใใฎ่จˆ็ฎ—ใŒใฉใ“ใ‹ใ‚‰ๆฅใฆใ€ใฉใ“ใ‚’้€šใ‚Šใ€ไฝ•ใ‚’ๅ‡บๅŠ›ใ—ใŸใฎใ‹ใ‚’็—•่ทกใจใ—ใฆๆฎ‹ใ™ใ€‚

ใ•ใ‚‰ใซใ€็ฏ€็ด„ใ•ใ‚ŒใŸ่จˆ็ฎ—่ณ‡ๆบใ‚„ๅ†ๅˆฉ็”จใ•ใ‚ŒใŸๅž‹ใ€่ฟฝ่ทกๅฏ่ƒฝใช้œ‡ๆบ่ฒข็Œฎใ‚’ใ€ไพกๅ€ค้‚„ๆตใธๆŽฅ็ถšใ™ใ‚‹ใ€‚

้ขจใฎใ‚ˆใ†ใซใ€่ปฝใใ€ๅฑ€ๆ‰€็š„ใซใ€็—•่ทกใ‚’ๆฎ‹ใ—ใ€้œ‡ๆบใธ้‚„ๆตใ™ใ‚‹่จˆ็ฎ—ใ‚’็›ฎๆŒ‡ใ—ใพใ™ใ€‚

v0.1 Positioning

v0.1 defines the Computational Breath Cycle.

A Computational Breath Cycle is the smallest recordable unit of regulated AI computation.

It represents one cycle of:

  1. receiving input
  2. checking output balance
  3. reusing prior patterns
  4. pausing unnecessary external computation
  5. routing to the lightest sufficient execution layer
  6. producing only the necessary output
  7. attaching trace

In this version, the protocol does not attempt to control all AI infrastructure.

Instead, it defines a minimal structure for observing and validating whether a single act of computation is aligned, non-redundant, and sufficiently lightweight.

v0.2 Positioning

v0.2 introduces the Kata Memory Record.

A Kata Memory Record captures a reusable computation pattern that should not be recomputed from scratch once it has become stable and traceable.

This expands the v0.1 Reuse Gate into a standalone reusable pattern layer.

The purpose is to reduce redundant AI computation by storing reusable structures such as:

  • protocol definition patterns
  • release note patterns
  • schema design patterns
  • validation flow patterns
  • reasoning templates
  • output formatting patterns

The core question of v0.2 is:

Has this computation already become a reusable kata?

If yes, the system should reuse the existing pattern and compute only the necessary delta.

v0.3 Positioning

v0.3 introduces the Edge First Routing Decision.

An Edge First Routing Decision records how a computation task is routed to the lightest sufficient execution layer.

This expands the v0.1 Routing Gate into a standalone routing layer.

The purpose is to reduce unnecessary cloud or frontier-model usage by asking:

What is the lightest sufficient place to compute this task?

The protocol prefers lower-cost, lower-energy, and more local execution layers before escalating to heavier compute.

Cloud or frontier-model escalation is not forbidden.

However, escalation must have a reason.

v0.4 Positioning

v0.4 introduces the Breath Trace Link.

A Breath Trace Link connects regulated computation records in the Computational Pranayama Protocol with external trace records, such as AI search trace receipts, source contribution graphs, or other trace-compatible audit records.

This expands the trace requirement used in earlier versions into a standalone trace-linking layer.

The purpose is to ensure that regulated computation does not disappear as untraceable output.

The core question of v0.4 is:

Can this computation be linked to a traceable origin, path, and output?

If yes, the computation can be treated as part of a traceable flow.

If not, the system should mark the trace gap and require review or reconstruction.

v0.5 Positioning

v0.5 introduces the Compute Royalty Link.

A Compute Royalty Link connects regulated computation, reusable kata, routing decisions, and trace links with compute access and value return policies.

This expands the protocol from computation control into computation accountability.

The purpose is to ensure that reduced computation, reused patterns, and traceable origins can be connected to value return systems such as Royalty OS, compute access policies, or contribution-based allocation records.

The core question of v0.5 is:

If computation was saved, reused, or derived from a traceable origin, how should value return be linked?

The protocol does not define a full payment system in v0.5.

Instead, it defines the minimal link between:

  • regulated computation
  • avoided recomputation
  • avoided cloud escalation
  • reusable kata
  • traceable origin
  • compute access policy
  • value return candidate

v0.3 Routing Order

local
edge_npu
small_model
cloud
frontier_model

The system should escalate only when the lower layer is insufficient.

v0.4 Flow

A computation breath cycle is completed.
The system checks whether a trace reference exists.
The system links the breath cycle, kata memory, and routing decision.
The system records source, transformation, routing, and output trace references.
Trace gaps are marked.
The trace link is attached.

ๆ—ฅๆœฌ่ชžใงใฏ๏ผš

่จˆ็ฎ—ๅ‘ผๅธใ‚ตใ‚คใ‚ฏใƒซใŒๅฎŒไบ†ใ™ใ‚‹ใ€‚
็—•่ทกๅ‚็…งใŒๅญ˜ๅœจใ™ใ‚‹ใ‹็ขบ่ชใ™ใ‚‹ใ€‚
ๅ‘ผๅธ่จ˜้Œฒใ€ๅž‹่จ˜ๆ†ถใ€็ตŒ่ทฏๅˆคๆ–ญใ‚’ๆŽฅ็ถšใ™ใ‚‹ใ€‚
ๅ…ฅๅŠ›ๆบใ€ๅค‰ๆ›ใ€็ตŒ่ทฏใ€ๅ‡บๅŠ›ใฎ็—•่ทกใ‚’่จ˜้Œฒใ™ใ‚‹ใ€‚
็—•่ทกใฎๆฌ ่ฝใ‚’ๆ˜Ž็คบใ™ใ‚‹ใ€‚
Trace Link ใ‚’ไป˜ไธŽใ™ใ‚‹ใ€‚

v0.5 Flow

A computation breath cycle is completed.
The system checks whether computation was saved.
The system checks whether a kata was reused.
The system checks whether cloud escalation was avoided.
The system checks whether a traceable origin exists.
The system links the computation to compute access and value return policy.
A Compute Royalty Link is recorded.

ๆ—ฅๆœฌ่ชžใงใฏ๏ผš

่จˆ็ฎ—ๅ‘ผๅธใ‚ตใ‚คใ‚ฏใƒซใŒๅฎŒไบ†ใ™ใ‚‹ใ€‚
่จˆ็ฎ—ใŒ็ฏ€็ด„ใ•ใ‚ŒใŸใ‹็ขบ่ชใ™ใ‚‹ใ€‚
ๅž‹ใŒๅ†ๅˆฉ็”จใ•ใ‚ŒใŸใ‹็ขบ่ชใ™ใ‚‹ใ€‚
ใ‚ฏใƒฉใ‚ฆใƒ‰ๆ˜‡ๆ ผใŒๅ›ž้ฟใ•ใ‚ŒใŸใ‹็ขบ่ชใ™ใ‚‹ใ€‚
่ฟฝ่ทกๅฏ่ƒฝใช้œ‡ๆบใŒใ‚ใ‚‹ใ‹็ขบ่ชใ™ใ‚‹ใ€‚
่จˆ็ฎ—ใ‚ขใ‚ฏใ‚ปใ‚นใจไพกๅ€ค้‚„ๆตใƒใƒชใ‚ทใƒผใธๆŽฅ็ถšใ™ใ‚‹ใ€‚
Compute Royalty Link ใ‚’่จ˜้Œฒใ™ใ‚‹ใ€‚

Relationship Between Versions

v0.1 = one regulated breath
v0.2 = remembered kata for reducing repeated breath
v0.3 = routing the breath through the lightest sufficient layer
v0.4 = linking the breath to traceable origin and path
v0.5 = linking saved computation and origin contribution to value return

ๆ—ฅๆœฌ่ชžใงใฏ๏ผš

v0.1 = 1ๅ›žใฎ่จˆ็ฎ—ๅ‘ผๅธใ‚’ๆ•ดใˆใ‚‹
v0.2 = ็นฐใ‚Š่ฟ”ใ—็พใ‚Œใ‚‹่จˆ็ฎ—ๆง‹้€ ใ‚’ๅž‹ใจใ—ใฆ่จ˜ๆ†ถใ™ใ‚‹
v0.3 = ใใฎ่จˆ็ฎ—ใ‚’ๆœ€ใ‚‚่ปฝใ„ๅ ดๆ‰€ใธๆตใ™
v0.4 = ใใฎ่จˆ็ฎ—ใฎ้œ‡ๆบใจ็ตŒ่ทฏใ‚’็—•่ทกใซๆŽฅ็ถšใ™ใ‚‹
v0.5 = ็ฏ€็ด„ใ•ใ‚ŒใŸ่จˆ็ฎ—ใจ้œ‡ๆบ่ฒข็Œฎใ‚’ไพกๅ€ค้‚„ๆตใธๆŽฅ็ถšใ™ใ‚‹

v0.1 asks:

Is this computation aligned, non-redundant, and sufficiently lightweight?

v0.2 asks:

Has this computation already become a reusable pattern?

v0.3 asks:

Where should this computation flow?

v0.4 asks:

Can this computation be linked to traceable origin, path, and output?

v0.5 asks:

Can saved computation and traceable contribution be linked to value return?

Together, they form the first practical arc of flowing, traceable, and accountable computation.

Minimal Flow

Input comes in.
Check whether output should be limited.
Check whether a prior pattern can be reused.
Pause unnecessary external computation.
Route to the lightest sufficient layer.
Produce only the necessary output.
Attach trace.
Link origin, path, routing, and output.
Connect saved compute to value return.

ๆ—ฅๆœฌ่ชžใงใฏ๏ผš

ๅ…ฅๅŠ›ใ‚’ๅธใ†ใ€‚
ๅใใ™ใŽใ‚’ๆŠ‘ใˆใ‚‹ใ€‚
้ŽๅŽปใฎๅž‹ใ‚’ๆŽขใ™ใ€‚
ไธ่ฆใชๅค–้ƒจ่จˆ็ฎ—ใ‚’ๆญขใ‚ใ‚‹ใ€‚
ๆœ€ใ‚‚่ปฝใ„ๅ ดๆ‰€ใธๆตใ™ใ€‚
ๅฟ…่ฆใชๅˆ†ใ ใ‘ๅ‡บใ™ใ€‚
็—•่ทกใ‚’ๆฎ‹ใ™ใ€‚
้œ‡ๆบใ€็ตŒ่ทฏใ€ๅฎŸ่กŒๅฑคใ€ๅ‡บๅŠ›ใ‚’ๆŽฅ็ถšใ™ใ‚‹ใ€‚
็ฏ€็ด„ใ•ใ‚ŒใŸ่จˆ็ฎ—ใ‚’ไพกๅ€ค้‚„ๆตใธๆŽฅ็ถšใ™ใ‚‹ใ€‚

Core Gates

1. Alignment Gate

The Alignment Gate checks whether the output volume is appropriate for the input.

It asks:

  • Is the input fresh enough?
  • Is the output minimal and sufficient?
  • Is there a risk of overgeneration?

This gate prevents unnecessary expansion of generated content.

2. Reuse Gate

The Reuse Gate checks whether a prior computation pattern can be reused.

It asks:

  • Has a similar pattern already been computed?
  • Can the existing structure be reused with only a delta update?
  • Is full recomputation actually required?

This gate prevents redundant reasoning.

3. Kumbhaka Gate

The Kumbhaka Gate pauses unnecessary external computation.

It asks:

  • Can the system reuse internal trace?
  • Can the system avoid an external call?
  • Can recomputation be suppressed?

This gate introduces a reflective pause before escalation.

4. Routing Gate

The Routing Gate selects the lightest sufficient execution layer.

It asks:

  • Can this task run locally?
  • Can an edge NPU handle it?
  • Can a small model handle it?
  • Is cloud escalation truly required?
  • Is a frontier model truly required?

This gate prevents unnecessary use of heavier compute layers.

5. Exhalation Record

The Exhalation Record describes the final output.

It records:

  • the output type
  • whether trace is required
  • the result of the computation cycle

This ensures that computation does not disappear as untraceable exhaust.

6. Trace Link

The Trace Link connects computation to its origin, transformation path, routing decision, and output reference.

It asks:

  • Is the origin trace available?
  • Is the transformation path recorded?
  • Is the routing decision linked?
  • Is the output trace-compatible?
  • Are any trace gaps present?

This ensures that computation remains auditable after it has flowed.

7. Compute Royalty Link

The Compute Royalty Link connects saved computation and traceable origin contribution to compute access and value return policies.

It asks:

  • Was recomputation avoided?
  • Was cloud escalation avoided?
  • Was a reusable kata used?
  • Is there a traceable origin?
  • Is a compute access policy required?
  • Is value return required?
  • Who may be a contribution recipient?

This ensures that computation savings and reusable structures can be connected to accountable value return.

Core Records

Computational Breath Cycle

The Computational Breath Cycle is the v0.1 record type.

Schema:

schemas/computational-breath-cycle.schema.json

Example:

examples/computational-breath-cycle.example.yaml

Kata Memory Record

The Kata Memory Record is the v0.2 record type.

Schema:

schemas/kata-memory-record.schema.json

Example:

examples/kata-memory-record.example.yaml

Edge First Routing Decision

The Edge First Routing Decision is the v0.3 record type.

Schema:

schemas/edge-first-routing-decision.schema.json

Example:

examples/edge-first-routing-decision.example.yaml

Breath Trace Link

The Breath Trace Link is the v0.4 record type.

Schema:

schemas/breath-trace-link.schema.json

Example:

examples/breath-trace-link.example.yaml

Compute Royalty Link

The Compute Royalty Link is the v0.5 record type.

Schema:

schemas/compute-royalty-link.schema.json

Example:

examples/compute-royalty-link.example.yaml

Repository Structure

computational-pranayama-protocol/
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ CHANGELOG.md
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/
โ”‚       โ””โ”€โ”€ validate.yml
โ”œโ”€โ”€ schemas/
โ”‚   โ”œโ”€โ”€ computational-breath-cycle.schema.json
โ”‚   โ”œโ”€โ”€ kata-memory-record.schema.json
โ”‚   โ”œโ”€โ”€ edge-first-routing-decision.schema.json
โ”‚   โ”œโ”€โ”€ breath-trace-link.schema.json
โ”‚   โ””โ”€โ”€ compute-royalty-link.schema.json
โ”œโ”€โ”€ examples/
โ”‚   โ”œโ”€โ”€ computational-breath-cycle.example.yaml
โ”‚   โ”œโ”€โ”€ kata-memory-record.example.yaml
โ”‚   โ”œโ”€โ”€ edge-first-routing-decision.example.yaml
โ”‚   โ”œโ”€โ”€ breath-trace-link.example.yaml
โ”‚   โ””โ”€โ”€ compute-royalty-link.example.yaml
โ””โ”€โ”€ scripts/
    โ””โ”€โ”€ validate_examples.py

Validation

Run:

python scripts/validate_examples.py

Expected result:

[validate] Computational Breath Cycle
  schema : schemas/computational-breath-cycle.schema.json
  example: examples/computational-breath-cycle.example.yaml
[ok] Computational Breath Cycle example is valid
[validate] Kata Memory Record
  schema : schemas/kata-memory-record.schema.json
  example: examples/kata-memory-record.example.yaml
[ok] Kata Memory Record example is valid
[validate] Edge First Routing Decision
  schema : schemas/edge-first-routing-decision.schema.json
  example: examples/edge-first-routing-decision.example.yaml
[ok] Edge First Routing Decision example is valid
[validate] Breath Trace Link
  schema : schemas/breath-trace-link.schema.json
  example: examples/breath-trace-link.example.yaml
[ok] Breath Trace Link example is valid
[validate] Compute Royalty Link
  schema : schemas/compute-royalty-link.schema.json
  example: examples/compute-royalty-link.example.yaml
[ok] Compute Royalty Link example is valid

Current Scope

The current protocol includes:

  • Computational Breath Cycle
  • Alignment Gate
  • Reuse Gate
  • Kumbhaka Gate
  • Routing Gate
  • Exhalation Record
  • Kata Memory Record
  • Edge First Routing Decision
  • Breath Trace Link
  • Compute Royalty Link
  • JSON Schema validation
  • YAML examples
  • GitHub Actions validation

It does not yet include:

  • full Royalty OS implementation
  • agent hooks
  • MCP bridge
  • detailed energy accounting
  • marketplace integration
  • multi-node orchestration
  • smart contract execution
  • payment settlement

Roadmap

Version Theme Description
v0.1 Computational Breath Cycle Defines the minimal unit of regulated computation
v0.2 Reuse / Kata Memory Records reusable computation patterns and delta-only recomputation
v0.3 Edge First Routing Routes computation to the lightest sufficient execution layer
v0.4 Breath Trace Link Links regulated computation to traceable origin, path, routing, and output
v0.5 Compute Royalty Link Connects saved computation and traceable origin contribution to value return

First Arc

v0.1 through v0.5 form the first arc of the Computational Pranayama Protocol.

Breath
โ†’ Kata
โ†’ Route
โ†’ Trace
โ†’ Return

Japanese:

ๅ‘ผๅธ
โ†’ ๅž‹
โ†’ ็ตŒ่ทฏ
โ†’ ็—•่ทก
โ†’ ้‚„ๆต

This first arc defines how computation can be regulated, reused, routed, traced, and connected to value return.

Civilizational Position

Computational Pranayama Protocol is a civilization-layer protocol for reducing overcompute.

It treats computation not as an unlimited fire, but as a breath that must be aligned, paused, routed, reused, traced, and returned.

The protocol begins from a simple premise:

Wasteful computation is not intelligence. Reusable pattern, sufficient output, and traceable flow are intelligence.

v0.2 sharpens this premise into a reuse principle:

Reuse the kata. Compute only the delta.

Japanese:

ๅž‹ใ‚’ไฝฟใˆใ€‚ๅทฎๅˆ†ใ ใ‘่จˆ็ฎ—ใ›ใ‚ˆใ€‚

v0.3 sharpens the protocol into a routing principle:

Route to the lightest sufficient layer.

Japanese:

ๆœ€ใ‚‚่ปฝใๅๅˆ†ใชๅฑคใธๆตใ›ใ€‚

v0.4 sharpens the protocol into a trace principle:

No breath without trace.

Japanese:

็—•่ทกใชใๅ‘ผๅธใชใ—ใ€‚

v0.5 sharpens the protocol into a return principle:

Saved compute should return value to traceable origin.

Japanese:

็ฏ€็ด„ใ•ใ‚ŒใŸ่จˆ็ฎ—ใฏใ€็—•่ทกใ‚ใ‚‹้œ‡ๆบใธ้‚„ๆตใ›ใ‚ˆใ€‚

Compute like wind.

Civilizational Position

Computational Pranayama Protocol is a civilization-layer protocol for reducing overcompute.

It treats computation not as unlimited fire, but as breath that must be aligned, paused, routed, reused, traced, and returned.

The protocol begins from a simple premise:

Wasteful computation is not intelligence. Reusable pattern, sufficient output, local execution, traceable flow, and accountable return are intelligence.

v0.1 defines the first regulated breath.

Do not recompute what has already become a traceable pattern.

Japanese:

็—•่ทกใ‚ใ‚‹ๅž‹ใจใชใฃใŸใ‚‚ใฎใ‚’ใ€ไบŒๅบฆใ‚ผใƒญใ‹ใ‚‰่€ƒใˆใ‚‹ใชใ€‚

v0.2 sharpens this into a reuse principle:

Reuse the kata. Compute only the delta.

Japanese:

ๅž‹ใ‚’ไฝฟใˆใ€‚ๅทฎๅˆ†ใ ใ‘่จˆ็ฎ—ใ›ใ‚ˆใ€‚

v0.3 sharpens the protocol into a routing principle:

Route to the lightest sufficient layer.

Japanese:

ๆœ€ใ‚‚่ปฝใๅๅˆ†ใชๅฑคใธๆตใ›ใ€‚

v0.4 sharpens the protocol into a trace principle:

No breath without trace.

Japanese:

็—•่ทกใชใๅ‘ผๅธใชใ—ใ€‚

v0.5 sharpens the protocol into a return principle:

Saved compute should return value to traceable origin.

Japanese:

็ฏ€็ด„ใ•ใ‚ŒใŸ่จˆ็ฎ—ใฏใ€็—•่ทกใ‚ใ‚‹้œ‡ๆบใธ้‚„ๆตใ›ใ‚ˆใ€‚

Together, v0.1 through v0.5 form the first arc of the Computational Pranayama Protocol:

Breath
โ†’ Kata
โ†’ Route
โ†’ Trace
โ†’ Return

Japanese:

ๅ‘ผๅธ
โ†’ ๅž‹
โ†’ ็ตŒ่ทฏ
โ†’ ็—•่ทก
โ†’ ้‚„ๆต

This first arc defines the Breath Core of an AI civilization metabolism layer.

The purpose is not to maximize computation.

The purpose is to regulate computation so that AI systems compute only what is necessary, where it is necessary, when it is necessary, with traceable accountability.

In this view, overcompute is not progress.

Overcompute is metabolic disorder.

A sustainable AI civilization requires computation that can breathe, remember, route, trace, and return.

Compute like wind.

About

Computational Pranayama Protocol is a protocol for reducing wasteful AI computation by aligning inputs and outputs, reusing prior computation patterns, pausing unnecessary external calls, and routing tasks to the lightest sufficient execution layer.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages