Skip to content

feat(pm-stack): agg_quota_current P1 contract (#1744 Move 1 step 3) - #17008

Merged
developing-today-fleet[bot] merged 7 commits into
mainfrom
archer/1607i-1744-quota-current
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 7 commits into
mainfrom
archer/1607i-1744-quota-current

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Lane 1607-I (charlie ADVANCE, 2026-11-29). Next bounded #1744 slice in the established pattern (1452-E: #16975/#16978; 1522-F: #16983; 1607-I: #17003).

What: P1 schema contract for Move 1 step 3's first refreshable cache — quota-current.json (gatherer writer; reader contract in aggregator/src/quota-current.ts) → public.agg_quota_current_entries + public.agg_quota_current_windows as migration 20261129_0005_agg_quota_current: paired up/down (down refuses non-empty), Turso golden generated by the repo translator, both migration test suites extended (5 new Turso constraint tests; PG suite section mirroring the alerts section), README + migration plan updated.

Contract notes: one entry per (service_id, provider_id) — several entries share a service, one per credential — carrying the file's generated_at snapshot stamp; the reader's ingest gates become checks where the database can state them (entry/window state lists, credential-source list, non-negative window value per #15162). Freshness precedence stays reader semantics over measured_at.

Schema-only: no rows copied, no writer/reader cutover; quota-current.json remains the live backend and rollback target; #1744 criterion 3 untouched.

Verification: full test_turso_migrations.py suite run locally against this exact tree = 60 tests OK (incl. golden pin for 0005; all pre-existing goldens byte-identical); test-migration.sh bash-syntax checked (disposable-PostgreSQL run needs a docker daemon, not present on this seat — PG assertions mirror the Turso ones, as with prior slices). Full diff read by the lane before merge.

Refs #1744

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T22:38:28Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 33ba73aa-24c2-4f0c-9c40-a2ab4c8593e2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

0 participants