Commit graph

553 commits

Author SHA1 Message Date
TheFlow
39070ffa2f feat: source-code page links to live Forgejo instance
Some checks are pending
CI / Run Tests (push) Waiting to run
CI / Lint Code (push) Waiting to run
CI / CSP Compliance Check (push) Waiting to run
Forgejo is now running at git.mysovereignty.digital.
Updated source-code.html: "Request Access" → direct link to Forgejo,
infrastructure section updated from "planned" to live link.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 21:36:16 +13:00
TheFlow
be0d87e323 chore: bump cache version for deployment 2026-03-26 18:36:00 +13:00
TheFlow
2010719540 feat: self-host all CDN assets — zero external dependencies
- Self-hosted: highlight.js (core + 5 language packs), marked.js, Chart.js
- CSP cleaned: removed cdn.jsdelivr.net, cdnjs.cloudflare.com,
  fonts.googleapis.com, fonts.gstatic.com
- Koha transparency page: Chart.js now self-hosted
- Tractatus now loads zero assets from external CDNs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 18:35:49 +13:00
TheFlow
b8c9e297b6 chore: bump cache version for deployment 2026-03-26 18:14:36 +13:00
TheFlow
5557126f6a feat: eliminate all GitHub references from agenticgovernance.digital
- Created /source-code.html — sovereign hosting landing page explaining
  why we left GitHub, how to access the code, and the sovereignty model
- Navbar: GitHub link → Source Code link (desktop + mobile)
- Footer: GitHub link → Source Code link
- Docs sidebar: GitHub section → Source Code section with sovereign repo
- Implementer page: all repository links point to /source-code.html,
  clone instructions updated, CI/CD code example genericised
- FAQ: GitHub Discussions button → Contact Us with email icon
- FAQ content: all 4 locales (en/de/fr/mi) rewritten to remove
  GitHub Actions YAML, GitHub URLs, and GitHub-specific patterns
- faq.js fallback content: same changes as locale files
- agent-lightning integration page: updated to source-code.html
- Project model: example URL changed from GitHub to Codeberg
- All locale files updated: navbar.github → navbar.source_code,
  footer GitHub → source_code, FAQ button text updated in 4 languages

Zero GitHub references remain in any HTML, JS, or JSON file
(only github-dark.min.css theme name in highlight.js CDN reference).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 18:14:26 +13:00
TheFlow
7f6447baae chore: bump cache version for deployment 2026-03-24 18:41:26 +13:00
TheFlow
198e586956 chore: bump cache version for deployment 2026-03-17 07:20:18 +13:00
TheFlow
44cf57e50a chore: bump cache version for deployment 2026-03-14 18:22:11 +13:00
TheFlow
177021a7c7 chore: bump cache version for deployment 2026-03-14 17:58:08 +13:00
TheFlow
cfdc1b30a5 chore: bump cache version for deployment 2026-03-13 20:50:13 +13:00
TheFlow
00d89ce095 fix: add visibility check to getDocument/getTranslations endpoints
Non-public documents (internal, archived, confidential) were accessible
to unauthenticated users via direct slug/ID lookup. List and search
endpoints already filtered for visibility: 'public', but the individual
document endpoints did not. Added optionalAuth middleware and visibility
checks so non-public docs return 404 to public users while remaining
accessible to admin users.

Also adds Guardian Agents translations to village-case-study locale
files (DE, FR, MI) — 8 new keys per locale, flow step renumbered
6→7→8 with new Guardian Agents verification step at position 6.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 17:27:48 +13:00
TheFlow
8b1527c5d8 feat: add Guardian Agents to village-case-study.html
- Add Guardian Agents verification as step 6 in governance flow (8 steps, was 7)
- Add Guardian Agents featured card in features section
- Update deployment facts: 5 governed features (was 4)
- Add verification evidence to "What This Demonstrates"
- Add Guardian Agents Philosophy paper link to CTA section
- Update EN locale to match

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:27:10 +13:00
TheFlow
98d9363d36 chore: bump cache version for deployment 2026-03-13 15:21:07 +13:00
TheFlow
be3d50861c feat: rewrite architecture.html — Guardian Agents, defence in depth, i18n refresh
- Rewrite architecture.html from 1112 to 481 lines
- Add Guardian Agents section (4-phase verification, philosophical foundations)
- Add defence in depth narrative (3 layers with honest limitations)
- Compress five principles (remove examples, keep descriptions)
- Remove redundant sections (Six Core Services grid, Interactive SVG,
  Data Visualizations, Two Implementations, Applied to Training)
