# Audit, provenance and retention for acts in someone else's session

Date 2026-11-12. Method: deep-research-foundations lane (field `audit-provenance-and-retention`) for the Tide Share packet. Verification: 27 sources, all 27 opened on 2026-11-12, 3 read in part (named under Sources). Builds on `foundations/tracing-provider-vocabulary/` and does not repeat its PROV mapping.

## Canonical concepts

- **Append-only, tamper-evident log**: entries are added and never changed, and a change is detected after the fact, not prevented.
- **Inclusion proof, consistency proof**: the first shows an entry is in the log, the second shows a later log extends an earlier one.
- **Checkpoint** (RFC 9162: Signed Tree Head): the log's signed commitment to its state.
- **Auditor, monitor, witness**: parties who check proofs. A **split view** is a log showing different histories to different readers.
- **Safe deletion**: purging entries that match a rule fixed in advance while proving nothing else was removed.
- **Forward integrity**: entries written before a compromise cannot be read or altered undetected after it.
- **Delegation** (`prov:actedOnBehalfOf`) and **invalidation** (`prov:wasInvalidatedBy`, used here for revocation).
- **Storage limitation** and **portability**: keep identifying data only as long as the purpose needs, and give a person their data in a structured, commonly used format.
- **Possession** (OCAP®): physical control of data.

## Findings

**AU1.** Crosby and Wallach treat the logger as untrusted and keep it honest through auditors who demand proofs. Their history tree returns a 3 KB proof where a hash chain needed 800 MB for 80 million events. The log stays tamper-evident only if clients pass the commitments they received to at least one honest auditor. [au-crosby-2009]

**AU2.** RFC 9162 (Experimental) builds the append-only property on Merkle trees and signed tree heads. It says a log showing inconsistent views must be treated as a trusted third party and leaves detection out of scope. The C2SP witness protocol fills that role: a witness verifies a consistency proof against its last recorded state before cosigning a checkpoint. [au-rfc9162, au-c2sp-witness]

**AU3.** Crosby and Wallach define safe deletion: the logger expires events that fail a stable predicate and proves each purge was legitimate. Audits relying on purged commitments must run before deletion. When "data-destruction policies require destroying a subset of events", safe deletion proves no unauthorized event was destroyed. [au-crosby-2009]

**AU4.** Schneier and Kelsey make entries written before a compromise impossible to read or undetectably modify. Each entry carries a permission mask, so a partially trusted verifier reads only the record types its role allows. [au-schneier-kelsey-1999]

**AU5.** Public transparency logs do not remove entries. Rekor's auditors check that "entries are never mutated or removed", and Trillian is in maintenance mode with Tessera recommended. A public log is a poor home for records naming people (interpretation). [au-rekor, au-trillian]

**AU6.** The EDPB's blockchain guidelines (v2.0, 7 July 2026) say a salted or keyed hash of personal data is still personal data, and that once the key or salt is deleted the hash should no longer link to the data. "Technical impossibility cannot be invoked to justify non-compliance." Applying this to a private hash-linked ledger is interpretation. [au-edpb-blockchain-2025]

**AU7.** PROV-DM defines delegation as assigning authority and responsibility to an agent "while the agent it acts on behalf of retains some responsibility for the outcome". Invalidation is "the start of the destruction, cessation, or expiry of an existing entity by an activity". The tracing packet maps prompts to `prov:Plan` (L1-F4) and runs and records to `prov:Activity` and `prov:Bundle` (L1-F1). These two relations add "on whose behalf" and "revoked when". [au-prov-dm, au-prov-o, au-tracing-vocabulary]

**AU8.** The OpenTelemetry GenAI agent spans are at Development status in their own repository. They name `create_agent`, `invoke_agent` and `execute_tool`, and `gen_ai.conversation.id`. Message content is `Opt-In`, with `_ref` attributes pointing to external storage and a warning that input messages are "likely to contain sensitive information including user/PII data". No attribute names whom an agent acts for: `enduser.id` moved to the client-side repository and `enduser.scope` was "Removed, no replacement at this time". [au-otel-genai-agent-spans, au-otel-enduser]

**AU9.** NIST SP 800-53 AU-3 asks an audit record to establish event type, time, place, source, outcome and identities. AU-3(3) limits personal information in audit records to elements named in a privacy risk assessment. AU-9 protects audit information from unauthorized access, modification and deletion. [au-nist-800-53r5]

**AU10.** Quebec's private-sector Act, as amended by S.Q. 2021, c. 25 ("Law 25"), requires destruction or anonymization once purposes are achieved (s. 23), and published governance policies framing keeping and destruction (s. 3.2). A person may ask how long their information is kept (s. 8). Section 27 requires a structured, commonly used format for computerized information "collected from the applicant, and not created or inferred". [au-qc-p39-1]

**AU11.** Two texts set minimums. Quebec's confidentiality-incident register is kept "for at least 5 years" after awareness of the incident, and PIPEDA's breach record 24 months. PIPEDA clause 4.5.2 asks for minimum and maximum retention periods and keeps information used for a decision about a person long enough for access. Clause 4.9.3 asks for an account of third parties to whom information was disclosed. [au-qc-incidents-reg, au-pipeda, au-pipeda-breach-regs]

**AU12.** Section 18.3 lets an enterprise pass information to a mandatary without consent under a written mandate that bars keeping it after the mandate ends. Section 17 requires a privacy impact assessment and written agreement before information leaves Quebec, including when a body outside Quebec keeps it on the enterprise's behalf. [au-qc-p39-1]

**AU13.** GDPR Article 5(1)(e) limits storage to the purpose, with longer storage for research under Article 89(1). Article 20 gives portability for data a person "provided", and 20(4) says it "shall not adversely affect the rights and freedoms of others". WP29 reads "provided" to include observed data such as "activity logs" and to exclude inferred data. Article 3(2) reaches non-EU operators serving people in the Union. [au-gdpr, au-wp242]

**AU14.** TCPS 2 (2022) Article 5.3 asks researchers to describe safeguards for the full information life cycle, retention and disposal included, and tells REBs not to impose destruction automatically. Article 9.8 says OCAP "addresses issues of privacy, intellectual property, data custody and secondary use of data". The Tri-Agency policy requires data management plans co-developed with First Nations, Métis and Inuit communities. [au-tcps2-ch5, au-tcps2-ch9, au-tri-agency-rdm]

**AU15.** FNIGC calls possession "the physical control of data" and "the mechanism by which ownership can be asserted and protected", and access includes a community's right to decide access to its collective information. CARE A3 gives Indigenous Peoples leadership in "the stewardship of, and access to" their data, and E3 asks metadata to carry provenance, purpose and secondary-use limits. The tracing packet's L5-F8 holds: OCAP® is First Nations-specific, and the system records authority rather than computing compliance. [au-fnigc-ocap, au-care-one-pager-2019, au-care-dsj-2020, au-tracing-vocabulary]

## What it means for Tide Share

### Q6: how long, where, who exports

1. **Separate clocks.** The act record (who, for whom, under which grant) and the content delivered (screen text, history, drafts, files) need separate retention. The log holds salted digests, and content sits off-log in the owner's possession, deletable with its key (AU6, AU8, AU9).
2. **Retention declared with the offer.** Each offer names a retention class and purge date, and safe deletion proves purges followed it (AU3). The factory's request versions need a class too.
3. **Minimums and maximums.** If Tide Share is a Quebec enterprise, incident records stay at least 5 years and records of decisions about a participant, such as a refused steer, stay long enough for access (AU11). The rest is destroyed or anonymized when its purpose ends (AU10, AU13). Which act applies is open (QAU1).
4. **Where.** Today's plain-text ledger has no tamper evidence, and a capture directory any local account can read falls short of AU-9 (interpretation). Proposed: the log on the owner's host, checkpoints cosigned by a witness the owner does not run (AU2), and a published keeping-and-destruction policy (AU10).
5. **Who exports what (interpretation).** A participant exports the record of their own acts and what they provided, such as steer text (AU10, AU13). The owner exports every act on their sessions and the account of who read what (AU11). Content of the owner or a third party leaves only under 20(4) and the offer's terms. Where a session holds First Nations data, export follows the community's protocol, recorded as a grant condition (AU15). The relay operator exports nothing (AU12).

### Q2: transport trust

A relay that reads everything is a mandatary under s. 18.3, and s. 17 applies if it runs outside Quebec (AU12). Audit cannot stop reading, but it can expose alteration: the owner's host signs the digest of what it sent, the participant's client signs the digest of what it received, and a mismatch is evidence. Witnessed checkpoints stop the relay or factory from showing owner and participant different histories (AU1, AU2).

### Q3: what is offered

Records hold digest, size and category, never content (AU8, AU9). Content capture is opt-in per offer and stored by reference. Offering past history is a new use of records made before the offer, so the offer documents the new purpose (PIPEDA 4.5.1, CARE E3).

### By level

- **L1 read**: one record per read feeds the account of disclosures (AU11), and is personal data about the reader (QAU7).
- **L2 steer**: the steer text is provided by the participant and portable to them (AU13). Record the session position before it and the outcome.
- **L3 instruct**: the mission is a `prov:Activity` started by the participant. The agent runs on the owner's host and acts for the participant, and PROV can hold both delegations, each responsible agent keeping some responsibility (AU7). Who answers for the outcome is a decision the log cannot make.
- **L4 contribute**: digests or commit ids before and after.
- **Revocation**: the grant is invalidated (AU7). Records made under it stay, on their class's clock.

### Proposed minimum audit record

| field | holds | from |
|---|---|---|
| `record_id`, `seq`, `leaf_hash`, `checkpoint_ref` | position and tamper evidence | AU1, AU2 |
| `recorded_at` | owner host time | AU9 |
| `actor` | pseudonymous person id | AU9 |
| `agent` | software agent id, if one acted | AU8 |
| `on_behalf_of` | person the act served | AU7 |
| `grant_id`, `grant_version`, `level` | grant and L1 to L4 | AU7 |
| `session_ref`, `offer_id` | tide session and offer | AU8 |
| `action` | read, steer, instruct, contribute, revoke, export, purge | AU9 |
| `target` | turn range, file path or item ids | AU9 |
| `delivered_digest`, `content_ref` | salted digest, opt-in pointer | AU6, AU8 |
| `before_digest`, `after_digest` | what changed (L2 to L4) | AU9 |
| `outcome`, `decision_ref` | result and who decided | AU9, AU11 |
| `claim_category` | existing factory field | factory today |
| `retention_class`, `purge_after` | the deletion predicate | AU3 |
| `actor_signature`, `host_signature` | sent and received digests | Q2 |

## Questions for Guillaume's session

**QAU1.** Does Tide Share run as Guillaume's enterprise, as Concordia research, or as personal activity, and can one record fall under two? This decides which retention, incident and portability texts bind.

**QAU2.** Is content purged earlier than the act record naming its digest? This decides whether the log holds content or only commitments.

**QAU3.** Who holds the log and who witnesses it? This decides whether the relay or factory operator could rewrite or split the record unnoticed.

**QAU4.** May a participant export session content they read, or only the record of their own acts? Section 27, Article 20(4) and OCAP possession point different ways.

**QAU5.** After revocation, does the participant keep access to records made under the grant? Revocation stops future acts, and past records need their own rule.

**QAU6.** When a session holds First Nations, Inuit or Métis knowledge, who sets its retention and export rule, and which offer field records that decision? OCAP, CARE A3 and TCPS 2 Article 9.8 place that authority with the community, so a default cannot stand in for it.

**QAU7.** Are L1 reads recorded one by one or summarized? Per-read records serve the account of disclosures but enlarge what is kept about participants.

**QAU8.** What class governs the factory's request versions? Keeping every version without a rule conflicts with storage limitation, and safe deletion needs the rule before the records.

## Cautions

- This is not legal advice. Statements marked interpretation apply texts to a design they did not foresee.
- Concordia University is listed in E-14.1 s. 1(7), and A-2.1 s. 6 counts those institutions as school bodies, so records Concordia holds fall under A-2.1, not P-39.1. This is a reading of the texts. [au-qc-e14-1, au-qc-a2-1]
- Whether an act record is "collected from" or "created" about a participant (s. 27) is open. WP242 is EU guidance with no force in Quebec.
- OpenTelemetry GenAI is at Development status, read at commit `da2b5736` (2026-11-05). Pin before use.
- Tamper evidence gives no confidentiality. Relay reading is partly the transport lane's question.
- OCAP® is a registered trademark of FNIGC. The EDPB text addresses blockchains. NIST SP 800-53 is a US federal catalog, used here for record vocabulary only.
- CARE sub-principle wording comes from the 2019 one-pager. The 2020 article states the four principles only.

## Sources

| id | title | URL or DOI | verified | via |
|---|---|---|---|---|
| au-crosby-2009 | Crosby, Wallach, Efficient Data Structures for Tamper-Evident Logging (2009) | https://www.usenix.org/legacy/event/sec09/tech/full_papers/crosby.pdf | true | full text |
| au-schneier-kelsey-1999 | Schneier, Kelsey, Secure Audit Logs to Support Computer Forensics (1999) | doi:10.1145/317087.317089, https://www.schneier.com/wp-content/uploads/2016/02/paper-auditlogs.pdf | true | full text (author copy) |
| au-rfc9162 | RFC 9162, Certificate Transparency Version 2.0 | doi:10.17487/RFC9162 | true | full text, sections 1 to 8.2 |
| au-c2sp-witness | C2SP, Transparency Log Witness Protocol | https://github.com/C2SP/C2SP/blob/main/tlog-witness.md | true | full text |
| au-rekor | Sigstore, Rekor overview | https://docs.sigstore.dev/logging/overview/ | true | docs page |
| au-trillian | google/trillian README | https://github.com/google/trillian | true | docs page |
| au-prov-dm | W3C, PROV-DM | https://www.w3.org/TR/prov-dm/ | true | full text |
| au-prov-o | W3C, PROV-O | https://www.w3.org/TR/prov-o/ | true | docs page, partial |
| au-otel-genai-agent-spans | OpenTelemetry, GenAI agent spans | https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-agent-spans.md | true | full text |
| au-otel-enduser | OpenTelemetry, end user attributes | https://github.com/open-telemetry/semantic-conventions/blob/main/docs/registry/attributes/enduser.md | true | registry page |
| au-nist-800-53r5 | NIST SP 800-53 Rev. 5 | doi:10.6028/NIST.SP.800-53r5 | true | full text |
| au-qc-p39-1 | Quebec, CQLR c P-39.1 | https://www.legisquebec.gouv.qc.ca/en/document/cs/P-39.1 | true | statute text |
| au-qc-incidents-reg | Quebec, Regulation respecting confidentiality incidents, A-2.1 r. 3.1 | https://www.legisquebec.gouv.qc.ca/en/document/cr/A-2.1,%20r.%203.1 | true | statute text |
| au-qc-a2-1 | Quebec, CQLR c A-2.1 | https://www.legisquebec.gouv.qc.ca/en/document/cs/A-2.1 | true | statute text |
| au-qc-e14-1 | Quebec, CQLR c E-14.1 | https://www.legisquebec.gouv.qc.ca/en/document/cs/E-14.1 | true | statute text |
| au-pipeda | Canada, PIPEDA | https://laws-lois.justice.gc.ca/eng/acts/P-8.6/FullText.html | true | statute text |
| au-pipeda-breach-regs | Canada, SOR/2018-64 | https://laws-lois.justice.gc.ca/eng/regulations/SOR-2018-64/FullText.html | true | statute text |
| au-gdpr | EU, Regulation 2016/679 | https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32016R0679 | true | statute text |
| au-wp242 | WP29, WP 242 rev.01, data portability | https://ec.europa.eu/newsroom/article29/items/611233 | true | full text |
| au-edpb-blockchain-2025 | EDPB, Guidelines 02/2025, v2.0 | https://www.edpb.europa.eu/system/files/2026-07/edpb_guidelines_202502_blockchain_v2_en.pdf | true | full text |
| au-tcps2-ch5 | TCPS 2 (2022), Chapter 5 | https://ethics.gc.ca/eng/tcps2-eptc2_2022_chapter5-chapitre5.html | true | full text |
| au-tcps2-ch9 | TCPS 2 (2022), Chapter 9 | https://ethics.gc.ca/eng/tcps2-eptc2_2022_chapter9-chapitre9.html | true | full text |
| au-tri-agency-rdm | Tri-Agency Research Data Management Policy | https://science.gc.ca/site/science/en/interagency-research-funding/policies-and-guidelines/research-data-management/tri-agency-research-data-management-policy | true | docs page |
| au-fnigc-ocap | FNIGC, OCAP® | https://fnigc.ca/ocap-training/ | true | docs page |
| au-care-dsj-2020 | Carroll et al., The CARE Principles (2020) | doi:10.5334/dsj-2020-043 | true | article page, partial |
| au-care-one-pager-2019 | GIDA, CARE one-pagers (2019) | https://www.nnigovernance.arizona.edu/sites/default/files/resources/CARE%2520Principles_One%2520Pagers%2520FINAL_Oct_17_2019.pdf | true | full text |
| au-tracing-vocabulary | Miadi packet tracing-provider-vocabulary | foundations/tracing-provider-vocabulary/README.md | true | full text (repository) |
