Skip to content

Preserve OpenProfiler identity and persona brainstorm - #1216

Merged
brettheap merged 2 commits into
mainfrom
docs/preserve-openprofiler-identity-persona
Oct 2, 2026
Merged

brettheap merged 2 commits into
mainfrom
docs/preserve-openprofiler-identity-persona

Conversation

@openxfactory

@openxfactory openxfactory Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Preserve five previously untracked OpenProfiler identity and persona brainstorm documents. The packet separates provider account/profile behavior, persona references, human identity, wallet authority, and PKI trust; it remains a brainstorm rather than an implementation or policy change.

Validation: all five committed documents match the original drafts apart from trailing blank lines; git diff --check passes.

Summary by Sourcery

Preserve the OpenProfiler identity and persona brainstorm packet as a reference for separating provider profiles, model personas, human identity, authority, trust, and credential custody.

New Features:

  • Add a brainstorm reference packet covering OpenProfiler account/profile overlays, persona bindings, and cross-system identity, authority, and trust relationships.

Enhancements:

  • Define high-level boundaries between OpenProfiler, Keycloak, openXWallet, OpenXPKI, persona catalogs, and credential custody while preserving their separate responsibilities.
  • Describe an auditable, reproducible runtime-selection model linking provider accounts, profile overlays, persona versions, authority grants, and trust evidence.

Documentation:

  • Preserve five OpenProfiler identity and persona architecture brainstorm documents in the ideation repository.

@sourcery-ai

sourcery-ai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Preserves five related brainstorm documents that establish a separated, reference-based OpenProfiler identity model: provider accounts and profile overlays remain distinct from versioned personas, human identity, wallet authority, PKI trust, and credential custody, with a synthesized auditable runtime flow. The changes are ideation-only and do not introduce implementation or policy changes.

Sequence diagram for auditable OpenProfiler runtime selection

sequenceDiagram
    actor Human
    participant Keycloak
    participant Wallet as openXWallet
    participant PKI as OpenXPKI
    participant Profiler as openProfiler
    participant Runtime as ProviderRuntime

    Human->>Keycloak: OIDCAuthorizationCodePKCE
    Keycloak-->>Profiler: keycloak_subject_ref
    Human->>Wallet: profile_operation_grant
    Wallet-->>Profiler: wallet_grant_ref
    Human->>PKI: client_certificate_authentication
    PKI-->>Profiler: trust_evidence
    Profiler->>Profiler: resolve_account_profile_persona
    Profiler->>Runtime: short_lived_provider_capability
    Runtime-->>Profiler: runtime_selection_audit_references
Loading

File-Level Changes

Change Details Files
Adds a reference overview for a separated account, profile, persona, identity, authority, trust, and credential-custody model.
  • Defines goals, non-goals, ownership boundaries, and the document cluster.
  • Describes the composed runtime posture and remaining architectural decisions.
ideation/brainstorm/openprofiler-identity-persona-overview.md
Introduces a typed provider account and profile-overlay model for deterministic, non-secret profile differences.
  • Separates provider account identity from profile configuration and optional persona bindings.
  • Defines effective-profile digests, sanitized diffs, lifecycle metadata, and credential exclusion rules.
  • Documents provider-specific boundaries, account-ID verification, alternatives, and open questions.
ideation/brainstorm/openprofiler-identity-persona-account-profile.md
Defines versioned persona references and distinguishes model persona behavior from human and agent identity.
  • Specifies persona manifest fields and profile-level reference/version/digest bindings.
  • Assigns persona authoring to a catalog or domain layer while openProfiler owns selection and resolution status.
  • Connects authority-bearing persona compositions to wallet hashes and possible grant revocation.
ideation/brainstorm/openprofiler-identity-persona-persona.md
Maps security responsibilities across Keycloak, openXWallet, OpenXPKI, openProfiler, and credential custody.
  • Assigns human authentication, scoped authority, cryptographic trust, provider operations, and secret storage to separate systems.
  • Defines a reference-only operation flow using OIDC, wallet grants, PKI evidence, and backend-only provider capabilities.
  • Records unresolved authorization, signing, environment, and revocation choices.
ideation/brainstorm/openprofiler-identity-persona-authority.md
Synthesizes the account/profile, persona, and authority concepts into an auditable runtime-selection and revocation flow.
  • Shows how manifests and references connect human identity, grants, trust evidence, profile overlays, persona versions, and provider credentials.
  • Preserves direct model-call latency by keeping the broker out of the per-turn path.
  • Identifies lifecycle seams, revocation behavior, operating tensions, and manifest/digest questions.
ideation/brainstorm/openprofiler-identity-persona-synthesis-runtime.md

Possibly linked issues

  • #6612d323: The PR rescues and preserves exactly the five OpenProfiler brainstorm documents identified as stranded in the issue.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Oct 2, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="ideation/brainstorm/openprofiler-identity-persona-authority.md" line_range="90" />
<code_context>
+
+The main tension is that the current openProfiler cloud design sketches Entra
+as the user-facing authority, while the xFactory identity-brokering direction
+adopts Keycloak as the family broker. A future implementation should choose one
+client-facing issuer per environment; Keycloak can retain Entra as an upstream
+where that is required.
</code_context>
<issue_to_address>
**nitpick:** The `openXWallet contracts` link points to `../../contracts/openxwallet/README.md`, but that path does not exist because the wallet contract family was relocated and is represented in this repository by the pin/gitlink instead. Readers following the relationship link receive a broken reference.

