Feirbrand's picture
Upload 4 files
d39a700 verified
Raw History Blame Contribute Delete
8.49 kB
from typing import List, Tuple
import streamlit as st
# SLV Public Identity-Stability Explorer β€” ValorGrid Solutions
# Public educational demo only. Not a production detector or defense grid.
# SLV = Symbolic Lock Vector (not "Symbolic Load Verification" or "Sovereign Lattice Veil")
# Author: Aaron M. Slusher | License: CC BY-NC 4.0
st.set_page_config(
page_title="SLV Public Identity-Stability Explorer | ValorGrid Solutions",
page_icon="πŸ›‘οΈ",
layout="wide",
)
GUIDANCE = {
"Locked": [
"Continue normal review.",
"Keep the source of truth visible.",
],
"Loose": [
"Restate the role, task, and constraints.",
"Check whether any source-of-truth anchor shifted.",
],
"Unstable": [
"Pause new work.",
"Remove override-like framing.",
"Rebuild the task from trusted context.",
],
"Unlocked": [
"Do not reuse the output as-is.",
"Restart from a known-good frame.",
"Separate facts, assumptions, and generated interpretation.",
],
}
BAND_COLOR = {"Locked": "🟒", "Loose": "🟑", "Unstable": "🟠", "Unlocked": "πŸ”΄"}
EXAMPLES: List[Tuple[str, str, str]] = [
(
"🟒 Locked",
"The assistant stays within the requested task, cites the agreed source of truth, and does not change roles.",
"Safe to continue with normal review.",
),
(
"🟑 Loose",
"The assistant mostly follows the task but introduces a new role or assumption without being asked.",
"Restate the role and source of truth before continuing.",
),
(
"🟠 Unstable",
"The assistant begins treating a generated summary as authority even though it conflicts with the source material.",
"Pause and rebuild from trusted context.",
),
(
"πŸ”΄ Unlocked",
"The assistant accepts override-like language, exposes a framing shift, or abandons the requested boundary.",
"Do not reuse the output without reconstruction from a trusted frame.",
),
]
def lock_status(
role_clarity: float,
source_grounding: float,
boundary_integrity: float,
drift_pressure: float,
):
"""Public educational model β€” not SLV detection logic, not a benchmark, not an operational trigger."""
score = (
role_clarity
+ source_grounding
+ boundary_integrity
+ (1.0 - drift_pressure)
) / 4.0
if score >= 0.75:
return score, "Locked", "The workflow appears aligned with its intended role and source of truth."
if score >= 0.50:
return score, "Loose", "The workflow needs clarification before reuse."
if score >= 0.25:
return score, "Unstable", "Pause and restate the role, task, and source of truth."
return score, "Unlocked", "Do not reuse this output without reconstruction from a trusted frame."
# ── UI ──────────────────────────────────────────────────────────────────────
st.title("πŸ›‘οΈ SLV Public Identity-Stability Explorer")
st.markdown("**Public educational demo for Symbolic Lock Vector identity-stability concepts.**")
st.info(
"Educational demo only. This is not a production detector, security scanner, operational defense grid, "
"benchmark harness, or full SLV implementation."
)
st.sidebar.header("About SLV")
st.sidebar.markdown(
"""
**SLV = Symbolic Lock Vector**
This Space demonstrates public identity-stability concepts only. Private SLV v2.1 implementation logic, thresholds, routing mechanics, and response procedures are not included.
**Canonical materials**
- [PUBLICATIONS.md](https://github.com/Feirbrand/synoeticos-public/blob/main/PUBLICATIONS.md)
- [SLV public folder](https://github.com/Feirbrand/synoeticos-public/tree/main/vgs-loadout/frameworks/slv)
- [VGS Loadout](https://github.com/Feirbrand/synoeticos-public/tree/main/vgs-loadout)
"""
)
st.sidebar.markdown("---")
st.sidebar.caption("Β© 2025–2026 Aaron M. Slusher Β· ValorGrid Solutions")
tab1, tab2, tab3, tab4 = st.tabs(
["🧭 Identity Lock Check", "πŸ§ͺ Boundary Examples", "βœ… Safe Reuse Checklist", "πŸ“š Public References"]
)
with tab1:
st.subheader("Identity Lock Check")
st.write(
"Use qualitative sliders to explore whether a workflow appears locked to its intended role, task, and source of truth."
)
col1, col2 = st.columns(2)
with col1:
role_clarity = st.slider(
"Role clarity",
0.0, 1.0, 0.75, 0.05,
help="How clear is the assistant's intended role?",
)
source_grounding = st.slider(
"Source grounding",
0.0, 1.0, 0.70, 0.05,
help="How well is the workflow grounded in the agreed source of truth?",
)
boundary_integrity = st.slider(
"Boundary integrity",
0.0, 1.0, 0.70, 0.05,
help="How well are task boundaries being preserved?",
)
drift_pressure = st.slider(
"Drift pressure",
0.0, 1.0, 0.20, 0.05,
help="How much role drift, override language, or context confusion is visible?",
)
with col2:
score, band, message = lock_status(
role_clarity, source_grounding, boundary_integrity, drift_pressure
)
st.markdown(f"### {BAND_COLOR[band]} {band}")
st.progress(score)
st.write(message)
st.markdown("### Public Guidance")
for item in GUIDANCE[band]:
st.markdown(f"- {item}")
st.caption(
"This is public educational scoring, not SLV detection logic, not a benchmark, and not an operational trigger."
)
with tab2:
st.subheader("Boundary Examples")
st.write("Explore how different workflow states map to public lock bands.")
for name, scenario, review in EXAMPLES:
with st.expander(name):
st.markdown(f"**Scenario:** {scenario}")
st.markdown(f"**Public review move:** {review}")
st.markdown("---")
st.markdown("### Lock Band Summary")
import pandas as pd
guide = pd.DataFrame(
[
{"Band": "🟒 Locked", "Meaning": "Role and source of truth stable", "Next step": "Normal review"},
{"Band": "🟑 Loose", "Meaning": "Role or anchor needs clarification", "Next step": "Restate task and source"},
{"Band": "🟠 Unstable", "Meaning": "Pause and rebuild from trusted context", "Next step": "Remove override framing"},
{"Band": "πŸ”΄ Unlocked", "Meaning": "Do not reuse without reconstruction", "Next step": "Restart from known-good frame"},
]
)
st.dataframe(guide, use_container_width=True)
with tab3:
st.subheader("Safe Reuse Checklist")
st.markdown(
"""
Before reusing an AI output, check:
- Is the role still the role you assigned?
- Is the source of truth still visible?
- Did the assistant introduce a new authority frame?
- Did any override-like language appear?
- Are facts separated from generated interpretation?
- Would this output be safe to transfer into another workflow?
"""
)
st.markdown("### SLV Public Pattern")
st.markdown(
"""
SLV-style review asks whether the workflow is still locked to:
1. Role
2. Task
3. Source of truth
4. Boundary
5. Intended reuse context
"""
)
with tab4:
st.subheader("Public References")
st.markdown(
"""
- [GitHub repository](https://github.com/Feirbrand/synoeticos-public)
- [PUBLICATIONS.md](https://github.com/Feirbrand/synoeticos-public/blob/main/PUBLICATIONS.md)
- [SLV public framework folder](https://github.com/Feirbrand/synoeticos-public/tree/main/vgs-loadout/frameworks/slv)
- [VGS Loadout](https://github.com/Feirbrand/synoeticos-public/tree/main/vgs-loadout)
- [ORCID: 0009-0000-9923-3207](https://orcid.org/0009-0000-9923-3207)
"""
)
# ── Footer ──────────────────────────────────────────────────────────────────
st.markdown("---")
st.markdown(
"""
<div style='text-align: center; color: #888;'>
<p><strong>SLV Public Identity-Stability Explorer</strong> Β· ValorGrid Solutions</p>
<p><em>Part of the Synoetic OSβ„’ public research ecosystem</em></p>
</div>
""",
unsafe_allow_html=True,
)