Urgent.News

What's breaking now, across thousands of outlets.

Tech

Case Study: A License Inventory Endpoint That Fails Closed on Unknown Obligations

You should freeze license labels before a coding agent writes your release inventory endpoint, because fluent code can still invent obligations. This case study walks through one small service that reports third-party package licenses for a single repository snapshot. You will see the background, the goal, the implementation, the checks, and the lessons in that order. The useful outcome is a…

This case study explores an inventory endpoint that fails closed on unknown obligations. The release checklist demands confirmation that each direct dependency has a known license obligation before tagging a build. Coding agents sometimes guess when a license string is missing or ambiguous, which can lead to product bugs if treated as authoritative decisions by the release gate. A small written contract that fails closed before any assistant handles the handler is necessary.

The goal is to create one inventory endpoint reading a frozen dependency snapshot and returning a stable JSON envelope. Packages must be classified as permissive, weak copyleft, strong copyleft, or unknown. Unrecognized licenses must fail the release gate with HTTP 422 and never be rewritten as permissive. The handler may be drafted later, while the classification table and fixtures come first. A table outlines an engineering checklist, serving as an argument for the policy rather than legal advice.

The implementation involves freezing rules in a table, confirming every snapshot package appears once, ensuring unrecognized licenses never receive permissive class or allow gate values, and verifying blocked is true with HTTP 422 when any gate fails closed. The implementation is a proposed workflow, not a production module. The classifier is kept in a pure function, and an HTTP server wraps it for hosting.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Indie makers build Productivity apps. The visits go to Food & Drink and Finance.

There are two easy ways to count an indie app category: how many apps are in it, and how much attention those apps actually get. I assumed they would roughly line up.

  • Productivity apps have 31 apps, ranking sixth in visits with 89
  • Food & Drink and Finance categories receive most visits (331 and 320)
  • Health & Fitness leads in both number of apps (41) and visits

Don't Enqueue What You Cannot Reserve

A free lane is the wrong bet when you cannot reserve the attempt before anything admits it. A zero price does not make the prompt free of time, and a client timeout does not hand the tokens back.

How We Run 4 Services From One Go Monorepo

We're building Towami — a commerce platform that combines white-label online stores with country marketplaces. One codebase produces four long-running services, each with a separate entry point and…

  • Towami uses a single Go codebase for four services: site, shops, admin, and worker.
  • Services have distinct entry points and responsibilities, forming a modular monolith.
  • Worker service processes tasks via Asynq using Redis queues and shared internal/ package tree.

43% of the visits go to ten apps: what the indie long tail looks like

If you ship an indie app, most of the attention will go to someone else. That is not pessimism, it is what the numbers look like when you count real visits instead of downloads.

  • Ten apps account for 43% of all recorded visits.
  • Remaining 252 apps share the rest of the attention.
  • Productivity category has 31 apps with 89 visits.

More from Thursday 24 September →