Skip to content

Add portfolio verdict transition ledger#179

Merged
saagpatel merged 2 commits into
mainfrom
codex/integration-trend-ledger
Jul 14, 2026
Merged

Add portfolio verdict transition ledger#179
saagpatel merged 2 commits into
mainfrom
codex/integration-trend-ledger

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

Stack 2/7. Adds the verdict transition ledger and command-center movement summary. Depends on stack 1.

@saagpatel saagpatel force-pushed the codex/integration-trend-ledger branch from 63c3b36 to cab270d Compare July 14, 2026 04:05
@saagpatel saagpatel changed the base branch from codex/integration-scoring-hygiene to main July 14, 2026 04:08
@saagpatel saagpatel marked this pull request as ready for review July 14, 2026 04:08
@saagpatel saagpatel merged commit 337f7ab into main Jul 14, 2026
4 checks passed

@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: cab270de6e

ℹ️ 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 +281 to +284
if latest_index != len(observations) - 1:
status = "disappeared"
run_count = 1
since_index = latest_index

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 Count disappeared streaks from first absent snapshot

When a repo is missing from the latest snapshot(s), this branch always reports run_count/consecutive_snapshots as 1 and sets since_generated_at to latest_index, which is the last snapshot where the repo was still present. For a history like [present, absent, absent], the ledger says the repo has been disappeared for one snapshot since the present date, understating the disappearance duration and giving consumers the wrong start date; the disappeared streak should be counted from the first absent snapshot after latest_index.

Useful? React with 👍 / 👎.

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.

1 participant