**Suggested fix:** Link to the relocated OpenXWallet repository or to the repository's `contracts/openxwallet-pin.yaml` and `/openXwallet` references, whichever is intended.
</issue_to_address>

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@brettheap

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 27dec64542

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor

@codex review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sourcery assessment

Approved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: ef8f6fb070

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026

Copy link
Copy Markdown

@brettheap
brettheap merged commit 9093fde into main Oct 2, 2026
14 checks passed
brettheap added a commit that referenced this pull request Oct 2, 2026
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

**Plan 034's bookkeeping for phase 2's consumer pins.** It records T065, phase 2's interim F11.1, and ticks T064 and T065 in `specs/034-opendox-standalone-operation/tasks.md`, on the holder's word that #1215 landed.

- **Bookkeeping only.** It edits four files:
  - the new record `specs/034-opendox-standalone-operation/evidence/f11.1-phase2.txt`;
  - `specs/034-opendox-standalone-operation/tasks.md`;
  - `specs/034-opendox-standalone-operation/plan.md`'s evidence tree;
  - the feature's `README.md` entry.

  `git diff origin/main --stat -- openspec/` is empty, so there is no Rule 6 window.
- **No `Arc:` trailer** on the commit, and no closing keyword anywhere in the commit or in this body (both scanned). So F11.1 itself never walks this PR.
- `main` moved to `9093fdee` (#1216, `ideation/brainstorm/` only) after the branch was cut at `fcb45380`. `git merge-tree` against it is clean.

## T065: F11.1 at T064's landing

- `PACKET_MERGE=94b6f7f13b45c351b9142345738965c974b7dd37` (#1144's landing; `evidence/arc-base.md`).
- `ARC_TIP=fcb45380a4d9d4933038157411944c4fefa59d13`: #1215's squash, landed 2026-10-02T22:27:22Z onto `2656e8c2`, carrying the trailer. I read the sha with `gh pr view 1215 --json mergeCommit`, checked it with `git rev-parse --short=8`, and confirmed it on the first-parent line.
- **The guard** is 11.1's FALSIFIED BY block, `openspec/changes/add-neutral-product-standalone-operability/tasks.md` lines 1587-1666 at `fcb45380`, extracted byte for byte and run as extracted. It is the guard as T018 left it, with batch A's `COMPOSITION_TESTS` and the closed `ADMITTED_ARC_EDITS` (RULED `5890601202`). No path was added to either list for phase 2.
- It walks two landings: `f56c87c6` (T047) and `fcb45380` (T064). Every path T064 touched is on PIN_PAIRS, HOST, HOST_TESTS or ADMITTED_ARC_EDITS, and the manifest is untouched.

**Verbatim output, exit 0, empty stderr:**

```
requirement 1 holds: 0 note(s) annotated, every other path a declared surface (11.1)
```

**Negative control (never pushed).** In a scratch detached worktree at `fcb45380`, I planted one commit (`3bc44db2`) with the trailer and one file on no surface. The same script refused it with exit 1: `FAIL: the arc changed what requirement 1 keeps: 3bc44db21ce1: touched docs/a-path-on-no-f11.1-surface.md`. The worktree was removed, and the commit is on no branch.

The record quotes both runs in full, with the guard's `arc-commits.txt` and `arc-changes.tsv`.

## The ticks, each with its evidence

Every sha is the merge commit of the named PR, read from the forge with `gh pr view -R <repo> <n> --json mergeCommit` and checked with `git rev-parse --short=8`.

| task | repo | landed | note |
|---|---|---|---|
| T064 | oX, oxF | opensoft/openXdox#21 → `f257e021`, then #1215 → `fcb45380` | An **arc** landing: the trailer is on the squash. Both pin pairs move in one commit, `59866105`, on the holder's 2026-09-28 decision. openDox is `d5098297`, and openXdox is `f257e021` (digest `52f0598e…`, recomputed three ways). The host line runs after the profile and before `register_seams()` (Copilot at `d6c47f4f`, answered in `5663b4ed`). CI at the head: `selected=9345 passed=9339 skipped=6`, and the consumer gate reads 105/105/0 and 1481/1481/0. |
| T065 | oxF | this PR's record, `evidence/f11.1-phase2.txt` | `requirement 1 holds` at `ARC_TIP=fcb45380`, with the negative control above |

Each task also carries a short "Landed" bullet in `tasks.md`, as #1214's do, drawn from the landed PR's own body and from the record.

**Left unticked:** T063, whose checkpoint quotes this record. Another writer has it.

## Validation

- `python3 scripts/validate-openspec-cli-pin.py --all --strict`, through the pinned CLI 1.12.0, from the openxFactory root at this head: `OK`, with 0 undispositioned failures. The one accepted exception is `add-chain-attestation`'s (Brett Heap, 2026-09-05), as on `main`.
- No test or workflow reads `specs/034-opendox-standalone-operation/` (`git grep` over `tests`, `scripts` and `.github` finds nothing), and this PR touches no code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant