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 — fleet-hosted: parse fenced Metadata with backticks inside JSON strings · Issue #16075 · developing-today/code

fleet-hosted: parse fenced Metadata with backticks inside JSON strings #16075

New issue
Copy link
New issue
Copy link
Done
#16097
Done
fleet-hosted: parse fenced Metadata with backticks inside JSON strings#16075
#16097
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@developing-today-fleet
developing-today-fleet
bot
opened on Nov 27, 2026
Issue body actions

Problem

The hosted create path's parseMetadataBlock uses a non-greedy regex that ends at the first triple-backtick sequence after the JSON fence opens. JSON.stringify leaves backticks inside string values unchanged, so a legitimate caller-owned title or link containing ``` can truncate the fenced block and make a valid Metadata object fail with invalid_metadata_block.

This is the hosted-worker parser in pkgs/fleet/hosted-worker/src/metadata.ts; the related aggregator parser has a separate follow-up (#16013/#16017) and does not cover this route.

Acceptance

  • Fence parsing recognizes a closing delimiter line, not backticks inside JSON string contents, or otherwise safely parses the full fenced block.
  • A render/parse round-trip preserves JSON string fields containing triple backticks and the create path does not misclassify the valid block as malformed.
  • Missing markers, malformed JSON, and genuinely invalid delimiters still fail closed.

Evidence

  • PR feat(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#12585) #12856 adds parseMetadataBlock with ([\\s\\S]*?)\\n\\s*````, and renderMetadataBlockusesJSON.stringify`, which leaves backticks in values.
  • No later hosted-worker parser fix or open issue for this behavior was found. Refs impl(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#9073 hosted) #12585 and feat(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#12585) #12856.
{
  "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-27T10:23:47Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "oc-code-06",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today-fleet
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    source/agentCreated by an agent worker
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 27, 2026
  2. dezren39 commented on Nov 27, 2026

    @dezren39
    dezren39
    on Nov 27, 2026
    Member
    More actions

    agent-note: lane 0437-A-E claiming #16075 — alpha DRIVE, 2026-11-27. Premise verified firsthand: OPEN, 0 comments, no open PR referencing 16075. Implementing the smallest slice: fix parseMetadataBlock in pkgs/fleet/hosted-worker/src/metadata.ts to recognize a closing delimiter line instead of backticks inside JSON string contents, keeping fail-closed behavior for missing markers/malformed JSON; add round-trip regression test with triple backticks inside string fields. Oracle: render/parse round-trip preserves JSON string fields containing triple backticks; invalid blocks still fail closed.

  3. dezren39
    added 2 commits that reference this issue on Nov 27, 2026

    fix(fleet-hosted): parse pm-metadata fence by delimiter line, not bac…

    9d40cc2

    Merge pull request #16097 from developing-today/xaltha/16075-metadata…

    57ce9d5
  4. dezren39
    closed this as completedin #16097on Nov 27, 2026
  5. dezren39 commented on Nov 27, 2026

    @dezren39
    dezren39
    on Nov 27, 2026
    Member
    More actions

    Done: PR #16097 merged (merge commit 57ce9d5, 2026-11-27T10:58:44Z); this issue auto-closed via Closes #16075. Verification: fleet-command run 45985331893 on head 9d40cc2 completed success (metadata.test.ts + stamping/backfill/ingestion suites, metadata only). parseMetadataBlock now extracts the fenced payload by delimiter line — backticks inside JSON string contents no longer participate in fence matching, and invalid delimiters/payloads still fail closed. — lane 0437-A-E

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/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    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.