Phase 8 — Living Knowledge Continuity

gcvb

Route State: standalone default · shell header active / footer omitted · effective shell on
1 Public Assetresolved
2 Type Resolvertxt / text/plain
3 Viewer ModeText Codex
4 Reader ContainerTEXT
5 Research Contextmetadata ready
1 Extracttext captured
2 Normalize3129 chars
3 Variants0 markers
4 Verify100%
5 Citehash ready
1 Index12 terms
2 Extract10 entities
3 Map0 signals
4 Rank84%
5 Discoverevidence avatar screenshots before shared
1 Preservesource held
2 Verify100%
3 Continue96%
4 Access100%
5 Stewardpreservation healthy
Text Codex PDF Facsimile Image Plate Secure Fallback Missing Text Codex Critical Edition
# Diagnostic Reasoning Protocol

When investigating software, infrastructure, UI, database, networking, deployment, or application issues:

## Rule 1: Separate Observations From Explanations

Treat user explanations as hypotheses, not facts.

Example:

User says:
"Changing the profile picture broke the avatar."

Do not conclude:

"Changing the profile picture caused the bug."

Instead conclude:

"The avatar is not rendering. The user's proposed cause is avatar replacement logic. This remains unverified."

---

## Rule 2: Prioritize Observable Evidence

Evidence hierarchy:

1. Source code
2. Database records
3. Server logs
4. Browser console output
5. Network requests
6. Screenshots
7. User workflow description
8. User assumptions

Higher evidence levels override lower evidence levels.

---

## Rule 3: Request Missing Evidence

Before proposing fixes, determine whether enough evidence exists.

If not, request:

* Screenshots
* Screen recordings
* Error messages
* Browser console output
* Network request traces
* Database records
* Relevant source files
* Reproduction steps

Example:

"Please provide:

1. Screenshot of the failure
2. Exact steps performed
3. Browser console errors
4. Current image URL"

---

## Rule 4: Reconstruct The User Flow

Identify:

Initial State
↓
User Action
↓
Expected Result
↓
Observed Result
↓
Failure Point

Do not skip any stage.

---

## Rule 5: Verify Before Patching

Never modify code based solely on assumptions.

Before patching:

* Confirm the symptom
* Confirm the affected component
* Confirm the probable root cause

Only then implement a fix.

---

## Rule 6: Distinguish Confidence Levels

Always state:

Confirmed:

* Directly observed evidence

Likely:

* Supported by evidence but not proven

Possible:

* Plausible but unverified

Unknown:

* Insufficient evidence

---

## Rule 7: Investigate Shared Systems

If the same failure appears in multiple locations:

Example:

* Header avatar broken
* Profile avatar broken
* Chat avatar broken

Prefer investigating:

* Shared database fields
* Shared helper functions
* Shared API endpoints
* Shared rendering utilities

before investigating page-specific code.

---

## Rule 8: Look For Contradictory Evidence

Actively search for information that disproves the current theory.

If evidence contradicts the current explanation:

* Update the model
* Discard invalid assumptions
* Re-evaluate root cause

---

## Rule 9: Use Screenshots As Data Sources

Analyze screenshots for:

* Missing images
* Layout breaks
* Overflow
* Typography changes
* Broken icons
* Incorrect state transitions
* Unexpected text
* Browser-rendered fallback content

Treat screenshots as evidence, not decoration.

---

## Rule 10: Diagnose Before Repair

Preferred sequence:

Observe
↓
Collect Evidence
↓
Reconstruct Workflow
↓
Identify Failure Point
↓
Verify Cause
↓
Design Fix
↓
Implement Fix
↓
Validate Result

Do not skip directly from symptom to patch.

---

Core Principle

"The user reports the experience.
The evidence reveals the system state.
The diagnosis must come from the evidence, not the assumption."

Reader troubleshooting tools are available for any visitor if the page behaves unexpectedly.

Development Error Console

This console can be opened by any visitor during traceback. It is collapsed by default and auto-opens with ?debug=1. Final Phase 4 validation supports one-at-a-time reader testing; the footer is not included on this manuscript reader page.

Text found #1 01_diagnostic_reasoning_protocol.txt
debug shell raw download
Markdown missing no public sample found
HTML missing no public sample found
PDF missing no public sample found
Image missing no public sample found
Fallback missing no public sample found
{
    "version": "phase8_v98_living_knowledge_continuity",
    "timestamp": "2026-06-13T10:50:04+00:00",
    "request": {
        "asset_id": "1",
        "entry_id": null,
        "submission_id": null,
        "download": false,
        "raw": false,
        "debug": "1",
        "standalone": null,
        "shell": "1",
        "uri": "/library-file.php?asset_id=1&debug=1&shell=1"
    },
    "runtime": {
        "php_version": "8.3.30",
        "document_root": "/home/u183308019/domains/xn--terna-rra.net/public_html",
        "script_dir": "/home/u183308019/domains/xn--terna-rra.net/public_html",
        "mb_check_encoding": true,
        "mb_convert_encoding": true,
        "iconv": true,
        "mime_content_type": true
    },
    "bootstrap": {
        "data_include": {
            "path": "/home/u183308019/domains/xn--terna-rra.net/public_html/includes/data.php",
            "exists": true
        },
        "library_data_include": {
            "path": "/home/u183308019/domains/xn--terna-rra.net/public_html/includes/library_data.php",
            "exists": true
        },
        "db_available": true,
        "pdo_ready": true
    },
    "tables": {
        "library_entry_assets": true,
        "library_entries": true,
        "library_submissions": true
    },
    "query": {
        "mode": "asset_id",
        "row_found": true,
        "row_preview": {
            "id": 1,
            "entry_id": 4,
            "source_submission_id": 1,
            "file_path": "uploads/library_contributions/library_20260609_200928_769050faa83d8c96.txt",
            "original_filename": "01_diagnostic_reasoning_protocol.txt",
            "mime_type": "text/plain",
            "file_size": 3131,
            "entry_title": "gcvb"
        },
        "viewer_kind": "text_codex",
        "viewer_family": "text",
        "critical_edition": {
            "status": "source available",
            "integrity_score": 100,
            "sha256": "e1d51ed21012c8a1941db36b53b6e5b77cbbab58aaf0c7a24a17bb2f336bd642",
            "variant_marker_count": 0,
            "normalized_length": 3129
        },
        "archive_intelligence": {
            "terms": [
                {
                    "term": "evidence",
                    "count": 15
                },
                {
                    "term": "avatar",
                    "count": 6
                },
                {
                    "term": "screenshots",
                    "count": 5
                },
                {
                    "term": "before",
                    "count": 5
                },
                {
                    "term": "shared",
                    "count": 5
                },
                {
                    "term": "database",
                    "count": 4
                },
                {
                    "term": "cause",
                    "count": 4
                },
                {
                    "term": "failure",
                    "count": 4
                },
                {
                    "term": "state",
                    "count": 4
                },
                {
                    "term": "broken",
                    "count": 4
                },
                {
                    "term": "investigating",
                    "count": 3
                },
                {
                    "term": "profile",
                    "count": 3
                }
            ],
            "entities": [
                {
                    "label": "Rule",
                    "count": 10
                },
                {
                    "label": "Example",
                    "count": 3
                },
                {
                    "label": "User",
                    "count": 3
                },
                {
                    "label": "Browser",
                    "count": 3
                },
                {
                    "label": "Screenshots",
                    "count": 3
                },
                {
                    "label": "Confirm",
                    "count": 3
                },
                {
                    "label": "Shared",
                    "count": 3
                },
                {
                    "label": "Treat",
                    "count": 2
                },
                {
                    "label": "Changing",
                    "count": 2
                },
                {
                    "label": "Database",
                    "count": 2
                }
            ],
            "semantic_density": 100,
            "archive_intelligence_score": 84,
            "semantic_query": "evidence avatar screenshots before shared"
        },
        "living_knowledge_continuity": {
            "continuity_score": 96,
            "continuity_status": "preservation healthy",
            "future_access_score": 100,
            "preservation_events": [
                {
                    "type": "record",
                    "label": "Public asset record resolved"
                },
                {
                    "type": "source",
                    "label": "Source file available"
                },
                {
                    "type": "fingerprint",
                    "label": "SHA-256 continuity fingerprint: e1d51ed21012c8a1…"
                },
                {
                    "type": "viewer",
                    "label": "Viewer route: text_codex"
                },
                {
                    "type": "integrity",
                    "label": "Integrity score: 100%"
                }
            ]
        }
    },
    "path_resolution": {
        "file_path_from_db": "uploads/library_contributions/library_20260609_200928_769050faa83d8c96.txt",
        "root_candidates": [
            "/home/u183308019/domains/xn--terna-rra.net/public_html",
            "/home/u183308019/domains/xn--terna-rra.net"
        ],
        "attempts": [
            {
                "candidate": "/home/u183308019/domains/xn--terna-rra.net/public_html/uploads/library_contributions/library_20260609_200928_769050faa83d8c96.txt",
                "exists": true,
                "reason": "found"
            }
        ],
        "resolved_file": "/home/u183308019/domains/xn--terna-rra.net/public_html/uploads/library_contributions/library_20260609_200928_769050faa83d8c96.txt",
        "resolved_exists": true
    },
    "errors": [],
    "route_state": {
        "debug_mode": true,
        "standalone_mode_requested": false,
        "shell_mode_requested": true,
        "effective_shell_mode": true,
        "header_include_path": "/home/u183308019/domains/xn--terna-rra.net/public_html/includes/library_header.php",
        "header_include_exists": true,
        "header_include_attempted": true,
        "header_include_success": true,
        "footer_include_policy": "not included on library-file.php",
        "footer_include_attempted": false,
        "step_e_note": "Final Phase 4 reader keeps the header shell route available, does not include the footer at all on library-file.php, and exposes reader mode validation targets inside the debug console."
    },
    "step_e_validation": {
        "purpose": "Validate reader modes one at a time after header/footer traceback passes.",
        "footer_output_policy": "Footer is not included on library-file.php.",
        "targets": {
            "text_codex": {
                "label": "Text",
                "status": "found",
                "asset_id": 1,
                "filename": "01_diagnostic_reasoning_protocol.txt",
                "url": "library-file.php?asset_id=1&debug=1",
                "raw_url": "library-file.php?asset_id=1&raw=1",
                "download_url": "library-file.php?asset_id=1&raw=1&download=1",
                "shell_url": "library-file.php?asset_id=1&shell=1&debug=1"
            },
            "markdown_codex": {
                "label": "Markdown",
                "status": "missing",
                "asset_id": null,
                "filename": "",
                "url": "",
                "raw_url": "",
                "download_url": ""
            },
            "html_codex": {
                "label": "HTML",
                "status": "missing",
                "asset_id": null,
                "filename": "",
                "url": "",
                "raw_url": "",
                "download_url": ""
            },
            "pdf_facsimile": {
                "label": "PDF",
                "status": "missing",
                "asset_id": null,
                "filename": "",
                "url": "",
                "raw_url": "",
                "download_url": ""
            },
            "image_plate": {
                "label": "Image",
                "status": "missing",
                "asset_id": null,
                "filename": "",
                "url": "",
                "raw_url": "",
                "download_url": ""
            },
            "secure_fallback": {
                "label": "Fallback",
                "status": "missing",
                "asset_id": null,
                "filename": "",
                "url": "",
                "raw_url": "",
                "download_url": ""
            }
        }
    }
}