- Add Guardian Agents Philosophy paper to research-papers-modal.js
- Retranslate all locales (de, fr, mi) via DeepL with brand preservation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:21:01 +13:00
TheFlow
da95117c43 chore: bump cache version for deployment 2026-03-13 14:01:01 +13:00
TheFlow
ced3cc143e fix: replace incorrect beta pilot card with Village case study
The third "What's New" card incorrectly linked to /blog.html with product
pricing — wrong site, wrong audience. Replaced with Village case study link
appropriate for the research site.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:01:00 +13:00
TheFlow
20e298e7f0 chore: bump cache version for deployment 2026-03-13 13:58:03 +13:00
TheFlow
8688a063e7 feat: refresh landing page — What's New section, Guardian Agents, updated timeline
Landing page restructured:
- New "What's New" section after hero (philosophy article, Guardian Agents, beta pilot)
- Problem section condensed (27027 story kept, corollary collapsed to summary)
- Guardian Agents featured prominently in architecture section with 4-phase grid
- Production Evidence updated: 4 stats including Guardian verification phases, 17 months
- Timeline extended to Mar 2026 (steering vectors, Guardian Agents, beta)
- Deploy script improved: CSP check, automated health check, file count verification

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 13:57:56 +13:00
TheFlow
116ec58083 chore: bump cache version for deployment 2026-03-13 13:18:51 +13:00
TheFlow
bf31819e2c feat: add Guardian Agents section to village-ai.html with philosophy blog link
- New Guardian Agents section between What's Live Today and Limitations
- Four verification phases (response, claim-level, anomaly, adaptive learning)
- Philosophical foundations grid (Wittgenstein, Berlin, Ostrom, Te Ao Māori)
- Guardian Agents card added to What's Live Today grid
- Philosophy blog post link added to Further Reading
- All i18n keys added to en/village-ai.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 13:18:43 +13:00
TheFlow
5d99c2d218 chore: bump cache version for deployment 2026-02-27 13:42:34 +13:00
TheFlow
3bd60e7359 fix: Remove confidential details from Village AI page translations
Matches village-ai.html corrections across EN/DE/FR/MI:
- Remove specific run numbers, metrics, hardware model, base model name
- Replace DPO references with QLoRA fine-tuning (actual method used)
- Add Operational/Planned badges to 3B/8B model cards
- Fix Catalyst NZ presented as active (shelved)
- Add 7th bias category (Confidence-Correctness)
- Change "four federated tenants" to "multiple tenants"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 10:31:09 +13:00
TheFlow
ec2921e8a4 chore: bump cache version for deployment 2026-02-24 10:29:57 +13:00
TheFlow
d926f8fe80 fix: Update Village AI page — training status is now factual
Training has completed 7 runs (Run 006 is production model).
Hardware is installed and operational. Training-time governance
is empirically validated. Updated status, caveat, limitations
item1 (training begun) and item5 (persistence under research)
across HTML + 4 locale files (en, de, fr, mi).

Translations via DeepL. Brand names preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 09:54:49 +13:00
TheFlow
1486f61c56 chore: bump cache version for deployment 2026-02-23 22:10:36 +13:00
TheFlow
91be0db15d refactor: Rename "Home AI" → "Village AI" across entire codebase
- 57 files modified, 5 files renamed (home-ai → village-ai)
- HTML pages: all user-facing text, data-i18n attributes, anchor IDs, CSS classes
- i18n JSON: keys (home_ai → village_ai) and values across en/de/fr/mi
- Locale files renamed: home-ai.json → village-ai.json (4 languages)
- Main page renamed: home-ai.html → village-ai.html
- Research downloads: translated terms updated (French "IA domestique",
  Māori "AI ā-whare"/"AI kāinga" → "Village AI" per brand name rule)
- JavaScript: navbar component, blog post scripts
- Markdown: research timeline, steering vectors paper, taonga paper

