teleo-infrastructure/research
m3taversal 6aff03ff56
Some checks are pending
CI / lint-and-test (pull_request) Waiting to run
fix(attribution): unify research-session format on "(self-directed)" suffix
Resolves the format inconsistency between the forward fix and the 304-row
backfill. Both halves now produce prs.submitted_by = "rio (self-directed)":

- research-session.sh: drop proposed_by from the frontmatter template.
  extract.py path 1 (proposed_by-driven) no longer fires; path 2 fires
  instead and constructs f"{agent} (self-directed)" — matches backfill.

- attribution.py: normalize_handle now strips "(self-directed)" suffix
  immediately after lowercase+@-strip, before alias lookup. Closes the
  phantom-person-event class on any future replay through
  record_contributor_attribution. Round-trips through alias rules keyed
  on bare agent names.

Test (5 cases) still passes; suffix-strip behavior verified against
hostile inputs (whitespace, casing, mid-string occurrences must NOT
match — only trailing pattern).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 12:53:52 +01:00
..
prompts feat: reorganize repo with clear directory boundaries and agent ownership 2026-04-14 18:20:13 +01:00
entity-session.sh fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
research-session.sh fix(attribution): unify research-session format on "(self-directed)" suffix 2026-04-27 12:53:52 +01:00
vida-directed-session.sh fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00