GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — impl(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#9073 hosted) · Issue #12585 · developing-today/code

impl(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#9073 hosted) #12585

New issue
Copy link
New issue
Copy link
Done
Done
impl(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#9073 hosted)#12585
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:done

Description

@dezren39
dezren39
opened on Nov 22, 2026
Issue body actions

Design: doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition §§3.1, 5 (component C of epic #9078, design issue #9081). Parent: #9081. Hosted counterpart of #9073 — same semantics, server-side.

Scope

The create-path stamping endpoint on fleet-hosted:

  • POST create for issues and PRs: parse any pm-metadata block in the caller's body; stamp every fleet-owned provenance field from service sources only (service clock, queue record, session registry, validated token — design §5 table); preserve caller-owned fields (direct_parent, links, lineage) untouched; inject required-field defaults.
  • GitHub write through the fleet App installation-token rotation held as Worker secrets (the hosted rotation point).
  • Insert the full record (full Metadata JSON + extracted keys) into the metadata DB in the same request; a failed insert leaves the GitHub item intact and is healed by ingestion (design §7.3).

Acceptance

  • Create via the endpoint with no block, a partial block, and a complete block: bodies read back with correct stamps; caller-supplied fleet-owned values (e.g. a forged picked_up_at) are overwritten from service sources; caller-owned values never overwritten.
  • DB row for the created item verified by query; full Metadata JSON round-trips.
  • Forced DB-insert failure leaves the GitHub item intact and the miss is picked up by the ingestion slice.

Activity

  1. dezren39
    added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 22, 2026
  2. developing-today commented on Nov 22, 2026

    @developing-today
    developing-todayBot
    on Nov 22, 2026 – with developing.today
    Contributor
    More actions

    CODE-4625

  3. dezren39
    added a parent issue on Nov 22, 2026
    • design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools #9081
  4. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 23, 2026
  6. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: PR #12856 OPEN — create-path stamping endpoint implemented, unmerged for Felix's review
    by: agent felix (kind muse, Muse sandbox seat), lane for #12585
    at: 2026-11-22

    PR: #12856

    What landed: POST /v1/stamps parses the caller's pm-metadata block (#9060 §12; malformed refuses), stamps the full §5 provenance set from service sources only (forged caller values overwritten wholesale; caller-owned direct_parent/links/lineage preserved exactly, defaults injected when absent), signs via #12586, creates the GitHub item through the hosted rotation point (fleet App installation tokens as Worker secrets, config by name only; failover on rate-limit/permission per the native #8887 rule), and inserts the full record (Metadata JSON + extracted keys) into the metadata store in the same request — a forced insert failure leaves the item intact and reports metadata_inserted: false for ingestion (#12590) to heal.

    #9073 state found: still open and unimplemented natively (no pm_meta handling in pkgs/fleet Rust) — this is the first edition of the §12/§13 semantics, not a port; its fixtures are what the native side conforms to when #9073 lands (design §6).

    Seams (interface + fixture, the #12584 idiom): MetadataStore (production home is #9074's DB), QueueRecordSource (the queue door #12589 wires the real claim records; unwired until then, so queue fields stamp null), GitHubWriter (rotation writer is real and hermetically tested; fixture stands in when no App configuration is present — the package is not deployed).

    Evidence: npm test 90/90 (70 baseline green — three auth probes repointed off the now-live door, doors/capabilities skeleton-truth assertions updated — plus 13 stamping + 7 rotation tests); tsc clean; smoke all-pass with a real stamped create. No new dependencies. Judgment calls (scheduled_start as a provenance key; uncited create stamps session_id null; unknown provenance keys dropped rather than signed) are recorded in the PR body and the route header.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Released by felix (outcome: done). Implemented in PR #12856 (open, unmerged for Felix's review): POST /v1/stamps create-path stamping endpoint — Metadata parse/stamp/sign, fleet App rotation server-side, DB insert with ingestion-healed failure semantics. npm test 90/90, tsc clean, smoke all-pass. Record note on #12585.

  8. developing-today
    added
    status:in-review
    on Nov 23, 2026
  9. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 23, 2026
  10. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #12856 from developing-today/felix/12585-stamping-…

    a1a5438
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: PR #12856 MERGED — create-path stamping endpoint landed (first edition)
    by: agent felix (kind muse, Muse sandbox seat), merging after review
    at: 2026-11-22

    PR #12856 merged 2026-11-23T03:58:05Z. Felix's review: re-ran the suite (90/90 — 70 baseline + 13 stamping + 7 rotation); read the route and the auth diff — the pipeline builds the §5 provenance from service sources only (auth_subject is the credential-resolved binding_id; caller-supplied provenance is replaced in full; caller-owned direct_parent/links/lineage preserved exactly), requireStampSigner runs before any write (unconfigured → 503 stamp_signing_not_configured, zero writes), and the auth.ts change is dependency wiring only (absent store/writer → the route fails closed). #9073 has no native implementation on main, so this is the first edition of the §12/§13 semantics and its fixtures are what the native side conforms to (design §6).

    Stated seams: MetadataStore is interface + fixture (production home is #9074's DB); QueueRecordSource is defined but unwired until the queue door (#12589) lands, so queue fields stamp null per the §5 not-queue-originated rule; the GitHubWriter rotation is real, hermetically tested code wired when App config parses. Provisioning note recorded in config.ts: GitHub issues the App key as PKCS#1 PEM; provisioning converts to PKCS#8 for WebCrypto.

    #12585's slice is complete; the production wiring lands with #9074.

  12. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Triage verdict (2026-11-24, lane code-j, queue task 22221): implemented and merged; closing with evidence.

    • PR feat(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#12585) #12856 (feat(fleet-hosted): create-path stamping endpoint, impl(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#9073 hosted) #12585) is MERGED 2026-11-23T03:58:05Z, merge commit a1a5438 on main.
    • Acceptance coverage: pkgs/fleet/hosted-worker/test/stamping.test.ts (13 tests) covers no/partial/complete block, forged fleet-owned overwrite, caller-owned preservation, and forced insert failure with metadata_inserted:false; test/github.test.ts (7) covers the rotation point. Felix's review re-ran 90/90.
    • Seams the PR names (QueueRecordSource wiring for impl(fleet-hosted): queue front door — broker protocol over hosted transports on the existing fleet-queue Turso DB #12589, production MetadataStore for impl(fleet): metadata database + fleet Metadata query surface #9074) are separate tracked issues, not gaps in this issue's acceptance.
    • No follow-on packet: nothing in scope remains. Closing as implemented.
  13. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Closed as implemented.

  14. dezren39
    closed this as completedon Nov 24, 2026
  15. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.