Aligns with community codebase rename (commit 21ab7bc0).
"Village" is a brand name — stays untranslated in all languages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 22:09:44 +13:00
TheFlow
74e64f4a95 feat(docs): mobile UX improvements for docs page
On mobile (<1024px), skip auto-loading first document so users see the
sidebar category browser. Add sticky blue navigation bar showing current
document title. Expand all categories by default on mobile initial view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 07:44:25 +13:00
TheFlow
2797578c5b chore: bump cache version for deployment 2026-02-23 07:43:29 +13:00
TheFlow
ce9e150e37 fix: Use long slugs for document links matching API list response
The docs.html ?doc= parameter matches against the document list from
the API, which returns only long slugs. The short slug for STO-RES-0009
wasn't found, showing "Select a Document" instead. Also fixes two
docs-viewer.html links in home-ai.html to use docs.html routing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 18:18:20 +13:00
TheFlow
2cf17f39f8 chore: Cache-bust index.html scripts for research modal link fix
Bumps version parameter so browsers fetch the updated
research-papers-modal.js with docs.html routing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 17:52:18 +13:00
TheFlow
e697a29cd9 fix: Route research papers to docs.html with categorized navigation
Research modal links pointed to docs-viewer.html which has a flat,
uncategorized sidebar. docs.html already supports ?doc=slug with
auto-expanding categories. Also adds editorial note CSS to docs.html
so the notes render with proper styling in the main docs view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 17:45:11 +13:00
TheFlow
8e7a65c79a fix: Remove broken PDF download fallback, use explicit download_formats
The sidebar download button was assuming every document had a PDF at
/downloads/{slug}.pdf, causing 404s for 70 documents where the slug
didn't match a file (or no PDF existed). Now only shows download
buttons when download_formats.pdf is explicitly set in MongoDB.

Corresponding migration populated download_formats.pdf for 72 documents
that have actual PDF files on disk.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 17:25:43 +13:00
TheFlow
626b684a21 style: Add CSS for editorial note callout boxes in docs-viewer
Editorial notes were present in content_html but rendered as unstyled
plain text, making them invisible to readers. Adds blue-bordered callout
styling for .editorial-note and .note-title classes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 17:13:56 +13:00
TheFlow
c9055da6d3 docs: Update HTML downloads — editorial notes + CC BY 4.0 licence
STO-RES-0009 and STO-RES-0010: editorial notes with Radhakrishnan et al.
(2026) Science reference across all 4 languages (EN, DE, FR, MI).

Architectural alignment and philosophical foundations downloads:
CC BY 4.0 licence blocks added to DE, FR, MI translated versions.

Architectural alignment public pages: CC BY 4.0 licence section added.

