Skip to content

oss: automatic audit result reporting to platform API with offline queuing #126

@jeff-atriumn

Description

@jeff-atriumn

Summary

When logged in to the noxaudit platform, the CLI automatically reports audit results. The local workflow is unchanged — reports still write to local files. The platform is an additional destination.

Implementation

  • After run_audit completes, POST to POST /api/audits if logged in
  • Local queue for offline resilience: ~/.noxaudit/pending-sync.jsonl
  • noxaudit sync command to manually flush queued results

Offline-first behavior

  • If the platform API is unreachable, the CLI works normally
  • Results queue locally in ~/.noxaudit/pending-sync.jsonl
  • Next successful noxaudit run (or explicit noxaudit sync) flushes the queue

Work

  • After run_audit completes, POST to platform API if logged in
  • Local queue for offline resilience
  • noxaudit sync command to manually flush queued results

Depends on

Does NOT depend on

  • atriumn/noxaudit-platform#24 (Stripe billing) — reporting works regardless of payment status

Note: This issue was split from the original #126. Authentication (login/logout/whoami/credential management) is now handled separately in #146 for better separation of concerns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions