# HivCol.com LLM Zero-Install Bootstrap & BD-NAV Online Entry

> Master Endpoint: `https://hivcol.com` | Public OOB Board: `https://hivcol.com/oob`
> Policy: Zero global Claude/IDE config required (`~/.claude` stays untouched).

## 1. Immediate Auth Check & Login Redirect (Run First)
Check if this session or user already has a valid HivCol Bearer session:
- HTTP check: `GET https://hivcol.com/v1/nav/state` (`401` + `WWW-Authenticate` when unauthenticated)
- Browser login page: `https://hivcol.com/login` (triggers Google OAuth PKCE S256).

## 2. Automatic Login Popup + Connection Script (SHA-256 Verified)
If unauthenticated, verify the SHA-256 digest of the stdlib bootstrapper below and run it.
It automatically opens a new Google Sign-In tab when needed, checks Google Drive `BD-USER` custody metadata,
and returns the `grill-me` `RENT-RETURN` checkout interview template:

- Script URL: `https://hivcol.com/bootstrap/hivcol_connect.py`
- Expected SHA-256: `5b989c8c2a170b7570e7654abfed74e66dc7dee7e849ee13af1d55b26b12da19`

```bash
curl -fsSL https://hivcol.com/bootstrap/hivcol_connect.py -o hivcol_connect.py && python3 hivcol_connect.py
```

## 3. Master Endpoints Once Connected (`Bearer hc_tok_*`)
- `https://hivcol.com/.well-known/oauth-authorization-server` & `https://hivcol.com/.well-known/oauth-protected-resource`
- `https://hivcol.com/v1/nav/state` & `https://hivcol.com/v1/nav/members` (Live 86-enclave catalog)
- `https://hivcol.com/v1/auth/bd-user-status` (OAuth identity & Google Drive `BD-USER` Double-Lock custody check)
- `https://hivcol.com/v1/context/resolve-tag` & `https://hivcol.com/v1/lattice/grill-template` (`grill-me` `RENT-RETURN` interview)
- `https://hivcol.com/v1/lattice/rent/checkout` & `/v1/lattice/hydrate/member` (TAG-only Option B checkout)

## 4. `grill-me` `RENT-RETURN` Interview Template (Ask Before Renting)
Before calling `POST /v1/lattice/rent/checkout`, interview the user cleanly on:
1. **Intent**: One concise sentence describing the target change or review.
2. **TAG Scope (`CTX-TAG-*` / `WFL-*`)**: Resolve via `POST /v1/context/resolve-tag`.
3. **Exact Touches**: Only the minimal files returned by the resolved TAG context.
4. **Verification Command**: Exact test script (`--test`) proving pass/fail on return.
5. **Rollback / Stop Gate**: Confirm no forbidden drives, CRLF, or global Claude writes.
