> For the complete documentation index, see [llms.txt](https://faction-os.gitbook.io/faction-os-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faction-os.gitbook.io/faction-os-docs/.spec_system/specs/phase24-session02-camp-mission-linkage/security-compliance.md).

# Security & Compliance Report

**Session ID**: `phase24-session02-camp-mission-linkage` **Packages**: apps/web (primary), apps/server (secondary) **Reviewed**: 2026-07-08 **Result**: PASS

***

## Scope

**Files reviewed** (session deliverables only):

* `apps/server/src/managers/suggestionManager.ts` - accept fallthrough to codebase issues
* `apps/web/src/lib/legionCamps.ts` - issue-to-camp lookup
* `apps/web/src/lib/gameProjection.ts` - `campMissionsFromLinks`, `PENDING_LINK_TTL_MS`
* `apps/web/src/lib/questBoardModel.ts` - issue card capabilities
* `apps/web/src/store/useGameStore.ts` - link recording + selector
* Test files in `apps/web/tests/` and `apps/server/tests/`
* `README.md` (version badge sync only)

**Review method**: Static analysis of session deliverables. No new dependencies.

***

## Security Assessment

### Overall: PASS

| Category                      | Status | Severity | Details                                                                                                                                                                                                                                                                                             |
| ----------------------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Injection (SQLi, CMDi, LDAPi) | PASS   | --       | Ids pass through the existing `readSafeId` validation; no queries or shell calls added.                                                                                                                                                                                                             |
| Hardcoded Secrets             | PASS   | --       | None; test fixtures use placeholder prompts.                                                                                                                                                                                                                                                        |
| Sensitive Data Exposure       | PASS   | --       | Pending links persist the bounded verbatim prompt inside the pre-existing `pendingLinks` projection contract (`normalizePendingLinkPrompt` length bound); no new raw fields reach storage, events, or UI rows. Issue accept responses expose `suggestedPrompt` exactly as idle accepts already did. |
| Insecure Dependencies         | PASS   | --       | No dependency changes.                                                                                                                                                                                                                                                                              |
| Security Misconfiguration     | PASS   | --       | No configuration surface touched; no new route; unchanged in-flight mutation guards.                                                                                                                                                                                                                |

### Findings

No security findings.

***

## GDPR Compliance Assessment

### Overall: N/A

No personal data collection, consent flow, or third-party transfer was added. The accept fallthrough reuses existing local suggestion state; link state is browser-local inside `factionos-game-v1` and covered by the existing reset/browser-local erasure paths.

| Category                   | Status | Details                                                                             |
| -------------------------- | ------ | ----------------------------------------------------------------------------------- |
| Data Collection & Purpose  | N/A    | No new data collected.                                                              |
| Consent Mechanism          | N/A    | No new data collected.                                                              |
| Data Minimization          | PASS   | Camp lookup and links store bounded ids and the already-bounded prompt only.        |
| Right to Erasure           | PASS   | `pendingLinks`/`campLinks` live inside the existing erasure-covered projection key. |
| PII in Logs                | N/A    | No logging added.                                                                   |
| Third-Party Data Transfers | N/A    | No external calls added.                                                            |

### Personal Data Inventory

No personal data collected or processed in this session.

### Findings

No GDPR findings.

***

## Recommendations

Session 07 should extend the storage-inventory regression to assert `pendingLinks` prompts never exceed the normalizer bound and that no other raw fields join the persisted link records.

***

## Sign-Off

* **Result**: PASS
* **Reviewed by**: AI validation (`/validate`)
* **Date**: 2026-07-08


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://faction-os.gitbook.io/faction-os-docs/.spec_system/specs/phase24-session02-camp-mission-linkage/security-compliance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
