{
  "title": "Sign-in Failure Investigation",
  "description": "Locate the session boundary: successful authentication, a rejected follow-up request, and a verified recovery path.",
  "graph": {
    "direction": "LR",
    "nodes": [
      {
        "id": "submit",
        "type": "io",
        "label": "Submit credentials",
        "description": "POST /sign-in sends fictional credentials to an isolated loopback service. The response was HTTP 200. No real account or secret was used.",
        "group": "",
        "groupId": "client",
        "category": "frontend",
        "position": {
          "x": 100,
          "y": 200
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "request",
        "type": "process",
        "label": "Request session",
        "description": "GET /session is compared twice: the first deliberately omits Cookie, and the second explicitly carries the cookie issued at sign-in. Node fetch does not manage a browser cookie jar. Browser policy and proxy forwarding remain outside this evidence.",
        "group": "",
        "groupId": "client",
        "category": "frontend",
        "position": {
          "x": 100,
          "y": 460
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "rejected",
        "type": "terminal",
        "label": "401 · Sign-in required",
        "description": "The first follow-up response was HTTP 401 with error missing_session. This is a captured server response, not an observed browser screen.",
        "group": "",
        "groupId": "client",
        "category": "frontend",
        "position": {
          "x": 100,
          "y": 770
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "credentials",
        "type": "process",
        "label": "Verify credentials",
        "description": "The service looked up the fictional member account and accepted the supplied credentials. This boundary succeeded in request signin-01.",
        "group": "",
        "groupId": "identity",
        "category": "backend",
        "position": {
          "x": 540,
          "y": 200
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "issue",
        "type": "process",
        "label": "Issue session",
        "description": "The service generated a session identifier, stored its account mapping in memory and returned Set-Cookie with Path=/, HttpOnly and SameSite=Lax. The evidence redacts the generated value.",
        "group": "",
        "groupId": "identity",
        "category": "backend",
        "position": {
          "x": 540,
          "y": 460
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "cookie",
        "type": "decision",
        "label": "Session cookie?",
        "description": "The service first checks whether the session cookie exists. Missing-cookie requests stop before session-store lookup; a present cookie continues to resolution.",
        "group": "",
        "groupId": "identity",
        "category": "backend",
        "position": {
          "x": 520,
          "y": 700
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "accounts",
        "type": "datastore",
        "label": "Accounts",
        "description": "An in-memory account collection contains one fictional member. The lookup matched during signin-01; this cylinder represents a data store, not a claim that an external database was exercised.",
        "group": "",
        "groupId": "state",
        "category": "database",
        "position": {
          "x": 1020,
          "y": 200
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "sessions",
        "type": "datastore",
        "label": "Active sessions",
        "description": "An in-memory map holds the generated session-to-account association for the lifetime of the isolated service. The service is closed after the comparison.",
        "group": "",
        "groupId": "state",
        "category": "database",
        "position": {
          "x": 1020,
          "y": 460
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "resolve",
        "type": "process",
        "label": "Resolve session",
        "description": "With the issued cookie explicitly supplied, the service resolved the active session to the fictional account. Request session-03 returned HTTP 200 with authenticated: true.",
        "group": "",
        "groupId": "state",
        "category": "backend",
        "position": {
          "x": 1020,
          "y": 740
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "authorized",
        "type": "terminal",
        "label": "200 · Authorized",
        "description": "The comparison request carrying the issued cookie returned authenticated: true. This verifies this isolated service path; it does not prove a browser configuration change or a production repair.",
        "group": "",
        "category": "frontend",
        "position": {
          "x": 1480,
          "y": 752
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      }
    ],
    "edges": [
      {
        "id": "submit-credentials",
        "source": "submit",
        "target": "credentials",
        "label": "POST /sign-in",
        "description": "Submit the fictional member credentials.",
        "sourceHandle": "right",
        "targetHandle": "left",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "credentials-accounts",
        "source": "credentials",
        "target": "accounts",
        "label": "Look up account",
        "description": "Credential validation reads the in-memory account collection.",
        "sourceHandle": "right",
        "targetHandle": "left",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "accounts-issue",
        "source": "accounts",
        "target": "issue",
        "label": "Accepted",
        "description": "A matched account permits a new session to be issued.",
        "sourceHandle": "bottom",
        "targetHandle": "right",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "issue-sessions",
        "source": "issue",
        "target": "sessions",
        "label": "Store session",
        "description": "Persist the session-to-account association in the service memory.",
        "sourceHandle": "right",
        "targetHandle": "left",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "issue-request",
        "source": "issue",
        "target": "request",
        "label": "Next request",
        "description": "After the successful sign-in, issue the follow-up request. One comparison omits Cookie; the other explicitly carries it.",
        "sourceHandle": "left",
        "targetHandle": "right",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "request-cookie",
        "source": "request",
        "target": "cookie",
        "label": "GET /session",
        "description": "The follow-up request crosses the session boundary.",
        "sourceHandle": "bottom",
        "targetHandle": "left",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "cookie-rejected",
        "source": "cookie",
        "target": "rejected",
        "label": "Missing cookie",
        "description": "Request session-02 had no Cookie header and received HTTP 401. The absence was deliberately injected; browser or proxy causation is not established.",
        "sourceHandle": "left",
        "targetHandle": "right",
        "labelOffset": {
          "x": -20,
          "y": -189
        },
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "cookie-resolve",
        "source": "cookie",
        "target": "resolve",
        "label": "Cookie present",
        "description": "Request session-03 explicitly supplied the previously issued cookie and continued to lookup.",
        "sourceHandle": "right",
        "targetHandle": "left",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "resolve-sessions",
        "source": "resolve",
        "target": "sessions",
        "label": "Read session",
        "description": "Resolve the cookie value against the in-memory active sessions.",
        "sourceHandle": "top",
        "targetHandle": "bottom",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      },
      {
        "id": "resolve-authorized",
        "source": "resolve",
        "target": "authorized",
        "label": "Session found",
        "description": "The matched session produced the captured HTTP 200 authenticated response.",
        "sourceHandle": "right",
        "targetHandle": "left",
        "basis": "observed",
        "sources": [
          {
            "repository": "Mapfable Showcase",
            "path": "../evidence/signin-observations.json",
            "revision": "080908b29677c94710f2168a62bbee8832f72421fcd484d8116342165f4a837d",
            "note": "Captured from a constructed loopback HTTP service with in-memory data. This is not a production incident or a browser-cookie trace."
          }
        ]
      }
    ],
    "groups": [
      {
        "id": "client",
        "label": "Client requests",
        "description": "Three HTTP exchanges expose the difference between signing in and carrying a session on the next request."
      },
      {
        "id": "identity",
        "label": "Identity service",
        "description": "Credential validation and cookie checks are separate boundaries. A successful sign-in does not guarantee the next request is authenticated."
      },
      {
        "id": "state",
        "label": "Session state",
        "description": "The isolated service uses in-memory account and session stores. No production database or user data is involved."
      }
    ]
  },
  "investigation": {
    "title": "Session boundary analysis",
    "environment": "Isolated local sign-in scenario",
    "checkedAt": "2026-10-31T13:07:11.329Z",
    "summary": "A controlled local HTTP comparison isolates a missing session cookie. Sign-in issued a cookie successfully. Omitting it on the follow-up request produced HTTP 401; carrying it returned HTTP 200. Cookie policy and proxy behavior were not exercised. The absent header is an observed failure condition, while its cause in a real client remains open.",
    "findings": [
      {
        "id": "signin-accepted",
        "targetType": "node",
        "targetId": "credentials",
        "status": "verified",
        "note": "Credentials were accepted.",
        "evidence": "Captured request signin-01: POST /sign-in → 200; accountLookupMatched=true and credentialsAccepted=true. Fictional account in an isolated local service."
      },
      {
        "id": "cookie-issued",
        "targetType": "node",
        "targetId": "issue",
        "status": "verified",
        "note": "The session was created and a cookie was issued.",
        "evidence": "Captured request signin-01: sessionCreated=true, cookieIssued=true; Set-Cookie: session=[redacted]; Path=/; HttpOnly; SameSite=Lax."
      },
      {
        "id": "transport-review",
        "targetType": "node",
        "targetId": "request",
        "status": "suspected",
        "note": "Check why the real client might fail to carry the cookie.",
        "evidence": "The comparison intentionally omitted the header. Browser credentials mode, cookie domain/path/SameSite policy and proxy forwarding were not exercised, so none is established as the root cause."
      },
      {
        "id": "missing-cookie",
        "targetType": "edge",
        "targetId": "cookie-rejected",
        "status": "confirmed_failure",
        "note": "The follow-up request was rejected at the cookie boundary.",
        "evidence": "Captured request session-02: GET /session without Cookie → HTTP 401, {\"error\":\"missing_session\"}; cookiePresent=false and sessionLookupAttempted=false."
      },
      {
        "id": "lookup-recovered",
        "targetType": "node",
        "targetId": "resolve",
        "status": "verified",
        "note": "Carrying the issued cookie restored authenticated access.",
        "evidence": "Captured request session-03: Cookie explicitly supplied → HTTP 200, {\"authenticated\":true,\"accountId\":\"account-local\"}; sessionLookupAttempted=true and sessionLookupMatched=true. This is a local comparison result, not a deployed fix."
      }
    ]
  }
}
