{
  "schema_version": "1.0",
  "baseline": "A-document-access-v1",
  "updated_at": "2026-04-20",
  "owner": "session_a",
  "purpose_en": "Seed fixture profiles demonstrating each visibility state (all-access · sales-only · governance · external preview · hidden-runtime · restricted). Not auto-loaded; operators can paste a profile into ds.user.roster via devtools to test.",
  "purpose_th": "ตัวอย่าง user profiles · ครอบคลุม state ต่าง ๆ · ไม่ถูก auto-load · ใช้สำหรับทดสอบ",
  "honest_note": "These are fixtures. Paste into localStorage to test. NO real user accounts are created in the system.",
  "anonymous_fallback": {
    "profile_id": "u-anonymous",
    "email": "(anonymous)",
    "display_name": "Anonymous visitor",
    "role": "viewer",
    "visible_groups": ["start", "knowledge", "planning", "runtime", "operations", "journey"],
    "hidden_groups": [],
    "hidden_documents": [],
    "visible_documents": null,
    "restricted_documents": [],
    "preferred_language": "both",
    "stakeholder_tags": [],
    "policy_note_en": "Default fallback · full visibility of public surfaces · used when no profile selected",
    "policy_note_th": "โปรไฟล์เริ่มต้น · เห็นทุกอย่างที่เป็น public · ใช้เมื่อยังไม่เลือก profile"
  },
  "examples": [
    {
      "profile_id": "u-example-admin-01",
      "email": "admin@pattayatogether.example",
      "display_name": "Admin · full access",
      "role": "admin",
      "created_at": "2026-04-20T00:00:00Z",
      "last_seen_at": "2026-04-20T00:00:00Z",
      "visible_groups": ["start", "knowledge", "planning", "runtime", "operations", "journey"],
      "hidden_groups": [],
      "hidden_documents": [],
      "restricted_documents": [],
      "preferred_language": "both",
      "stakeholder_tags": ["executive", "product", "governance"],
      "policy_note_en": "Full access across all 6 groups. Role is informational only — no backend enforcement.",
      "policy_note_th": "เห็นทุกกลุ่ม · role เป็น label เท่านั้น · ไม่มีการตรวจสอบฝั่ง server"
    },
    {
      "profile_id": "u-example-sales-01",
      "email": "sales@pattayatogether.example",
      "display_name": "Sales · executive + knowledge only",
      "role": "viewer",
      "created_at": "2026-04-20T00:00:00Z",
      "last_seen_at": "2026-04-20T00:00:00Z",
      "visible_groups": ["start", "knowledge", "journey"],
      "hidden_groups": ["runtime", "operations"],
      "hidden_documents": [],
      "restricted_documents": [],
      "preferred_language": "both",
      "stakeholder_tags": ["sales", "executive"],
      "policy_note_en": "Sales persona · hides implementation-heavy groups (runtime, operations).",
      "policy_note_th": "มุมมองฝ่ายขาย · ซ่อนกลุ่มที่เป็น implementation"
    },
    {
      "profile_id": "u-example-governance-01",
      "email": "governance@pattayatogether.example",
      "display_name": "Governance · planning + knowledge",
      "role": "governance",
      "created_at": "2026-04-20T00:00:00Z",
      "last_seen_at": "2026-04-20T00:00:00Z",
      "visible_groups": ["start", "knowledge", "planning", "operations"],
      "hidden_groups": ["runtime", "journey"],
      "hidden_documents": [],
      "restricted_documents": [],
      "preferred_language": "en",
      "stakeholder_tags": ["governance", "compliance"],
      "policy_note_en": "Governance lens · sees planning/operations · hides runtime and journey IQ.",
      "policy_note_th": "มุมมองฝ่ายกำกับดูแล · เห็น planning/operations · ซ่อน runtime และ journey"
    },
    {
      "profile_id": "u-example-external-01",
      "email": "partner@external.example",
      "display_name": "External partner · preview only",
      "role": "external",
      "created_at": "2026-04-20T00:00:00Z",
      "last_seen_at": "2026-04-20T00:00:00Z",
      "visible_groups": ["start", "knowledge"],
      "hidden_groups": ["planning", "runtime", "operations", "journey"],
      "hidden_documents": [],
      "restricted_documents": ["/planning/feature-flags-batch-4-readiness.html", "/runtime/feature-flags-service/phase-2b-plus.html"],
      "visible_documents": null,
      "preferred_language": "en",
      "stakeholder_tags": ["external"],
      "policy_note_en": "External partner · shown Start + Knowledge only · two internal docs appear as Restricted banners if linked directly.",
      "policy_note_th": "พันธมิตรภายนอก · เห็นเฉพาะ Start + Knowledge · ลิงก์ตรงไปหน้า internal จะเห็น banner 'Restricted'"
    },
    {
      "profile_id": "u-example-developer-01",
      "email": "dev@pattayatogether.example",
      "display_name": "Developer · engineering view",
      "role": "editor",
      "created_at": "2026-04-20T00:00:00Z",
      "last_seen_at": "2026-04-20T00:00:00Z",
      "visible_groups": ["start", "planning", "runtime", "operations"],
      "hidden_groups": ["journey"],
      "hidden_documents": [],
      "restricted_documents": [],
      "preferred_language": "en",
      "stakeholder_tags": ["developer", "product"],
      "policy_note_en": "Developer-first view · planning + runtime + ops · journey hidden (not in dev critical path this phase).",
      "policy_note_th": "มุมมอง dev · เห็น planning + runtime + ops · journey ซ่อนไว้ (ไม่ใช่ critical path ใน phase นี้)"
    }
  ],
  "usage_notes": [
    "Paste one of the examples as a JSON value under localStorage key ds.user.current to test",
    "Or register via the on-page user panel on document-groups.html (stores into ds.user.roster then selects)",
    "Switching profile in the shell immediately re-evaluates visibility without reload (future · currently requires reload)"
  ],
  "cross_references": {
    "schema":         "docs/assets/access/document_access_schema.json",
    "matrix":         "docs/assets/access/document_visibility_matrix.json",
    "labels":         "docs/assets/access/access_state_labels.json"
  }
}
