Skip to content

[R11] authored_by takes a list of authors; written_by lists them (pair of engine #3302) - #136

Merged
maxstrome1 merged 2 commits into
mainfrom
fix/upload-authors-list
Nov 25, 2026
Merged

maxstrome1 merged 2 commits into
mainfrom
fix/upload-authors-list

Conversation

@maxstrome1

Copy link
Copy Markdown
Contributor

What was wrong

Max changed R11 so that a file can have several authors (co-written notes). Engine #3302 (branch fix/upload-authors-list, head bd99c3208, b-uploads) changes the shape before anything ships:

  • Requests: authored_by takes one author or a list of 1–20; [] or "" clears it.
  • Responses: authors ([{name, user_id, email}], always present) is new. authored_by becomes the display line ("Jane Doe and Bob Smith"). authored_by_user_id stays, but deprecated (the first author's member).
  • Source records: written_by becomes {authors: [{name, org_member}], by_agent, text}.

This is the paired PR. The branch name is the same as the engine's, so the engine's sdk-freshness job checks against it. Merge it only after #3302 merges, once dev is open again.

What changed

  • authored_by takes a str or any sequence of strings (Authors). It is sent as a list, through _authors in _multipart_upload.py, on:
    • files.upload, resume_upload, uploads.complete, upload_folder and update;
    • the per-file authored map of upload_many.
  • public_source keeps written_by as {authors: [{name, org_member}], by_agent, text}, and never a member id.
  • Snapshots refreshed from engine bd99c3208 (beakr-typescript at main 2c80679, same content); _generated regenerated.
  • Release notes: the updated API bullet (apply, date kept) and the client note.

Tests

  • tests/test_upload_authorship.py:
    • upload sends a list;
    • a batch sends a tuple as a list;
    • update(authored_by=[]) sends [];
    • written_by keeps the authors without user_id, and an empty one is dropped.
  • To check they fail first, I stashed src/: the written_by test failed. The list tests also pass on main, because main already sent the value unchanged. The change there is the type and the tuple-to-list conversion, so those tests guard the behaviour rather than prove a fix.
  • Run with BEAKR_ENGINE_PATH=snapshots/beakr-engine BEAKR_TYPESCRIPT_PATH=snapshots/beakr-typescript:
    • full suite: 1032 passed, 4 skipped;
    • generate_python_sdk.py --check, mypy, ruff, prepare_release.py check and refresh_snapshots.py verify all pass.

Spend: no model or AWS spend beyond this agent session.

🤖 Generated with Claude Code

maxstrome1 and others added 2 commits November 25, 2026 07:38
…authors, by_agent, text}

Max changed R11 so a file can have several authors (engine
fix/upload-authors-list). Every upload path and files.update take
authored_by as a string or a sequence of up to 20 (sent as a list; [] or ""
clears on update); upload_many's per-file map takes a list too.
public_source keeps written_by as {authors: [{name, org_member}], by_agent,
text}. Snapshots and the generated layer follow the engine push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Snapshots re-taken from fix/upload-authors-list (beakr-typescript at main
2c80679), generated layer regenerated (authored_by takes str | list[str];
ArtifactOut gains authors[], keeps authored_by_user_id as deprecated;
SourceWrittenBy is {authors, by_agent, text}), release notes re-applied (date
kept) with the client note updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maxstrome1
maxstrome1 merged commit 2fa98fa into main Nov 25, 2026
4 checks passed
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