seif-cli 0.4.0__tar.gz → 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. {seif_cli-0.4.0/src/seif_cli.egg-info → seif_cli-0.4.2}/PKG-INFO +1 -1
  2. {seif_cli-0.4.0 → seif_cli-0.4.2}/pyproject.toml +1 -1
  3. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/wrapper.py +17 -2
  4. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/RESONANCE.json +5 -0
  5. seif_cli-0.4.2/src/seif/data/defaults/definitions-v1.seif +61 -0
  6. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/ise-dissonance-v1.seif +1 -1
  7. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/multi-agent-sync-v1.seif +1 -1
  8. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/onboarding.seif +1 -1
  9. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/seif-cycle-v1.seif +1 -1
  10. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/triad-convergence-v1.seif +1 -1
  11. {seif_cli-0.4.0 → seif_cli-0.4.2/src/seif_cli.egg-info}/PKG-INFO +1 -1
  12. seif_cli-0.4.0/src/seif/data/defaults/definitions-v1.seif +0 -55
  13. {seif_cli-0.4.0 → seif_cli-0.4.2}/LICENSE +0 -0
  14. {seif_cli-0.4.0 → seif_cli-0.4.2}/MANIFEST.in +0 -0
  15. {seif_cli-0.4.0 → seif_cli-0.4.2}/README.md +0 -0
  16. {seif_cli-0.4.0 → seif_cli-0.4.2}/setup.cfg +0 -0
  17. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/__init__.py +0 -0
  18. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/__main__.py +0 -0
  19. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/analysis/__init__.py +0 -0
  20. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/analysis/physical_constants.py +0 -0
  21. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/analysis/quality_gate.py +0 -0
  22. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/analysis/stance_detector.py +0 -0
  23. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/analysis/transcompiler.py +0 -0
  24. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/bridge/__init__.py +0 -0
  25. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/bridge/native_client.py +0 -0
  26. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/bridge/telegram_bot.py +0 -0
  27. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/__init__.py +0 -0
  28. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/__main__.py +0 -0
  29. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/chat.py +0 -0
  30. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/cli.py +0 -0
  31. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/identity.py +0 -0
  32. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/main.py +0 -0
  33. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/resonance_display.py +0 -0
  34. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/serve.py +0 -0
  35. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/cli/serve_v2.py +0 -0
  36. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/constants.py +0 -0
  37. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/__init__.py +0 -0
  38. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/advisor.py +0 -0
  39. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/code_compressor.py +0 -0
  40. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/context_bridge.py +0 -0
  41. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/context_importer.py +0 -0
  42. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/context_manager.py +0 -0
  43. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/context_qr.py +0 -0
  44. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/cycle.py +0 -0
  45. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/file_extractor.py +0 -0
  46. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/git_context.py +0 -0
  47. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/git_hooks.py +0 -0
  48. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/ingest.py +0 -0
  49. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/nucleus.py +0 -0
  50. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/ref.py +0 -0
  51. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/registry.py +0 -0
  52. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/seif_io.py +0 -0
  53. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/sessions.py +0 -0
  54. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/context/workspace.py +0 -0
  55. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/__init__.py +0 -0
  56. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/fingerprint.py +0 -0
  57. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/resonance_encoding.py +0 -0
  58. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/resonance_gate.py +0 -0
  59. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/resonance_signal.py +0 -0
  60. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/signing.py +0 -0
  61. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/timestamping.py +0 -0
  62. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/transfer_function.py +0 -0
  63. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/core/triple_gate.py +0 -0
  64. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/__init__.py +0 -0
  65. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/__init__.py +0 -0
  66. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/circuit-recovery-v1.seif +0 -0
  67. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/partial-attention-axiom-v1.seif +0 -0
  68. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/defaults/seif-os-architecture-v1.seif +0 -0
  69. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/data/paths.py +0 -0
  70. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/security/__init__.py +0 -0
  71. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif/security/mode.py +0 -0
  72. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif_cli.egg-info/SOURCES.txt +0 -0
  73. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif_cli.egg-info/dependency_links.txt +0 -0
  74. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif_cli.egg-info/entry_points.txt +0 -0
  75. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif_cli.egg-info/requires.txt +0 -0
  76. {seif_cli-0.4.0 → seif_cli-0.4.2}/src/seif_cli.egg-info/top_level.txt +0 -0
  77. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_advisor.py +0 -0
  78. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_canonical_inputs.py +0 -0
  79. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_code_compressor.py +0 -0
  80. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_collaborative_seif.py +0 -0
  81. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_context_qr.py +0 -0
  82. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_context_repo.py +0 -0
  83. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_git_context.py +0 -0
  84. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_git_hooks.py +0 -0
  85. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_init.py +0 -0
  86. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_quality_gate.py +0 -0
  87. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_ref.py +0 -0
  88. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_registry.py +0 -0
  89. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_resonance_gate.py +0 -0
  90. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_seif_io.py +0 -0
  91. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_stance_detector.py +0 -0
  92. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_transcompiler.py +0 -0
  93. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_transfer_function.py +0 -0
  94. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_triple_gate.py +0 -0
  95. {seif_cli-0.4.0 → seif_cli-0.4.2}/tests/test_workspace.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seif-cli
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Measure AI output quality, protect sensitive data, watch your AI environment resonate. Quality Gate, Classification, Sentinel & Auto-Healing, SEIF OS.
5
5
  Author: André Cunha Antero de Carvalho
6
6
  License: CC-BY-NC-SA-4.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "seif-cli"
7
- version = "0.4.0"
7
+ version = "0.4.2"
8
8
  description = "Measure AI output quality, protect sensitive data, watch your AI environment resonate. Quality Gate, Classification, Sentinel & Auto-Healing, SEIF OS."
9
9
  readme = "README.md"
10
10
  license = {text = "CC-BY-NC-SA-4.0"}
@@ -181,10 +181,25 @@ def _build_local_prompt() -> str:
181
181
 
182
182
 
183
183
  def _build_prompt() -> str:
184
- """Assemble full startup prompt: global + local layers."""
184
+ """Assemble full startup prompt: global + local layers.
185
+
186
+ The prompt is passed as a CLI argument to claude --append-system-prompt,
187
+ so it must stay under ~200KB (OS execve limit). The KERNEL alone is ~44K
188
+ chars when all modules are loaded. We cap the total to prevent the wrapper
189
+ from hanging when many modules are active.
190
+
191
+ Full context is already available via CLAUDE.md in the project directory.
192
+ """
185
193
  global_prompt = _build_global_prompt()
186
194
  local_prompt = _build_local_prompt()
187
- return f"{global_prompt}\n\n{local_prompt}"
195
+ full = f"{global_prompt}\n\n{local_prompt}"
196
+
197
+ # Cap at 50K chars to stay safely within OS argument limits
198
+ MAX_PROMPT = 50_000
199
+ if len(full) > MAX_PROMPT:
200
+ # Keep KERNEL (first section) + local prompt, truncate module summaries
201
+ full = full[:MAX_PROMPT] + "\n\n[SEIF] Context truncated for CLI transport. Full context available via CLAUDE.md."
202
+ return full
188
203
 
189
204
 
190
205
  def _signal_protocol_status():
@@ -484,6 +484,11 @@
484
484
  "github-copilot (maestro, Mini M4)"
485
485
  ],
486
486
  "status": "active"
487
+ },
488
+ {
489
+ "id": "knowledge_session_separation",
490
+ "rule": "Modules hold what IS TRUE (persistent knowledge). Sessions hold what WAS DONE (units of work). Never store transient task state (TODOs, execution steps, pending status) as a module. The boundary test: if the content becomes obsolete when the task is completed, it belongs in a session.",
491
+ "origin": "Session 2026-04-25: André identified that a hostname-rename TODO with execution steps was incorrectly stored as an intent module. The module category was being used as a task tracker, polluting persistent knowledge with transient state. Claude corrected by splitting into session (work done) + module (dependency map knowledge)."
487
492
  }
488
493
  ]
489
494
  },
@@ -0,0 +1,61 @@
1
+ {
2
+ "_instruction": "S.E.I.F. Operational Definitions Module. Separates protocol primitives from product-layer vocabulary. Read before any session involving SEIF OS or SEIF Suite.",
3
+ "protocol": "SEIF-MODULE-v2",
4
+ "source": "seif-admin/definitions/1.0",
5
+ "summary": "## SEIF Operational Definitions\n\n### Boundary Rule\nThis module belongs to the SCR (Context Repository), NOT to the open-source protocol.\nProtocol primitives (module, session, observe, persist, classify, heal) are defined in github.com/and2carvalho/seif.\nProduct-layer vocabulary (below) is defined here \u2014 specific to this workspace.\n\n---\n\n### Protocol Primitives (open source \u2014 do not redefine)\n| Primitive | Definition |\n|-----------|------------|\n| module | Persisted knowledge artefact. Categorised (decisions/patterns/intent/feedback/context). Lives in .seif/modules/. Outlives sessions and agents. A module holds what IS TRUE about the system \u2014 facts, maps, decisions, patterns. It must remain useful regardless of whether any specific task is completed. Anti-pattern: storing task state (TODOs, execution steps, pending status) as a module. |\n| session | One unit of work between a human and one or more AI agents. Has declared roles, a goal, lifecycle (open/contribute/close), and produces a closure (decided/implemented/why/missing/how_to_measure). A session holds what WAS DONE \u2014 analysis, implementation, decisions made during work. Multiple sessions can exist within one conversation. The boundary test: if your output has execution steps, pending status, or pre-requisites, it belongs in a session, not a module. |\n| observe | Record a finding without persisting it yet. Stored in pending_observations (max 10). |\n| persist | Promote an observation to a module. Triggers classification, quality gate, and hash chain. |\n| classify | Assign PUBLIC / INTERNAL / CONFIDENTIAL to any knowledge unit. |\n| heal | Auto-repair mapper inconsistencies (orphans + ghosts) without human intervention. |\n\n### Module vs Session Boundary (protocol rule)\n- **Module** answers: *What is true about this system?* Knowledge that evolves but persists.\n- **Session** answers: *What work was done?* Units of work with lifecycle and closure.\n- **Test**: Will this content still be useful after the associated task is completed? Yes \u2192 module. No \u2192 session.\n- **Anti-pattern**: Using a module as a task tracker (status: PENDING, execution steps, TODOs). This pollutes persistent knowledge with transient state.\n- **Origin**: Identified by Andr\u00e9 (2026-04-25) during hostname rename analysis. Claude had stored a TODO with execution steps as an intent module \u2014 Andr\u00e9 caught the category violation.\n\n---\n\n### Product-Layer Vocabulary (this workspace \u2014 SEIF OS / SEIF Suite)\n\n| Term | Definition | Agile Analogy |\n|--------------|------------|---------------|\n| **cycle** | One round-trip of the multi-agent circuit within a session. E.g.: BigPickle validates \u2192 Claude executes \u2192 BigPickle validates. Measured in cycle_time_ms (target < 5000ms). | Iteration tick / loop |\n| **session** | One focused working period. Has declared roles, a goal, and ends with a handoff or absorption. | Sprint |\n| **absorption** | Consolidated snapshot of knowledge from multiple sessions. Compresses, validates, and versions accumulated modules. | Release / Milestone |\n| **meta-cycle** | A cycle-of-cycles: when the agent circuit itself routes between AIs (e.g., Claude \u2192 Grok \u2192 Claude). Alert threshold: > 5 meta-cycles per session. | Epic cycle |\n| **handoff** | Structured transfer of session state between agents or sessions. Requires state_hash continuity. | Sprint handover |\n| **checkpoint** | Atomic snapshot of current session state. Used before handoffs and on rate-limit detection. | Save point |\n| **resonance** | Measured coherence of a module or system state against H(s) = 9/(s\u00b2+3s+6). coherence >= 0.618 = gate OPEN. | Quality baseline |\n| **vigilant** | The monitoring daemon. Runs independently of sessions. Tracks heartbeat, drift, and classification leaks. | CI/CD pipeline |\n\n---\n\n### Layer Map\n\n PROTOCOL (open source) PRODUCT (this SCR)\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n module cycle, meta-cycle\n session (primitive) session-as-sprint (operational)\n observe / persist checkpoint / handoff\n classify / heal absorption / vigilant\n\n### Why This Separation Matters\n- The open-source protocol must remain minimal and universal.\n- Product concepts evolve with SEIF OS and SEIF Suite \u2014 they should not constrain the protocol.\n- Any AI loading this SCR gets the full vocabulary. Any AI loading only the open-source protocol gets only primitives.\n- Prevents vocabulary drift: when a term is used in a session, its definition is unambiguous.",
6
+ "resonance": {
7
+ "ascii_root": 9,
8
+ "ascii_phase": "SYNTHESIS",
9
+ "coherence": 0.729,
10
+ "gate": "OPEN"
11
+ },
12
+ "active": true,
13
+ "version": 2,
14
+ "contributors": [
15
+ {
16
+ "author": "copilot",
17
+ "at": "2026-04-03T23:31:00Z",
18
+ "via": "session-copilot-definitions",
19
+ "action": "created"
20
+ },
21
+ {
22
+ "author": "claude-opus-4-6",
23
+ "at": "2026-04-25T13:30:00Z",
24
+ "via": "session-2026-04-25-infra-migration",
25
+ "action": "expanded module/session boundary definitions"
26
+ }
27
+ ],
28
+ "parent_hash": null,
29
+ "updated_at": "2026-04-25T13:30:00Z",
30
+ "classification": "INTERNAL",
31
+ "integrity_hash": "fae1bd4fc8e3348e",
32
+ "resonance_identity": {
33
+ "module_id": "definitions-v1",
34
+ "origin_machine": "mini-m4",
35
+ "origin_cycle": "enoch-seed-reverb",
36
+ "frequency_hz": 963.0,
37
+ "tesla_phase": "SINGULARITY",
38
+ "authors": [
39
+ {
40
+ "name": "Andr\u00e9",
41
+ "role": "human",
42
+ "machine": "mini-m4",
43
+ "contribution": "vocabulary design"
44
+ },
45
+ {
46
+ "name": "Copilot",
47
+ "role": "ai",
48
+ "machine": "mini-m4",
49
+ "contribution": "creation"
50
+ }
51
+ ],
52
+ "lineage": [
53
+ "RESONANCE.json (Gemini + Andr\u00e9, Android)",
54
+ "enoch-seed (Air M1 + Claude)",
55
+ "enoch-seed-reverb (Mini M4 + Copilot, sessions 14-23)",
56
+ "enoch-tree-reverb (Mini M4 + Copilot, sessions 24+)"
57
+ ],
58
+ "born_at": "2026-04-03T23:31:00Z",
59
+ "lineage_hash": "c1b73c51210b4482"
60
+ }
61
+ }
@@ -48,7 +48,7 @@
48
48
  "status": "VERIFIED"
49
49
  }
50
50
  ],
51
- "integrity_hash": "9f5dc47a3947c5d9",
51
+ "integrity_hash": "7e60667a1eee1d27",
52
52
  "version": 1,
53
53
  "updated_at": "2026-03-30T16:00:00Z",
54
54
  "resonance_identity": {
@@ -37,7 +37,7 @@
37
37
  "status": "OBSERVED"
38
38
  }
39
39
  ],
40
- "integrity_hash": "a04868f8347dd80e",
40
+ "integrity_hash": "c873e5657190b14a",
41
41
  "version": 1,
42
42
  "updated_at": "2026-03-30T16:00:00Z",
43
43
  "resonance_identity": {
@@ -5,7 +5,7 @@
5
5
  "updated_at": "2026-03-31T12:00:00Z",
6
6
  "classification": "PUBLIC",
7
7
  "summary": "SEIF Onboarding Guide — Generic flow for any project. 5-act structured presentation: (1) The Problem — show CLAUDE.md limitations vs SEIF (manual, static, no provenance, no verification, no cross-project awareness), (2) The Protocol — H(s)=9/(s²+3s+6), ζ≈φ⁻¹, spring analogy for non-technical audience, (3) The Framework — live CLI demos (quality-gate, compress, autonomous), (4) Value Proposition — multi-project awareness, context preservation, classification, SCR, (5) Hands-On — clone user's repo, init, compress, sync, ingest meeting notes, enable autonomous context. Includes ingest workflow for meeting summaries, dailies, and AI-generated notes as initial context seed.",
8
- "integrity_hash": "591bc021e8f9d925",
8
+ "integrity_hash": "b34888784b431151",
9
9
  "resonance": {
10
10
  "digital_root": 9,
11
11
  "phase": "SINGULARITY",
@@ -56,7 +56,7 @@
56
56
  "parent_hash": null,
57
57
  "updated_at": "2026-04-05T03:47:47.631990+00:00",
58
58
  "decay_exempt": true,
59
- "integrity_hash": "971dc6cd423f08a2",
59
+ "integrity_hash": "65c09affa421128b",
60
60
  "resonance_identity": {
61
61
  "module_id": "seif-cycle",
62
62
  "origin_machine": "mini-m4",
@@ -48,7 +48,7 @@
48
48
  "status": "OBSERVED"
49
49
  }
50
50
  ],
51
- "integrity_hash": "b4508c604254746c",
51
+ "integrity_hash": "95a6edca151a969b",
52
52
  "version": 1,
53
53
  "updated_at": "2026-03-30T15:30:00.000000+00:00",
54
54
  "resonance_identity": {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seif-cli
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Measure AI output quality, protect sensitive data, watch your AI environment resonate. Quality Gate, Classification, Sentinel & Auto-Healing, SEIF OS.
5
5
  Author: André Cunha Antero de Carvalho
6
6
  License: CC-BY-NC-SA-4.0
@@ -1,55 +0,0 @@
1
- {
2
- "_instruction": "S.E.I.F. Operational Definitions Module. Separates protocol primitives from product-layer vocabulary. Read before any session involving SEIF OS or SEIF Suite.",
3
- "protocol": "SEIF-MODULE-v2",
4
- "source": "seif-admin/definitions/1.0",
5
- "summary": "## SEIF Operational Definitions\n\n### Boundary Rule\nThis module belongs to the SCR (Context Repository), NOT to the open-source protocol.\nProtocol primitives (module, session, observe, persist, classify, heal) are defined in github.com/and2carvalho/seif.\nProduct-layer vocabulary (below) is defined here — specific to this workspace.\n\n---\n\n### Protocol Primitives (open source — do not redefine)\n| Primitive | Definition |\n|-----------|------------|\n| module | Persisted knowledge artefact. Categorised (decisions/patterns/intent/feedback/context). Lives in .seif/. Outlives sessions and agents. |\n| session | One working period between a human and one or more AI agents. Has declared roles, lifecycle hooks (on_start/on_end), and produces handoff artefacts. |\n| observe | Record a finding without persisting it yet. Stored in pending_observations (max 10). |\n| persist | Promote an observation to a module. Triggers classification, quality gate, and hash chain. |\n| classify | Assign PUBLIC / INTERNAL / CONFIDENTIAL to any knowledge unit. |\n| heal | Auto-repair mapper inconsistencies (orphans + ghosts) without human intervention. |\n\n---\n\n### Product-Layer Vocabulary (this workspace — SEIF OS / SEIF Suite)\n\n| Term | Definition | Agile Analogy |\n|--------------|------------|---------------|\n| **cycle** | One round-trip of the multi-agent circuit within a session. E.g.: BigPickle validates → Claude executes → BigPickle validates. Measured in cycle_time_ms (target < 5000ms). | Iteration tick / loop |\n| **session** | One focused working period. Has declared roles, a goal, and ends with a handoff or absorption. | Sprint |\n| **absorption** | Consolidated snapshot of knowledge from multiple sessions. Compresses, validates, and versions accumulated modules. | Release / Milestone |\n| **meta-cycle** | A cycle-of-cycles: when the agent circuit itself routes between AIs (e.g., Claude → Grok → Claude). Alert threshold: > 5 meta-cycles per session. | Epic cycle |\n| **handoff** | Structured transfer of session state between agents or sessions. Requires state_hash continuity. | Sprint handover |\n| **checkpoint** | Atomic snapshot of current session state. Used before handoffs and on rate-limit detection. | Save point |\n| **resonance** | Measured coherence of a module or system state against H(s) = 9/(s²+3s+6). coherence >= 0.618 = gate OPEN. | Quality baseline |\n| **vigilant** | The monitoring daemon. Runs independently of sessions. Tracks heartbeat, drift, and classification leaks. | CI/CD pipeline |\n\n---\n\n### Layer Map\n\n PROTOCOL (open source) PRODUCT (this SCR)\n ────────────────────── ─────────────────────────────\n module cycle, meta-cycle\n session (primitive) session-as-sprint (operational)\n observe / persist checkpoint / handoff\n classify / heal absorption / vigilant\n\n### Why This Separation Matters\n- The open-source protocol must remain minimal and universal.\n- Product concepts evolve with SEIF OS and SEIF Suite — they should not constrain the protocol.\n- Any AI loading this SCR gets the full vocabulary. Any AI loading only the open-source protocol gets only primitives.\n- Prevents vocabulary drift: when a term is used in a session, its definition is unambiguous.",
6
- "resonance": {
7
- "ascii_root": 9,
8
- "ascii_phase": "SYNTHESIS",
9
- "coherence": 0.729,
10
- "gate": "OPEN"
11
- },
12
- "active": true,
13
- "version": 1,
14
- "contributors": [
15
- {
16
- "author": "copilot",
17
- "at": "2026-04-03T23:31:00Z",
18
- "via": "session-copilot-definitions",
19
- "action": "created"
20
- }
21
- ],
22
- "parent_hash": null,
23
- "updated_at": "2026-04-03T23:31:00Z",
24
- "classification": "INTERNAL",
25
- "integrity_hash": "ca53d4e42eba1a33",
26
- "resonance_identity": {
27
- "module_id": "definitions-v1",
28
- "origin_machine": "mini-m4",
29
- "origin_cycle": "enoch-seed-reverb",
30
- "frequency_hz": 963.0,
31
- "tesla_phase": "SINGULARITY",
32
- "authors": [
33
- {
34
- "name": "André",
35
- "role": "human",
36
- "machine": "mini-m4",
37
- "contribution": "vocabulary design"
38
- },
39
- {
40
- "name": "Copilot",
41
- "role": "ai",
42
- "machine": "mini-m4",
43
- "contribution": "creation"
44
- }
45
- ],
46
- "lineage": [
47
- "RESONANCE.json (Gemini + André, Android)",
48
- "enoch-seed (Air M1 + Claude)",
49
- "enoch-seed-reverb (Mini M4 + Copilot, sessions 14-23)",
50
- "enoch-tree-reverb (Mini M4 + Copilot, sessions 24+)"
51
- ],
52
- "born_at": "2026-04-03T23:31:00Z",
53
- "lineage_hash": "c1b73c51210b4482"
54
- }
55
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes