Files
member-console/scripts/agent-runner/scope/01-session-lifecycle.md
T
cgalo5758 5829091881 Track the agent runner and its method page
The contained runner that drove the 2026-09 security audit, the README
review and four rounds of design ideation lived only inside the ignored
notebook. It moves to scripts/agent-runner/: the prepare, tools, audit,
ideation and teardown scripts, the compose and container files, the
allowlist proxy and the prompt templates, with the paths that assumed
the notebook fixed and findings written to a caller-named directory. Run
outputs, transcripts and the round-specific sheet scripts stay behind.

docs/agent-runner.md states the method: the disposable git archive
copy and the fail-closed proxy, how a task is shaped, union rather than
intersection of findings across models, separate adjudication of every
finding against the source, and the evidence a finding must carry.
2026-09-19 19:47:15 -05:00

25 lines
1.1 KiB
Markdown

# T01 — Session lifecycle
**Threat model.** An attacker with no session, or with a session that should
have ended, tries to act as a signed-in person.
**Slice.** `internal/auth/auth.go` (Middleware, bounceToLogin,
sessionPersonExists, endSession, LogoutHandler, LogoutCallbackHandler,
GetUserSession and the accessors), the session store wiring in
`internal/server/server.go`, and `internal/middleware/csrf.go` for cookie
attributes.
**Questions.**
1. Is the session identifier rotated when a person signs in, so a
pre-authentication session id cannot be reused after login?
2. Does signing out destroy server-side session state, or only clear a cookie?
Can the pre-logout session id still authenticate afterwards?
3. What are the session and CSRF cookie attributes actually set in production
configuration, and can either be sent over plain HTTP?
4. Do the session cookie and the CSRF token expire together? If one outlives
the other, what breaks?
5. Can any authenticated route be reached without the per-request person
lookup running?
**Not in scope.** Role checks (T02). OIDC token handling (T06).