Skip to content
AIWikis.org

JustAnIota Content Overrides

Publication Warning This page is marked noindex and should not be treated as canonical public authority.

<?php /**

Metadata

FieldValue
Source siteɩ.com / JustAnIota.com
Source URLhttps://justaniota.com/
Canonical AIWikis URLhttps://aiwikis.org/justaniota/uai-system/files/raw-system-archives-justaniota-short-domain-seo-release-2026-05-05-curre-d52019f6/
Source referenceraw/system-archives/justaniota/short-domain-seo-release/2026-05-05/current-source/wp-content/themes/iota-authority-theme/inc/justaniota-content-overrides.php
File typephp
Content categorymemory-file
Last fetched2026-05-15T00:23:56.0837262Z
Last changed2026-05-04T18:47:18.7090704Z
Content hashsha256:d52019f6addfbade9b5ac5a780690be8b484dc6437b42aa20e24ce763e32a539
Import statusunchanged
Raw source layerdata/sources/justaniota/raw-system-archives-justaniota-short-domain-seo-release-2026-05-05-current-source-wp-content-the-d52019f6addf.php
Normalized source layerdata/normalized/justaniota/raw-system-archives-justaniota-short-domain-seo-release-2026-05-05-current-source-wp-content-the-d52019f6addf.txt

Current File Content

Structure Preview

  • No Markdown headings were detected in this file.

Raw Version

This public page shows a bounded preview of a large source file. The complete source remains in the raw and normalized source layers named in metadata, with the SHA-256 hash above for verification.

  • Source characters: 83059
  • Preview characters: 11896
<?php
/**
 * JustAnIota-specific content overrides for the inherited authority theme.
 *
 * @package Iota_Authority
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! defined( 'JUSTANIOTA_CONTENT_OVERRIDE_VERSION' ) ) {
	define( 'JUSTANIOTA_CONTENT_OVERRIDE_VERSION', '2026-05-04.1' );
}

/**
 * Load JustAnIota browser tool prototypes on public pages.
 *
 * @return void
 */
function justaniota_enqueue_tool_assets() {
	if ( is_admin() ) {
		return;
	}

	wp_enqueue_script(
		'justaniota-tools',
		get_template_directory_uri() . '/assets/js/justaniota-tools.js',
		array(),
		JUSTANIOTA_CONTENT_OVERRIDE_VERSION,
		true
	);
}
add_action( 'wp_enqueue_scripts', 'justaniota_enqueue_tool_assets', 25 );

/**
 * Rewrite inherited public wording at render time without touching internal route slugs.
 *
 * @param string $value Text or markup.
 * @return string
 */
function justaniota_rewrite_public_text( $value ) {
	$replacements = array(
		'UAIX Agents Protocol' => 'JustAnIota Agent Handoff',
		'UAIX Homepage'        => 'JustAnIota Homepage',
		'Browse UAIX'          => 'Browse JustAnIota',
		'Published UAIX reports' => 'Archived JustAnIota source notes',
		'permanent UAIX report index' => 'archived JustAnIota source-note index',
		'UAIX report index'    => 'JustAnIota source-note index',
		'Relationship Audit of AIWikis, LLMWikis, and UAIX' => 'Archived Cross-Site Role Note',
		'LLM Wiki vs. UAIX Project Handoff' => 'Archived Memory Comparison Note',
		'LLM Wiki and UAIX Project Handoff' => 'Archived Handoff Model Note',
		'Refining UAI Protocol for Agent Communication' => 'Archived Messaging Research Note',
		'AGENTS.md .uai Linking Specification' => 'Archived AGENTS.md Link Note',
		'Specification for Linking .uai Files in AGENTS.md' => 'Archived AGENTS.md Link Note',
		'UAIX public record'   => 'JustAnIota public record',
		'UAIX public surface'  => 'JustAnIota public surface',
		'UAIX public archive'  => 'JustAnIota public archive',
		'UAIX public site'     => 'JustAnIota public site',
		'UAIX standards front page' => 'JustAnIota implementation front page',
		'UAIX standards surface' => 'UAI protocol surface',
		'UAIX publishes the UAI-1' => 'UAIX.org controls the UAI-1',
		'UAIX publishes UAI'   => 'UAIX.org controls UAI',
		'UAIX publishes'       => 'UAIX.org controls',
		'What UAIX.org controls now' => 'What JustAnIota publishes now',
		'What UAIX publishes now' => 'What JustAnIota publishes now',
		'Iota Protocol'        => 'JustAnIota implementation profile',
		'UAI-1 Specification'  => 'IOTA-1 Profile',
		'UAI-1 specification'  => 'IOTA-1 profile',
		'Read UAI Profile'     => 'Read IOTA-1 Profile',
		'WordPress Publication Track' => 'WordPress publishing notes',
		'.NET Bridge Track'    => '.NET bridge notes',
		'API Reference'        => 'Route Inventory',
		'Adoption Kit JSON'    => 'Starter Evidence JSON',
		'Adoption Kit'         => 'Starter Evidence Notes',
		'Conformance Pack JSON' => 'Evidence Pack JSON',
		'Conformance Pack'     => 'Evidence Pack Notes',
		'downloadable conformance records' => 'downloadable validation records',
		'conformance records'  => 'validation records',
		"\xC3\x89\xC2\xA9.com" => 'ɩ.com',
		'ɩ.com'               => 'ɩ.com',
		'sister-site'          => 'inherited-source',
		'sister site'          => 'related source',
		'companion domain'     => 'alternate domain',
	);

	return str_replace( array_keys( $replacements ), array_values( $replacements ), (string) $value );
}

/**
 * Rewrite inherited text-domain strings before display.
 *
 * @param string $translated Translated string.
 * @param string $text Original string.
 * @param string $domain Text domain.
 * @return string
 */
function justaniota_rewrite_gettext( $translated, $text, $domain ) {
	if ( 'uaix-authority' !== $domain ) {
		return $translated;
	}

	return justaniota_rewrite_public_text( $translated );
}
add_filter( 'gettext', 'justaniota_rewrite_gettext', 20, 3 );

/**
 * Rewrite pluralized inherited text-domain strings before display.
 *
 * @param string $translation Translated string.
 * @param string $single Singular string.
 * @param string $plural Plural string.
 * @param int    $number Number.
 * @param string $domain Text domain.
 * @return string
 */
function justaniota_rewrite_ngettext( $translation, $single, $plural, $number, $domain ) {
	if ( 'uaix-authority' !== $domain ) {
		return $translation;
	}

	return justaniota_rewrite_public_text( $translation );
}
add_filter( 'ngettext', 'justaniota_rewrite_ngettext', 20, 5 );

/**
 * Start a front-end output buffer to catch hard-coded inherited visible strings.
 *
 * @return void
 */
function justaniota_start_public_output_rewrite() {
	if ( is_admin() || wp_doing_ajax() ) {
		return;
	}

	ob_start( 'justaniota_rewrite_public_text' );
}
add_action( 'template_redirect', 'justaniota_start_public_output_rewrite', 0 );

/**
 * Deprecated compatibility hook for early conversion passes.
 *
 * @return array<string,array<string,string>>
 */
function justaniota_content_records() {
	return function_exists( 'justaniota_active_content_records' ) ? justaniota_active_content_records() : array();
}

/**
 * Build a three-layer JustAnIota page body.
 *
 * @param string $plain Plain-English explanation.
 * @param string $technical Technical summary.
 * @param string $deep Deep specification note.
 * @param array  $sections Additional section definitions.
 * @param string $component Optional raw component HTML generated by this file.
 * @return string
 */
function justaniota_build_layered_content( $plain, $technical, $deep, array $sections = array(), $component = '' ) {
	$html  = '<div class="jai-communication-layers" aria-label="' . esc_attr__( 'Three-layer explanation', 'uaix-authority' ) . '">';
	$html .= '<section class="jai-layer jai-layer--plain"><p class="jai-layer__label">' . esc_html__( 'Plain English', 'uaix-authority' ) . '</p><p>' . esc_html( $plain ) . '</p></section>';
	$html .= '<section class="jai-layer jai-layer--technical"><p class="jai-layer__label">' . esc_html__( 'Technical summary', 'uaix-authority' ) . '</p><p>' . esc_html( $technical ) . '</p></section>';
	$html .= '<details class="jai-layer jai-layer--deep"><summary>' . esc_html__( 'Deep spec', 'uaix-authority' ) . '</summary><p>' . esc_html( $deep ) . '</p></details>';
	$html .= '</div>';

	foreach ( $sections as $section ) {
		$title      = isset( $section['title'] ) ? (string) $section['title'] : '';
		$paragraphs = isset( $section['paragraphs'] ) && is_array( $section['paragraphs'] ) ? $section['paragraphs'] : array();
		$items      = isset( $section['items'] ) && is_array( $section['items'] ) ? $section['items'] : array();
		$code       = isset( $section['code'] ) ? (string) $section['code'] : '';

		$html .= '<section class="jai-record-section">';

		if ( '' !== $title ) {
			$html .= '<h2>' . esc_html( $title ) . '</h2>';
		}

		foreach ( $paragraphs as $paragraph ) {
			$html .= '<p>' . esc_html( (string) $paragraph ) . '</p>';
		}

		if ( ! empty( $items ) ) {
			$html .= '<ul class="jai-check-list">';
			foreach ( $items as $item ) {
				$html .= '<li>' . esc_html( (string) $item ) . '</li>';
			}
			$html .= '</ul>';
		}

		if ( '' !== $code ) {
			$html .= '<pre><code>' . esc_html( $code ) . '</code></pre>';
		}

		$html .= '</section>';
	}

	if ( '' !== $component ) {
		$html .= $component;
	}

	return $html;
}

/**
 * Escape textarea defaults without leaving literal newlines for wpautop.
 *
 * @param string $value Textarea default value.
 * @return string
 */
function justaniota_escaped_textarea_value( $value ) {
	return str_replace( array( "\r\n", "\r", "\n" ), '
', esc_textarea( (string) $value ) );
}

/**
 * Return a safe stored marker for a runtime-rendered JustAnIota tool.
 *
 * @param string $component Component identifier.
 * @return string
 */
function justaniota_component_shortcode_tag( $component ) {
	return "\n[justaniota_component id=\"" . sanitize_key( $component ) . "\"]\n";
}

/**
 * Render a lightweight Concept Bridge console.
 *
 * @return string
 */
function justaniota_concept_bridge_component() {
	$sample = 'Summarize the validator result and request human review before release.';

	ob_start();
	?>
	<section class="jai-tool-console jai-tool-console--bridge" data-jai-bridge>
		<div class="jai-tool-console__header">
			<p class="section__eyebrow"><?php esc_html_e( 'Concept Bridge Console', 'uaix-authority' ); ?></p>
			<h2><?php esc_html_e( 'Inspect source text before compact output exists', 'uaix-authority' ); ?></h2>
			<p><?php esc_html_e( 'This local prototype shows the review stages from natural language to registry-backed candidate tokens. It does not claim final semantic compression or UAI-1 authority.', 'uaix-authority' ); ?></p>
		</div>
		<div class="jai-tool-console__grid">
			<label class="jai-field">
				<span><?php esc_html_e( 'Source text', 'uaix-authority' ); ?></span>
				<textarea data-jai-bridge-source rows="7"><?php echo justaniota_escaped_textarea_value( $sample ); ?></textarea>
			</label>
			<div class="jai-field-row">
				<label class="jai-field">
					<span><?php esc_html_e( 'Source locale', 'uaix-authority' ); ?></span>
					<select data-jai-bridge-locale>
						<option value="en-US">en-US</option>
						<option value="zh-CN">zh-CN</option>
						<option value="ar">ar</option>
					</select>
				</label>
				<label class="jai-field">
					<span><?php esc_html_e( 'Normalization', 'uaix-authority' ); ?></span>
					<select data-jai-bridge-normalization>
						<option value="NFC">NFC</option>
						<option value="NFKC">NFKC review</option>
					</select>
				</label>
			</div>
			<button class="uaix-button uaix-button--primary" type="button" data-jai-bridge-run><?php esc_html_e( 'Run local review', 'uaix-authority' ); ?></button>
		</div>
		<div class="jai-tool-output" aria-live="polite">
			<div>
				<strong><?php esc_html_e( 'Plain-English interpretation', 'uaix-authority' ); ?></strong>
				<pre data-jai-bridge-plain></pre>
			</div>
			<div>
				<strong><?php esc_html_e( 'Registry candidates', 'uaix-authority' ); ?></strong>
				<pre data-jai-bridge-registry></pre>
			</div>
			<div>
				<strong><?php esc_html_e( 'Warnings', 'uaix-authority' ); ?></strong>
				<pre data-jai-bridge-warnings></pre>
			</div>
		</div>
	</section>
	<?php
	return (string) ob_get_clean();
}

/**
 * Render a local validator and encoder workbench.
 *
 * @return string
 */
function justaniota_validator_encoder_component() {
	$sample = wp_json_encode(
		array(
			'profile'       => 'jai.iota-1.message.v1',
			'uai_version'   => 'UAI-1',
			'locale'        => 'en-US',
			'direction'     => 'ltr',
			'normalization' => 'NFC',
			'registry'      => 'justaniota-demo-registry',
			'payload'       => array( 'intent' => 'request_review', 'subject' => 'validator_result' ),
		),
		JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES
	);

	ob_start();
	?>
	<section class="jai-tool-console jai-tool-console--validator" data-jai-validator>
		<div class="jai-tool-console__header">
			<p class="section__eyebrow"><?php esc_html_e( 'Validator / Encoder', 'uaix-authority' ); ?></p>
			<h2><?php esc_html_e( 'Check the envelope before exporting compact tokens', 'uaix-authority' ); ?></h2>
			<p><?php esc_html_e( 'The browser workbench validates required fields, Unicode safety warnings, registry-dependent payloads, and a deterministic demo encoding. Server-side validation remains a future implementation surface.', 'uaix-authority' ); ?></p>
		</div>
		<label class="jai-field">
			<span><?php esc_html_e( 'Candidate message JSON', 'uaix-authority' ); ?></span>

Why This File Exists

This is a memory-system evidence file from ɩ.com / JustAnIota.com. It is shown here because AIWikis.org is demonstrating the real source files that make the UAIX / LLM Wiki memory system work, not only summarizing those systems after the fact.

Role

This file is memory-system evidence. It records source history, archive transfer, intake disposition, or another piece of provenance that should be retrievable without becoming an unsupported public claim.

Structure

The file has no Markdown headings, so its path, frontmatter, file type, and provenance metadata carry most of the retrieval meaning.

Prompt-Size And Retrieval Benefit

Keeping this material in a separate file reduces prompt pressure because an agent can load this exact unit only when its role, source site, category, or hash is relevant. The surrounding index pages point to it, while this page preserves the full content for audit and exact recall.

How To Use It

  • Humans should read the metadata first, then inspect the raw content when they need exact wording or provenance.
  • LLMs and agents should use the source site, category, hash, headings, and related files to decide whether this file belongs in the active prompt.
  • Crawlers should treat the AIWikis page as transparent evidence and follow the source URL/source reference for authority boundaries.
  • Future maintainers should regenerate this page whenever the source hash changes, then review the explanation if the role or structure changed.

Update Requirements

When this source file changes, update the raw source layer, normalized source layer, hash history, this rendered page, generated explanation, source-file inventory, changed-files report, and any source-section index that links to it.

Related Pages

Provenance And History

  • Current observation: 2026-05-15T00:23:56.0837262Z
  • Source origin: current-source-workspace
  • Retrieval method: local-source-workspace
  • Duplicate group: sfg-646 (primary)
  • Historical hash records are stored in data/hashes/source-file-history.jsonl.

Machine-Readable Metadata

{
    "title":  "JustAnIota Content Overrides",
    "source_site":  "ɩ.com / JustAnIota.com",
    "source_url":  "https://justaniota.com/",
    "canonical_url":  "https://aiwikis.org/justaniota/uai-system/files/raw-system-archives-justaniota-short-domain-seo-release-2026-05-05-curre-d52019f6/",
    "source_reference":  "raw/system-archives/justaniota/short-domain-seo-release/2026-05-05/current-source/wp-content/themes/iota-authority-theme/inc/justaniota-content-overrides.php",
    "file_type":  "php",
    "content_category":  "memory-file",
    "content_hash":  "sha256:d52019f6addfbade9b5ac5a780690be8b484dc6437b42aa20e24ce763e32a539",
    "last_fetched":  "2026-05-15T00:23:56.0837262Z",
    "last_changed":  "2026-05-04T18:47:18.7090704Z",
    "import_status":  "unchanged",
    "duplicate_group_id":  "sfg-646",
    "duplicate_role":  "primary",
    "related_files":  [

                      ],
    "generated_explanation":  true,
    "explanation_last_generated":  "2026-05-15T00:23:56.0837262Z"
}

Next Useful Routes

  • Start Here A task-first reading path for AIWikis.org, separating newcomer learning, source-memory lookup, maintainer workflow, and AI-agent retrieval.
  • Topic Index A tag-oriented index for LLM Wiki, AI memory, UAI, source governance, crawling, and retrieval topics.
  • Source Map AIWikis source-governed page for durable AI memory, evidence routing, and agent-readable retrieval.
  • JustAnIota.com / ɩ.com Source Memory AIWikis source-governed page for durable AI memory, evidence routing, and agent-readable retrieval.
  • JustAnIota Source Memory Guide AIWikis source-governed page for durable AI memory, evidence routing, and agent-readable retrieval.
  • ɩ.com / JustAnIota.com UAI System Files Real current JustAnIota handoff, LLM Wiki, compact-message tooling, public-content, and source-archive evidence files.