Skip to content

vedit: real author attribution (replace hardcoded "awidat agent") #12

Description

@explicit09

Problem

crates/core/src/vc/mod.rs:330 (awidat_author()) hardcodes Author { name: "awidat agent", email: "agent@awidat.local" }. Every commit path — commit_current_timeline, merge_refs, auto-commit — uses it, so every vedit commit is anonymous. This blocks user-authored notes, multi-seat editing, and meaningful vedit_blame attribution. It is the schema chokepoint for the entire right-hand side of the Collaboration category.

Scope (MVP)

  • Add an override pathway: Option<Author> parameter, env-var fallback (AWIDAT_USER_NAME / AWIDAT_USER_EMAIL), or both.
  • Keep awidat_author() (or a renamed default_awidat_author()) as the fallback so all existing tests/behavior stay green when no override is supplied.

Layers

  1. crates/core/src/vc/mod.rs — refactor awidat_author() and its callers
  2. commit_current_timeline, merge_refs, auto-commit chain — accept/pass-through the override
  3. crates/core/tests/vedit_author.rs (new) — Author roundtrip via vedit_log

References

  • Gap analysis: .reference-research/pro-editing-gap-analysis/11-collaboration.md (Status update 2026-05-21, [codex] harden atomic writes and checks #1 still-open item)
  • In progress overnight on branch overnight slice: wave1-vedit-author — close when merged

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions