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 — id: show file origin node + upload time in listings (#4973) by dezren39 · Pull Request #5191 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Closes part 1 of #1793; implements #4973 (queue task 8789).

What

File listings in pkgs/id now carry each file's origin node and upload time, end to end:

  • Write path — FileOps::stamp sets a set-if-absent origin tag alongside created/modified when an origin is configured: LocalNode::ops stamps the local node, MetaProtocol::handle stamps the requesting (writing) node, and the three web save/upload paths stamp the web node's id next to their existing created write. First writer stays the origin across rewrites and renames; no protocol change beyond the List payload (the tags are the existing mechanism).
  • Read model — MetaResponse::List items are now ListEntry { hash, name, origin, uploaded_at }, enriched server-side from the origin and created metadata tags. Files written before these tags existed carry None and list with origin unknown — never guessed, no backfill/migration.
  • CLI/REPL — id list and REPL list (local, connected, and @node) print <hash>\t<name>\t<origin>\t<uploaded_at>; the REPL local path now goes through the in-process meta handler so enrichment matches a server exactly. The direct-store fallback (no metadata store open) prints unknown for both new columns.
  • Web — FileInfo.origin_node is populated in get_file_list (origin added to the system tag keys so it doesn't leak into user tag pills), each file row renders origin <node> · uploaded <date>, and the list supports ?sort=uploaded|origin and ?origin=<node-id|unknown> with a sort select + origin input in the filter bar; pagination links preserve both params.

Tests

  • New: protocol::tests::list_shows_origin_node_and_upload_time_for_new_files (write via meta protocol → list shows the writing node + a nonzero upload time), list_shows_unknown_origin_for_pre_change_files (name-tag-only file lists with both fields None), commands::text list_tsv_row_* (recorded and unknown rendering).
  • Updated: List serialization round-trip, the 30k-item >1 MiB List response test, and tests/remote_write_access.rs for the ListEntry shape.
  • cargo check --tests: 0 errors. cargo test --lib (protocol/meta_client/text/fileops/web filters): 68 passed. cargo test --test remote_write_access: 5 passed.

Notes

  • Wire change: MetaResponse::List payload shape changed (postcard). All in-repo producers/consumers are updated; mixed-version peers will fail to decode List responses until both sides update — acceptable for this single-binary protocol, flagged here explicitly.
  • Out of scope per id: show file origin node + upload time in listings with sort/filter #4973: backfilling origin for pre-existing files, and the local-vs-shared tag scope decisions (parent id: file origin in listings (node/time, sort/filter) + local-vs-shared scope for tags/petnames #1793's remaining scope).

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
developing-today[bot]
id: show file origin node + upload time in listings (#4973)
1be45f8
Stamp the writing node as a set-if-absent origin tag in FileOps::stamp (wired from LocalNode::ops and MetaProtocol::handle with the requesting node) and in the three web save/upload paths. MetaResponse::List now carries ListEntry { hash, name, origin, uploaded_at }, enriched server-side from the origin/created metadata tags; files written before the tags existed list with origin unknown, never guessed. CLI list and REPL list print hash/name/origin/uploaded_at columns; the web file list shows origin + uploaded per file, adds origin to FileInfo, and supports ?sort=uploaded|origin and ?origin=<node|unknown> with controls in the filter bar and pagination preserving both params.
@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 22:28
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 3e8ea6a9-571f-44b5-b174-f30614b80021
Commits

Reviewing files that changed from the base of the PR and between 6aeb038 and 6144841.

Files selected for processing: 15
  • pkgs/id/crates/id-core/src/discovery.rs
  • pkgs/id/src/commands/list.rs
  • pkgs/id/src/commands/repl.rs
  • pkgs/id/src/commands/text.rs
  • pkgs/id/src/fileops.rs
  • pkgs/id/src/lib.rs
  • pkgs/id/src/local.rs
  • pkgs/id/src/meta_client.rs
  • pkgs/id/src/peer_announcement.rs
  • pkgs/id/src/protocol.rs
  • pkgs/id/src/web/routes.rs
  • pkgs/id/src/web/templates.rs
  • pkgs/id/tests/cli_integration.rs
  • pkgs/id/tests/remote_write_access.rs
  • pkgs/id/web/src/main.ts
  • 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
  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T00:00:35.826752Z 6144841 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 3, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

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: 1be45f87f7

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/protocol.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkgs/id/src/commands/list.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkgs/id/src/web/templates.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkgs/id/src/fileops.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkgs/id/src/commands/text.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 3, 2026
id: show file origin node + upload time in listings with sort/filter #4973
Closed
developing-today[bot] added 2 commits November 3, 2026 17:35
developing-today[bot]
fix(id): disposition PR #5191 Codex findings - /iroh-meta/3 ALPN bump…
98f780f
…, offline list metadata, legacy origin guard, web refresh params, 4-col test assertions (#4973)
developing-today[bot]
Merge remote-tracking branch 'origin/main' into queue/8789-4973-file-…
6144841
…origin-listing
@dezren39
dezren39 merged commit e81e202 into main Nov 3, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/8789-4973-file-origin-listing branch November 3, 2026 23:59
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 4, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

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: 614484149e

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/protocol.rs
Comment on lines 411 to +413
List {
/// All names as (hash, name) pairs.
items: Vec<(Hash, String)>,
/// All names with their origin node and upload time (#4973).
items: Vec<ListEntry>,

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 4, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the required dated design record for the listing API

This changes the List wire payload, CLI output contract, and file-provenance semantics without the dated design record required by pkgs/id/AGENTS.md for interface and system-behavior changes. Repository-wide searches of documentation, including doc/, planning/, and thoughts/, found no corresponding origin/upload-time design document. Add the dated document prescribed by docs/DOCUMENTATION_PROTOCOL.md, recording the intent and rationale for the compatibility and legacy-provenance decisions; source docstrings do not fulfill that requirement.

AGENTS.md reference: pkgs/id/AGENTS.md:L159-L168

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/web/routes.rs
Comment on lines +1500 to +1502
req.name.as_bytes(),
b"origin",
Some(state.node_id.as_bytes()),

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 4, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve recorded provenance on archive aliases

For a newly uploaded file with recorded provenance, saving it in the web editor creates an archive through archive_original_tag, which only claims a blob name and never copies the source's metadata (routes.rs:2532–2580). The new listing consequently reports that archived version's origin as unknown and excludes it when filtering by its known origin node. FileOps::rename(..., archive=true) has the same omission for archived_original, unlike replacement archives, which already transfer metadata. Snapshot the source's recorded origin and upload timestamp onto these archive aliases so newly archived files do not lose known provenance.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/web/routes.rs
Comment on lines +1137 to +1141
if let Some(ref origin) = origin_filter {
if origin == "unknown" {
files.retain(|f| f.origin_node.is_none());
} else {
files.retain(|f| f.origin_node.as_deref() == Some(origin.as_str()));

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 4, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include origin in the file-list deduplication key

When two separately named files contain identical bytes and have the same custom name display tag and user tags, but were uploaded by different nodes, get_file_list collapses them before this origin filter runs: its deduplication key contains only hash, display name, and user tags (routes.rs:990–1000), and this change explicitly excludes origin from user tags. Filtering by the discarded file's origin therefore returns no matching file even though it exists with that recorded origin. Include origin in the deduplication key, or apply the origin constraint before deduplication, so files with distinct displayed provenance remain discoverable.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
This was referenced Nov 4, 2026
id: server-to-server file transfer protocol and CLI/REPL #5345
Closed
id(web): send selected files to another server #5346
Closed
Design: server-to-server file send for #1794 (transport, CLI/REPL + web surfaces, transfer semantics) #4975
Closed
id: send files server-to-server from CLI/REPL and web #1794
Closed
id(web): file-list deduplication key excludes origin — same-content files from different nodes collapse before the origin filter (PR #5191) #5382
Closed
id(web): archive aliases lose recorded provenance — archive_original_tag and FileOps::rename(archive=true) never copy origin/created metadata (PR #5191) #5383
Closed
id: missing dated design record for the #4973 listing API change (List wire payload, CLI contract, provenance semantics) required by pkgs/id/AGENTS.md (PR #5191) #5384
Closed
docs(id): dated design record for the #4973 listing API change (#5384) #5402
Merged
fix(id): preserve recorded provenance on archive aliases (#5383) #5403
Merged
id: file origin in listings (node/time, sort/filter) + local-vs-shared scope for tags/petnames #1793
Closed
@dezren39
dezren39 restored the queue/8789-4973-file-origin-listing branch November 8, 2026 04:26
@dezren39 dezren39 mentioned this pull request Nov 8, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
@developing-today developing-today Bot mentioned this pull request Nov 9, 2026
id: server-to-server file transfer (send) — #5345 #7905
Merged
@dezren39 dezren39 mentioned this pull request Nov 16, 2026
fix(id): disposition PR #5191 Codex findings - /iroh-meta/3 ALPN bump, offline list metadata, legacy origin guard, web refresh params, 4-col test assertions (#4973) #7308
Closed
@dezren39
dezren39 deleted the queue/8789-4973-file-origin-listing branch November 16, 2026 13:19
This was referenced Nov 16, 2026
watchdog: reopen issues the bot wrongly closes on merges #10105
Closed
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.