Skip to content

Engram Cloud Contributors view #2365

Todo

Description

@shochdoerfer

Existing Issue Search

  • I searched existing issues and will add evidence to a canonical tracker when applicable.

📝 Observed Consequence

In the Engram Cloud UI, I see 2 contributors which are basically the same person (me).

Screenshot 2026-11-12 095604

🔄 Steps to Reproduce

To be fair, I don't know how to reproduce. Also, I am not sure if this an Engram Cloud display problem or some configuration issue.

✅ Expected Behavior

I just want to see only one contributor (the one I created in the Admin UI).

❌ Actual Behavior

I've installed Engram Cloud last week (version 3.6.0) and upgraded to 3.6.1, 3.6.2 and 3.7.0. I added one contributor (shochdoerfer with display name "Stephan Hochdörfer"). After the first few syncs, Engram Cloud only showed me the shochdoerfer user. When I checked this morning, I saw the additional contributor "Stephan Hochdörfer" popping up in the list.

Even though Engram Cloud shows me different chunk counts for both users, when clicking on the contributor details, I see the exact same "Recent session" list as well as the exact same "Recent observations" list. So I guess, both users are indeed the same, but just rendered twice for some reason.

Operating System

Linux (Ubuntu/Debian)

Release Version (Report Context)

3.6.0

Agent / Client

OpenCode

📋 Relevant Logs

💡 Additional Context

No response

Activity

  1. added
    type:bug
    status:needs-review
    on Nov 12, 2026
  2. shochdoerfer commented on Nov 12, 2026

    @shochdoerfer
    Author

    Upgrading to 3.7.1 did not fix the issue.

  3. dnlrsls commented on Nov 24, 2026

    @dnlrsls
    Member

    Maintainer-approved prospective write scope

    On canonical main 44d7e06e4368d11a9038c9178d79ea7ca4192ff9, a disposable PostgreSQL 18.6 fixture used one managed account and its same token through the real /sync/push and /sync/mutations/push routes. Both returned 200. Contributors grouped the manual author label and managed display name into two rows, each with one chunk. Both details showed the same two sessions and observations. A compressed import separately kept its explicit historical author in the stored manifest.

    The routes know the authenticated principal, but first chunk insertion retains only the existing credit string. Approve the initial write increment to persist the stable managed principal ID as a nullable submitter field in the same first-insert transaction for both routes. Derive the ID from authenticated managed credentials. Keep the existing author and manifest contract. Preserve the original submitter on conflict and replay. Historical rows and writes without a verified managed submitter retain a null field. A managed import records the importer separately from the credited author.

    Dashboard grouping, historical assignment, and backfilling provenance for chunks reconstructed from a journal are outside this increment. It will use Refs #2365 because the Contributors presentation still needs its own design. Owner @dnlrsls.

    Acceptance includes actual route tests for same-principal dual writes, distinct principals with equal names, legacy writes, compressed imports, first-insert replay, and transaction failure. The additive column changes the source-table fingerprint used by the opt-in startup receipts from #2482. On an enrolled disposable PostgreSQL 16 upgrade, verify preserved application rows and ordinary startup fallback, then verify the documented audit re-enrollment and fresh preparation restore receipt reuse. No automatic changes to audit ownership or existing historical attribution. Independent review must cover the authenticated trust boundary, first-insert atomicity, schema upgrade, and receipt fallback.

  4. added
    status:approved
    and removed
    status:needs-review
    on Nov 24, 2026
  5. self-assigned this
    on Nov 24, 2026
  6. dnlrsls commented on Nov 24, 2026

    @dnlrsls
    Member

    Maintainer-approved authenticated submissions view

    On canonical main 05550dc5c3276ca2f1e8c537bb559bf9beaf6554, a disposable PostgreSQL 18.6 fixture with existing managed submitter metadata exercised both authenticated uploads and a compressed import. The writer preserved raw credit and distinguished two managed accounts sharing a display name, but Contributors still grouped by the raw author label. The rendered candidate assertion for the first and second accounts (three and one scoped submissions) failed on main.

    Approve a managed-admin Authenticated submissions view linked from Contributors. Count chunks by the persisted managed principal ID and limit the count to the viewer's canonical project grants. Distinguish accounts with the same name and omit rows with no verified submitter. The view reports the authenticated sender. Imports keep the original author credit in the existing Contributors author view and manifest.

    Scope excludes automatic historical mapping, assigning unverifiable historical submitters, changing wire or write behavior, and widening project visibility. Preserve existing Contributors links and raw author queries. Verify zero grants, an excluded project, a non-admin viewer, duplicate display names, import credit, and the rendered per-account counts against disposable PostgreSQL. Independent review should cover project-grant isolation, route authorization, stable identity, and generated templates. Use Refs #2365 pending historical disposition.

  7. dnlrsls commented on Nov 24, 2026

    @dnlrsls
    Member

    #2484 and #2487 are now on main. New managed uploads record the authenticated submitting account at first insertion, and the Authenticated submissions view groups those chunks by account. The Contributors view preserves the original author credit.

    For the historical entries in this report, do you have a redacted record connecting the authenticated account to the original insertion of a specific project and chunk ID? Please describe whether it distinguishes a first insert from a replay. A successful upload response can occur in both cases. Please omit tokens, payload contents, and private paths.

    If those records are unavailable, would grouping new submissions by authenticated account address the issue for you? We can then decide whether to close this report with historical credits preserved.

  8. shochdoerfer commented on Nov 24, 2026

    @shochdoerfer
    Author

    @dnlrsls can you tell me which db query will get you the information needed? Not exactly sure what I need to check where.

    Thx for taking care! Very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status:approvedtype:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions