Skip to content

Share repository credential cleanup scheduling - #5456

Merged
freeqaz-openai merged 1 commit into
mainfrom
refactor/share-repository-credential-cleanup
Nov 11, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
refactor/share-repository-credential-cleanup

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

Summary

The development repository credential service uses one scheduler for retiring credentials and finalizing sessions. Both actions share queue admission, deadlines, settlement, and completion accounting. Retirement records the outcome for its own credential, and finalization waits for renewal disposal.

Verification

  • Lifecycle, Unix control, and source-boundary suites passed all 215 test records.
  • Four before-and-after probes matched for queue capacity, deadlines, and settlement of foreign or wrong-kind outcomes.
  • Detached service and client package tests passed all 12 records in the normal filesystem ownership context. The initial isolated run rejected the configuration.
  • Typecheck, workspace check, lint, and focused formatting passed.

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 10:50
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 10:50
@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR shares scheduling, deadlines, settlement, and completion accounting between credential retirement and session finalization.

Example: A development repository session closes after its last credential use.

  • Before: Separate retirement and finalization functions schedule cleanup and wait for settlement.
  • After: One scheduler performs both actions while preserving credential-specific outcomes and renewal disposal.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-equivalent with passing head checks; behavioral evidence remains test-based rather than demonstrated through a recorded shipped entry point.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored internal refactor is outside the ordinary contributor proof gate and introduces no material authority change; supplied validation consists of reported lifecycle, control, package, and before-and-after checks rather than a recorded service trace.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes
Reason: The feature owner's narrow consolidation reduces duplicated lifecycle machinery while preserving the supported development boundary and public contracts.

Merge readiness

✅ Ready for maintainer review

Keep open for maintainer landing: this PR is a focused, behavior-preserving refactor with no actionable correctness findings.

Priority: P3
Reviewed head: 6c11ac6b8bfa7f330e1ff7f9fcf4bf3e6531b85f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The development credential service constructs an in-memory lifecycle owner that receives session closure and credential-release events, schedules backend cleanup, and reports disposal readiness; production prepared sessions use a separate constructor.

flowchart TB
  Session[Development session] --> Lifecycle[Lifecycle owner]
  Lifecycle --> Queue[Provider queue]
  Queue --> Retirement[Credential retirement]
  Queue --> Finalization[Session finalization]
  Retirement --> Custody[Credential custody]
  Finalization --> Custody
Loading

Technical review

Best possible solution:

Retain the shared scheduler with the existing credential-specific retirement and settlement-owned finalization behavior.

Do we have a high-confidence way to reproduce the issue?

This PR claims an internal refactor rather than a failing user scenario; source comparison supports equivalent cleanup behavior, and no target code was executed.

Is this the best way to solve the issue?

The consolidation uses the existing lifecycle owner, removes the replaced functions, and preserves each action's distinct bookkeeping without introducing another abstraction.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 81803134a1cc.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 0ef55ad adds apps/repository-credentials/src/lifecycle.ts:263 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0ef55ad86687; files: apps/repository-credentials/src/lifecycle.ts)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production code reduction +37 / -60 lines; net -23 One production file consolidates duplicated scheduling without adding modules, configuration, or test scaffolding.

Labels

Label changes:

  • add P3: This is internal maintenance with no demonstrated user-facing defect or changed product contract.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is internal maintenance with no demonstrated user-facing defect or changed product contract.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 6:04 AM ET / 11:04 UTC.

@freeqaz-openai
freeqaz-openai merged commit 491d1e1 into main Nov 11, 2026
66 checks passed
@freeqaz-openai
freeqaz-openai deleted the refactor/share-repository-credential-cleanup branch November 11, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant