Skip to content

Fail closed on truth authority and tighten portfolio attention#184

Merged
saagpatel merged 4 commits into
mainfrom
codex/integration-truth-authority
Jul 14, 2026
Merged

Fail closed on truth authority and tighten portfolio attention#184
saagpatel merged 4 commits into
mainfrom
codex/integration-truth-authority

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

Stack 7/7. Adds clean producer receipts, repository/worktree observation, deterministic false-detection exclusions, and settled attention classification. Depends on stack 6. Local verification: Ruff pass, 132 focused tests pass, seam linter pass, canonical truth regenerated for 181 projects.

@saagpatel saagpatel force-pushed the codex/integration-truth-authority branch from bbd4103 to e07af4d Compare July 14, 2026 04:05
@saagpatel saagpatel force-pushed the codex/integration-oddworks branch from 013aee2 to 1df58e8 Compare July 14, 2026 04:05
@saagpatel saagpatel changed the base branch from codex/integration-oddworks to main July 14, 2026 04:30
@saagpatel saagpatel marked this pull request as ready for review July 14, 2026 04:30

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

ℹ️ 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 +1111 to 1112
if risk_entry.get("security_risk"):
return "decision-needed"

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 Preserve decision-needed for investigate overrides

For active/recent commercial or infrastructure repos whose operating-path evidence sets path_override == "investigate" (for example weak context or missing path confidence), this narrowed guard only treats security risk as decision-needed, so the following maintain/finish branch can label the repo active-product or active-infra. That contradicts the generated path rationale telling operators to treat the repo as investigate and causes downstream consumers of attention_state to lose the unresolved path decision.

Useful? React with 👍 / 👎.

Comment on lines +29 to +31
worktree_dirty = _git(
worktree_path, "status", "--porcelain", "--untracked-files=all"
)

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 Handle prunable worktrees without dropping repo state

When a repository has a stale linked-worktree record, git worktree list --porcelain includes that worktree and git -C <missing> status exits 128; this call then trips the outer exception handler and returns state: "unknown" for the entire primary repo. In that scenario the canonical truth snapshot loses otherwise valid local head/dirty/ahead evidence just because one linked worktree is prunable, so record that worktree as unavailable or skip it instead of failing the whole observation.

Useful? React with 👍 / 👎.

@saagpatel saagpatel merged commit 1aeaf58 into main Jul 14, 2026
4 checks passed
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