Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/seferim-agi-g16 / include/common/g16_core.hpp |
| Date | Not specified in source |
| Repository | Janady13/seferim-agi-g16 |
| Revision | 25f281b08b2f786f5a235b5abebfc39bf44d1044 |
| Branch | main |
| Path or archive member | include/common/g16_core.hpp |
| Original SHA-256 | c276cfc616a862a6e5d3f4ec38be396d9283118e27ae0898a59f89e10ec917ea |
| Git blob SHA | b0988a72197ac1cd412c697e730700a564ff0449 |
| Reading-copy SHA-256 | c276cfc616a862a6e5d3f4ec38be396d9283118e27ae0898a59f89e10ec917ea |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/seferim-agi-g16 / include/common/g16_core.hpp | main | 25f281b08b2f786f5a235b5abebfc39bf44d1044 | Open original |
| Janady13/seferim-agi-g16 / include/common/g16_core.hpp | copilot/update-code-libraries | 393af96a270295f79582b2b2a77bb49dd1a9a990 | Open original |
Recovered source transcript
Download complete source text ↓56 lines · 1.8 KB
// SEFERIM AGI G16 - Core interfaces
// Naming convention: WhatItDoes(Equation)-(Family)
#pragma once
#include <array>
#include <cstdint>
#include <string>
#include <string_view>
#include <vector>
namespace common {
// Golden ratio constant φ
constexpr double phi() { return 1.6180339887498948482; }
// Ψ(t): compact meta-state vector. Keep small and explicit.
struct MetaState {
// 16 family contributions + bias
std::array<double, 17> g; // g[0..15] families, g[16] bias/normalizer
// coherence + value + uncertainty signals
double coherence{0.0};
double value{0.0};
double uncertainty{1.0};
};
// Inputs at time t (observations, control, external context)
struct Inputs {
double dx_norm{0.0}; // normalized change magnitude
double ed_error{0.0}; // desiderata error ||E_D(t) - E_D(t-1)||
double utility{0.0}; // task utility signal
double stability{1.0}; // stability constraint (>=0)
};
// Family function interface: f_i(x) -> contribution
struct FamilyFn {
std::string name; // e.g. "ContinuousDynamics(x' = F(x,t)) - f1"
double (*fn)(double x, const Inputs& in); // minimal scalar form
};
// Produce the 16 family functions (lightweight placeholders with clear math labels)
std::vector<FamilyFn> build_families();
// Single-Stack Master Update: Ψ(t+1) = F(Ψ(t), Ψ(t-1), inputs)
MetaState update_meta_state(const MetaState& psi_t,
const MetaState& psi_tm1,
const Inputs& in);
// Objective: Ω = Surprise + Uncertainty − Value + penalty(stability)
double compute_omega(const MetaState& next,
const MetaState& prev,
const Inputs& in);
// Encode a short textual tag for logging or bindings.
std::string summarize(const MetaState& s);
} // namespace common
Mathematical records from this source
0102
g16_core · Single-Stack Master Update: Ψ(t+1)
This relation defines Single-Stack Master Update: Ψ(t+1) in the source section “g16_core · Single-Stack Master Update: Ψ(t+1)”. It specifies the displayed relationship between the…
g16_core · Objective: Ω
This relation defines Objective: Ω in the source section “g16_core · Objective: Ω”. It specifies the displayed relationship between the named quantities or parameters. Its…