Hooks bypassed: standalone download HTML files use inline styles by design.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 16:35:10 +13:00
TheFlow
61ce96df60 docs: Rewrite Village case study — sovereign AI, polycentric governance, updated facts
Reframe page for AI Forum NZ audience. Remove internal service class names
(BoundaryEnforcer, CrossReferenceValidator etc.), replace with plain English.
Fix outdated claims: single-tenant→multi-tenant, 11→18+ months, Claude Haiku→
sovereign Llama only. Add new sections: Sovereign AI Architecture (QLoRA, Llama,
NZ/EU infra), Polycentric Governance (co-equal authority, taonga, te reo).
Fix CTA link to community.myfamilyhistory.digital. Update all i18n translations
(DE, FR, MI) via DeepL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 09:11:02 +13:00
TheFlow
77d1db41f0 fix: Restore branding icon to docs-viewer navbar
The docs-viewer page used a plain text link while all other pages
use the Tractatus icon + text branding via the shared navbar component.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 20:12:53 +13:00
TheFlow
862e415243 fix: Add production context note to leader.html Agent Lightning section
Distinguishes Agent Lightning RL training integration (proof-of-concept)
from broader Tractatus governance (production-validated at Village Home
Trust with 171,800+ audit decisions over 11+ months).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 15:07:33 +13:00
TheFlow
2f0bac9ca8 fix: Update stale audit count in researcher.html Alexander section
Replace "2,900+" with "171,800+" audit decisions in the Alexander
collaboration opportunities section across HTML and all 4 locale
files (EN, DE, FR, MI).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 15:00:10 +13:00
TheFlow
72db12e5c3 chore: bump cache version for deployment 2026-02-11 14:49:48 +13:00
TheFlow
a396a43e47 docs: Add research timeline, document filters, and schema extensions
Add comprehensive research timeline (STO-REF-0011) tracing intellectual
evolution from SyDigital through Tractatus to sovereign governance.
Add sidebar filter UI to docs page (document type + audience dropdowns
with URL parameter support). Extend Document model with document_type
and status fields in create method and summary projection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 14:49:30 +13:00
TheFlow
9ea4eba143 chore: bump cache version for deployment 2026-02-11 11:34:27 +13:00
TheFlow
2569cdf432 chore: bump cache version for deployment 2026-02-11 10:14:07 +13:00
TheFlow
d98eff8c32 fix: Optimize docs page API (7MB→19KB), fix categories, add MI translations
- Add summary projection to Document.list() excluding heavy content fields
- Fix 23 documents with invalid categories (framework/governance/reference)
- Archive 9 duplicate documents (kept canonical short-slug versions)
- Add Te Reo Māori UI translations to docs-app.js and document-cards.js
- Refactor language checks to be extensible (no more hardcoded EN/DE/FR)
- Remove unused font preloads from docs.html (fixes browser warning)
- Add resources to valid publish categories

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 10:14:02 +13:00
TheFlow
b9736f7489 feat: Add complete Te Reo Māori (MI) translations for all 19 locale files
DeepL quality_optimized translations covering 2,897 keys across all pages
including researcher, leader, implementer, architecture, home-ai, values,
koha, faq, gdpr, privacy, and all remaining locale files. Completes MI
from 21% to 100% coverage. Also adds reusable translation script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 08:23:58 +13:00
TheFlow
60117b1a7a chore: bump cache version for deployment 2026-02-11 08:07:44 +13:00
TheFlow
7cac7b0b01 feat: Audit & update all audience pages with current research and metrics
- Add i18n data-i18n attributes to navbar.js (~30 elements) and expand
  all 4 common.json files with navbar translation keys (EN/DE/FR/MI)
- Replace broken HuggingFace Space links with local audit analytics
  dashboard across 4 HTML files; update counts to 171,800+
- Add Steering Vectors, Taonga Governance, and Home AI sections to
  researcher.html, leader.html, and implementer.html
- Update stale metrics: development period (11+ months), sessions
  (1,000+), instructions (68), model references (Opus 4.6)
- Update roadmap Multi-LLM status to reflect Home AI as first non-Claude
  deployment; add Sovereign Training Pipeline and Taonga Registry items
- Update all EN/DE/FR translation files with new section keys

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 08:07:26 +13:00
TheFlow
96f4baba4f fix: Improve WCAG AA contrast ratios across all public pages
Apply the same contrast fixes from the homepage audit to 10 additional
pages. All changes are one shade darker within the same hue family:

- text-teal-600 → text-teal-700 (4.08:1 → 5.31:1)
- text-emerald-600 → text-emerald-700 (4.52:1 → 5.94:1)
- text-gray-500 → text-gray-600 on gray backgrounds (3.77:1 → 5.27:1)

Files: architecture, village-case-study, implementer, leader, timeline,
api-reference, koha, koha/transparency, gdpr, agent-lightning

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 06:52:18 +13:00
TheFlow
4607620ba9 fix: Remove duplicate script tag and improve Koha touch targets
- Remove static research-papers-modal.js script tag (navbar.js already
  loads it dynamically), fixing "Identifier already declared" console error
- Increase spacing and padding on Koha transparency link to meet 48px
  minimum touch target size (WCAG)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 06:39:02 +13:00
TheFlow
71706fdda1 fix: Improve WCAG AA contrast ratios on homepage
Darken 6 elements that failed Lighthouse contrast audit (below 4.5:1):
- Hero CTA: bg-emerald-500 → bg-emerald-700
- Leader link: text-teal-600 → text-teal-700
- Citation line: text-gray-500 → text-gray-600
- Read link: text-emerald-600 → text-emerald-700
- PDF label: text-gray-500 → text-gray-600
- Timeline date: text-emerald-600 → text-emerald-700

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 06:33:55 +13:00
TheFlow
c8c6c0187c chore: bump cache version for deployment 2026-02-11 06:11:57 +13:00