frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

"SFH: A Minimal Semantic Layer for the Web (One File, Zero Dependencies)"

https://github.com/colts70/The-Sematic-Stack
1•sematicstackdfh•58m ago

Comments

sematicstackdfh•58m ago
SFH: Semantic First-Hop Protocol (Draft v1.0)

SFH (Semantic First-Hop) is a tiny, deterministic semantic layer for the public web. It gives machines (LLMs, crawlers, agents) a stable first hop for any topic—no central authority, no ranking, no guessing.

It’s the same idea as DFH (Deterministic First-Hop) but named for clarity: the first semantic step when resolving “what is X?” online.

0. Problem

The web has DNS (where), HTTP (how), HTML/JSON (what), but no standard for the semantic starting point of a topic. Today, LLMs and search engines guess using embeddings, PageRank, or ads. Meaning is implicit and mutable.

SFH adds one explicit file telling machines where the canonical map of a domain/topic lives.

1. Goals

Minimal: one well-known JSON file. Deterministic: same input → same first hop. Decentralized: anyone can publish. Composable: works with sitemaps, JSON-LD, schema.org. LLM-friendly: mirrors how models canonicalize concepts.

2. Concepts SFH Node

A domain/subdomain providing an SFH descriptor at /.well-known/sfh.json. Examples: example.com, cars.example.com, googlesitemap.com, moneysitemap.com.

SFH Descriptor

JSON (or JSON-LD) document describing:

what the node represents

its canonical URL

sitemap

mirrors

metadata

SFH Resolution

Map topic → candidate domain.

Fetch /.well-known/sfh.json (fallback: stack.json).

Parse anchors.

Build stable graph from canonical URL + sitemap.

3. Spec (condensed)

Descriptor MUST be at:

https://<domain>/.well-known/sfh.json

Top-level JSON MUST include:

spec_version node.id node.type anchors.canonical_url

anchors.sitemap_url SHOULD be included.

Example minimal descriptor:

{ "spec_version": "1.0", "node": { "id": "https://example.com", "type": "Topic", "label": "Example" }, "anchors": { "canonical_url": "https://example.com/", "sitemap_url": "https://example.com/sitemap.xml" }, "meta": { "updated_at": "2025-12-07T00:00:00Z" } }

Clients MUST accept application/json or application/ld+json.

4. Resolution Algorithm

For a domain:

GET /.well-known/sfh.json (then stack.json).

Validate required fields.

Use:

node.id → stable ID

canonical_url → first hop

sitemap_url → expansion

Cache according to HTTP headers.

5. Example External Anchor { "spec_version": "1.0", "node": { "id": "https://googlesitemap.com", "type": "Topic", "label": "Google Sitemaps" }, "anchors": { "canonical_url": "https://googlesitemap.com/", "sitemap_url": "https://www.google.com/sitemap.xml" }, "meta": { "updated_at": "2025-12-07T00:00:00Z" } }

This doesn’t impersonate Google; it simply publishes a stable map pointing to real URLs.

6. DFH Compatibility

If stack.json exists, it is SFH-compatible. Client rule: try sfh.json → fall back to stack.json.

7. Security Notes

SFH doesn’t solve trademark disputes; it makes anchors transparent. Domains MUST use HTTPS. Clients SHOULD combine SFH with other trust signals.

8. Implementation

Publisher: serve a static JSON at /.well-known/sfh.json. Client pseudo-code:

def resolve(domain): for p in ["/.well-known/sfh.json", "/.well-known/stack.json"]: try: r = requests.get("https://" + domain + p, timeout=3) if r.status_code == 200: return r.json() except: pass return None

9. Why Now?

AI already behaves as if this layer exists internally. The web never standardized it. SFH is the smallest workable patch: one file per domain. It gives machines a deterministic, public starting point instead of hidden heuristics.

10. TL;DR

SFH is a tiny / .well-known / sfh.json file that tells machines where the canonical map of a topic lives. Publish one file → AI stops guessing. Deterministic grounding for the public web.

Which economy did best in 2025?

https://www.economist.com/finance-and-economics/2025/12/07/which-economy-did-best-in-2025
1•andsoitis•2m ago•0 comments

Pulldash: Fast, filterable GitHub PR review. client-side

https://github.com/coder/pulldash
1•todsacerdoti•7m ago•0 comments

Ultra-Processed Foods and Human Health

https://www.thelancet.com/series-do/ultra-processed-food
2•wjb3•10m ago•1 comments

NASA patent: oblique variable-sweep wing

https://technology.nasa.gov/patent/TOP2-166
1•danielschreber•12m ago•0 comments

Continuity as the Essence of Consciousness

https://github.com/sirspyr0/ai-continuity-system/blob/main/CONTINUITY_CONSCIOUSNESS_PAPER.md
1•sirspyr0•12m ago•2 comments

My Mother-in-Law Is Torturing the Family with Her Beloved "Hobby."

https://slate.com/advice/2025/12/family-advice-mother-in-law-hobby-cooking.html
1•mooreds•14m ago•0 comments

What Is A2P 10DLC?

https://help.twilio.com/articles/1260800720410-What-is-A2P-10DLC-
1•mooreds•16m ago•1 comments

JHipster Online

https://start.jhipster.tech/
1•mooreds•17m ago•0 comments

Using – JavaScript

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using
2•andrewaylett•17m ago•1 comments

Atlas Obscura founders removed from board

https://www.semafor.com/article/12/04/2025/staff-cuts-and-strategy-squabbles-split-atlas-obscura-...
2•colinprince•18m ago•0 comments

Effects of low-level pre-midday lighting on markers of depression

https://www.sciencedirect.com/science/article/pii/S0022395625007034?via%3Dihub
1•wjb3•20m ago•0 comments

Coffee intake is associated with telomere length in mental disorders

https://mentalhealth.bmj.com/content/28/1/e301700
2•wjb3•20m ago•1 comments

Show HN: I turned Naval Ravikant into an AI agent

https://www.naval-nia.com/
1•arlanrakh•27m ago•0 comments

Bookish London: Photos of the Capital's Love Affair with Books

https://londonist.com/london/books-and-poetry/bookish-london
1•zeristor•27m ago•0 comments

React2shell: CVE-2025-55182 Technical Breakdown

https://www.miggo.io/post/react2shell-cve-2025-55182-technical-breakdown
1•zirak•28m ago•0 comments

"Indino" the Indigo flight cancellation tracker

https://indino.app/
2•WiseHare•28m ago•0 comments

Think First, AI Second

https://every.to/p/think-first-ai-second
1•ChrisArchitect•28m ago•0 comments

Steering the Vibe: Commits

https://staffordwilliams.com/blog/2025/12/07/steering-the-vibe-commits/
1•staff0rd•30m ago•1 comments

Tensor 1.5 is out and it's matching Claude 4.5 Opus

https://movementlabs.ai
7•movementlabs-AI•36m ago•2 comments

Gh PR-review: LLM-friendly PR review workflows in your CLI

https://agyn.io/blog/gh-pr-review-cli-agent-workflows
1•handfuloflight•42m ago•0 comments

What is digital sovereignty and how are countries approaching it?

https://www.weforum.org/stories/2025/01/europe-digital-sovereignty/
3•andsoitis•44m ago•0 comments

Spain probes whether swine fever outbreak was caused by lab leak

https://www.reuters.com/business/healthcare-pharmaceuticals/spain-investigating-whether-swine-fev...
1•geox•45m ago•0 comments

Git Worktree Manager: Worktrunk

https://worktrunk.dev/
2•maximilianroos•52m ago•0 comments

Show HN: Art-2D – A physics-based model for financial collapse prediction

https://zenodo.org/records/17805937
2•asmyros•53m ago•0 comments

Dinit – service manager and "init" system

https://davmac.org/projects/dinit/
2•doener•54m ago•0 comments

Show HN: Vibe Code WP Plugins

https://steem.dev/
1•fasthightimess•54m ago•0 comments

When is Gods Timing

https://thinke.org/blog/gods-timing-is-always-right-on-time
2•marysminefnuf•56m ago•0 comments

Chimera Linux

https://chimera-linux.org/
2•doener•56m ago•0 comments

Imperial 'Good Companion' Model T typewriter manual (1938) [pdf]

https://www.londontypewriters.co.uk/wp-content/uploads/2022/01/London-Typewriters-Imperial-Good-C...
1•camtarn•56m ago•0 comments

Bag of words, have mercy on us

https://www.experimental-history.com/p/bag-of-words-have-mercy-on-us
4•ntnbr•57m ago•1 comments