Skip to content

feat: Lau 6 workspace evidence pack - #293

Open
hankli29 wants to merge 7 commits into
mainfrom
lau-6-workspace-evidence-pack
Open

feat: Lau 6 workspace evidence pack#293
hankli29 wants to merge 7 commits into
mainfrom
lau-6-workspace-evidence-pack

Conversation

@hankli29

@hankli29 hankli29 commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implemented the evidence-pack pipeline for founder weekly review: for a given company and specified reporting week, collect evidence from workspace sources and create a FounderWeeklyReviewEvidenceSnapshot.

Checklist

  • Date boundaries respect the workspace timezone.
  • Document changes include document title, version number, uploader, timestamp, and changelog when present.
  • Customer evidence links back to the original workspace source.
  • Manual founder context is clearly labeled and never presented as an external customer signal.
  • Duplicate evidence is removed without losing distinct source citations.
  • Empty and partial workspaces return a valid evidence pack rather than throwing.
  • Cross-company data cannot enter the evidence pack.
  • Unit tests cover complete, partial, empty, and unauthorized fixtures.

Testing

  • unit tests for mapper, timezone boundaries, dedupe, ordering.
  • integration tests for date-window filtering, cross-company isolation, empty-pack behavior

Remaining Work

  • founder_context collector
  • Documented representative fixture

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
launch-stack Error Error Jul 26, 2026 5:20am
pdr-ai-v2 Error Error Jul 26, 2026 5:20am

@Deodat-Lawson

Copy link
Copy Markdown
Owner

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3410a40b55

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +92 to 95
const body = normalizeSqlMigrationBody(
await readFile(join(migrationsDir, name), "utf8"),
);
const checksum = createHash("sha256").update(body).digest("hex");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Retain legacy checksums when stripping migration BOMs

On databases where 0005_experimental_embeddings.sql was applied by the previous runner, its recorded checksum includes the file's existing UTF-8 BOM. Normalizing the body before this comparison produces a different checksum, so every such deployment reports migration drift and exits with status 1, potentially after applying 0016; preserve compatibility with the previously recorded checksum or migrate that checksum explicitly.

Useful? React with 👍 / 👎.

Comment on lines +116 to +119

if (result.outcome === "updated" || result.outcome === "idempotent") {
if (result.run.status === "failed" || result.run.status === "queued") {
return result.run;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Return successful retry operations after queue advancement

When a client repeats a successful retry request after a worker has already claimed or completed the run, the repository still returns outcome: "idempotent" because the recorded operation matches the unchanged failure sequence, but this status restriction rejects the result as an invalid transition. A delayed duplicate of an acknowledged retry can therefore fail solely because the run advanced from queued; return idempotent outcomes regardless of the current status, since stale failure cycles are already reported as conflicts by the repository.

Useful? React with 👍 / 👎.

Comment on lines +81 to +84
throw new FounderWeeklyReviewClaimOwnershipMismatchError(context.runId);
}
throw new FounderWeeklyReviewInvalidTransitionError(result.run.status, "save draft");
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make successful draft saves replayable

If the draft update commits but the worker loses the response or is retried before acknowledging its job, a second saveGeneratedDraft with the same claim finds the run in draft with the matching claim ID and reaches this invalid-transition error. This turns a successfully persisted generation into a reported worker failure; treat a matching-claim draft as an idempotent replay, optionally verifying that the persisted payload and metadata match.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next time in our all hands can we have a visualization of how the databases are stored. I am not sure what the run and the run operation represent

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.

3 participants