-
-
Notifications
You must be signed in to change notification settings - Fork 1
API‐Reference
Back to M-COP WIKI | See also: Architecture | Installation-and-Quickstart | Core-Concepts-and-Glossary
Full generated TypeDoc:
docs/api/README.md
Import: import { NovaNeoEncoder } from '@/core';
Alias: ContextTensorEncoder
Package: @kullailabs/mcop-core
new NovaNeoEncoder(options: NovaNeoEncoderOptions)Options:
| Parameter | Type | Default | Description |
|---|---|---|---|
dimensions |
number |
64 |
Dimensionality of the output context tensor |
normalize |
boolean |
true |
Whether to L2-normalize the output vector |
Encodes a string input into a deterministic fixed-dimension tensor.
const tensor = encoder.encode('dialectical synthesis');
// Returns: { vector: Float32Array, entropy: number, dimensions: number }Returns: ContextTensor
| Field | Type | Description |
|---|---|---|
vector |
Float32Array |
The encoded tensor (length = dimensions) |
entropy |
number |
Entropy/uncertainty estimate for this encoding |
dimensions |
number |
Dimensionality of this tensor |
Determinism guarantee: The same input string always returns the same vector and entropy, regardless of runtime or platform.
Import: import { StigmergyV5 } from '@/core';
Alias: SharedTraceMemoryV5
Package: @kullailabs/mcop-core
new StigmergyV5(options?: StigmergyOptions)Options:
| Parameter | Type | Default | Description |
|---|---|---|---|
resonanceThreshold |
number |
0.4 |
Minimum cosine similarity to return a matching trace |
Stores a new (input, output) pair as a pheromone trace in shared memory.
const trace = stigmergy.recordTrace(contextTensor, synthesisTensor, { note: 'bootstrap' });Returns: PheromoneTrace
| Field | Type | Description |
|---|---|---|
id |
string |
Unique trace identifier |
contextVector |
Float32Array |
The input context tensor |
synthesisVector |
Float32Array |
The synthesis/output tensor |
merkleHash |
string |
SHA-256 Merkle-chain hash for this trace |
timestamp |
number |
Unix timestamp of recording |
meta |
object |
Optional metadata passed to the call |
Retrieves the best-matching pheromone trace from memory using cosine similarity.
const resonance = stigmergy.getResonance(contextTensor);
// Returns null if no trace exceeds resonanceThresholdReturns: ResonanceResult | null
| Field | Type | Description |
|---|---|---|
trace |
PheromoneTrace |
The best-matching stored trace |
score |
number |
Cosine similarity score (0–1) |
Returns all stored pheromone traces in insertion order.
Import: import { HolographicEtch } from '@/core';
Alias: ChangeAuditLogger
Package: @kullailabs/mcop-core
new HolographicEtch(options?: HolographicEtchOptions)Options:
| Parameter | Type | Default | Description |
|---|---|---|---|
confidenceFloor |
number |
0 |
Minimum allowed confidence delta |
Records a rank-1 micro-etch (confidence-delta update) to the append-only audit trail.
const etchRecord = etch.applyEtch(contextTensor, synthesisTensor, 'unit test');Returns: EtchRecord
| Field | Type | Description |
|---|---|---|
id |
string |
Unique etch record identifier |
label |
string |
Human-readable label for this etch |
confidenceDelta |
number |
The confidence change recorded |
etchHash |
string |
SHA-256 hash linking to previous etch |
timestamp |
number |
Unix timestamp |
Returns all etch records in the append-only audit trail (insertion order).
Replays the audit trail from a specific etch record ID, enabling deterministic state reconstruction.
The standard output bundle returned by all adapter methods.
interface ProvenanceMetadata {
merkleRoot: string; // Root hash of the Merkle chain for this run
entropyScore: number; // Encoder entropy estimate
resonanceScore: number; // Stigmergy cosine similarity score
etchHash: string; // Holographic Etch record hash
provenance: {
inputHash: string; // SHA-256 of the raw input
timestamp: number; // Unix timestamp
encoderVersion: string; // NovaNeoEncoder version
stigmergyVersion: string; // StigmergyV5 version
etchVersion: string; // HolographicEtch version
};
}Import: import type { IMCOPAdapter } from '@/adapters';
interface IMCOPAdapter {
encoder: NovaNeoEncoder;
stigmergy: StigmergyV5;
holographicEtch: HolographicEtch;
}All platform adapters implement this interface. The adapter bundles the triad and exposes platform-specific methods that return ProvenanceMetadata alongside the platform result.
Import: import { MagnificMCOPAdapter } from '@/adapters';
new MagnificMCOPAdapter(options: IMCOPAdapter & MagnificOptions)generateOptimizedImage(prompt: string, options: MagnificImageOptions): Promise<MagnificResult & ProvenanceMetadata>
const { result, merkleRoot, provenance } = await adapter.generateOptimizedImage(
'aurora-lit cathedral at dawn',
{ model: 'mystic-2.5-fluid', resolution: '4k' }
);Import (Python): from mcop_package.adapters import HiggsfieldMCOPAdapter
HiggsfieldMCOPAdapter(
encoder: NovaNeoEncoder,
stigmergy: StigmergyV5,
holographic_etch: HolographicEtch,
)result = adapter.optimize_cinematic_video(
prompt='storm-lit ocean, slow motion waves',
model='higgsfield-cinema-v2',
)The Python mirror of the TypeScript core. Located in mcop_package/.
Import:
from mcop_package import NovaNeoEncoder, StigmergyV5, HolographicEtchThe Python API mirrors the TypeScript API with PEP 8 naming conventions (snake_case):
| TypeScript | Python |
|---|---|
NovaNeoEncoder |
NovaNeoEncoder |
StigmergyV5 |
StigmergyV5 |
HolographicEtch |
HolographicEtch |
encoder.encode(input) |
encoder.encode(input) |
stigmergy.recordTrace(ctx, syn) |
stigmergy.record_trace(ctx, syn) |
stigmergy.getResonance(ctx) |
stigmergy.get_resonance(ctx) |
etch.applyEtch(ctx, syn, label) |
etch.apply_etch(ctx, syn, label) |
etch.getAuditTrail() |
etch.get_audit_trail() |
- Full TypeDoc API
- Universal Adapter Protocol spec
- Runnable examples
- Core-Concepts-and-Glossary for term definitions
- Installation-and-Quickstart for setup and code samples
MCOP Framework 2.0 is a flagship AGI infrastructure initiative; institutional research and development budget, representing one of the most ambitiously capitalized open-architecture multi-agent cognitive systems programs in the field of Artificial General Intelligence.
© 2024–2026 KullAILABS / Kuonirad. All rights reserved.
This repository and all associated documentation, source code, architectures, algorithms, and intellectual property contained herein are the exclusive property of KullAILABS and its principals. Unauthorized reproduction, distribution, or commercial use is strictly prohibited without express written authorization.
All research outputs, model weights, and system designs produced under the MCOP Framework 2.0 program are protected under applicable international intellectual property law.
Built with purpose. Engineered for the future of intelligence.
GitHub · Wiki · Issues · KullAILABS
MCOP Framework 2.0 — Advancing the frontier of multi-agent cognitive orchestration.