Skip to content

bug(company-os): most services have no activity log, so their audit records are silently never written #20101

Open
0 of 1 issue completed

Description

@mrveiss

Found in #13999's enumeration. M2's exit needs every step in the audit trail, but most Company OS services never receive an activity log, and each guards its write with if self.activity_log:. So those writes silently do nothing, with no error.

By reading constructor sites, not by running anything:

  • Never given a log: GoalService (api/context.py, agent_tools.py, plan_measure.py), SecretService (api/secrets.py), WorkItemService (api/context.py, agent_tools.py, finding_proposal_service), LLCLabelService, WorkItemRelationService, the Role services, ContactService, ContactDirectoryService, ReportingLineService, CompanyToolService, HandoffService, and others built by lazy singletons.
  • Given one by a parent, not traced further: BoardService, SprintAutoClose, PortabilityService, TemplateService, LivenessMonitor, company_os/workflows.
  • Wired: MembershipService on the company_members route (companies.py still builds it without one, for company creation), ControlsService, stalled_run_sweep.

Treat the list as a starting point and re-derive it.

Fix

Make writing the default: LLCServiceBase gets a real log unless a test passes another, so a service cannot silently lack one. This is the DI wiring GH#8216 was going to do; check it first.

Acceptance criteria

  • A guard fails if a mutating Company OS service can run with no activity log (control included).
  • Creating a goal, setting a secret, assigning a label, changing a relation and claiming a work item each write an activity row, tested against a database.
  • A failed audit write fails the operation where the record shares its transaction.
  • Host evidence: those actions appear in the activity feed on a live install.

Activity

  1. github-actions commented on Nov 4, 2026

    @github-actions
    Contributor

    Landed via the merge train (#20829, merge 582cfe9946) via #20426

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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions