neosloc archive

Repositories /

google/gson

https://github.com/google/gson · commit e2292f9c9f2e · evaluated 2026-10-12 with neosloc 0.8.0 · JSON

0.33 integrability index over 3 applicable dimensions
none surfaces
$405k → $114k classic COCOMO → neosloc value (28% survives)
buy make / buy = 39.28 over 3 years

Dimensions

Interface surface 0 absent Not yet: A programmatic surface exists (routes, a CLI or a library).

Can another program use it through a documented, machine-readable surface?

  • next: L1 A programmatic surface exists (routes, a CLI or a library). (no service, CLI, library or frontend detected)

none ladder · level 0

  • ✗ L1 A programmatic surface exists (routes, a CLI or a library). no service, CLI, library or frontend detected
Contract stability n/a Not applicable: no service, cli, library, desktop or format surface.

Can integrators rely on it not changing under them?

Events n/a Not applicable: no service and no long-running CLI mode (batch CLIs, libraries and desktop apps have no events).

Can others react to state changes without polling?

Identity n/a Not applicable: uses no credentials and has no service surface.

Can a machine act with its own revocable, least-privilege identity?

Data portability n/a Not applicable: owns no persistent data.

Can its data get in and out, in bulk, in open formats, with an explicit schema?

Agent ergonomics n/a Not applicable: no service or cli or library or desktop surface.

Can an automated caller use it without guessing, and recover from failure?

Embeddability n/a Not applicable: no service or cli or library or desktop surface.

Can another system run and compose it without a human?

Extensibility 0 absent Not yet: Internal seams: a registry, registration function or plugin manager.

Can behaviour be added without modifying the code?

  • next: L1 Internal seams: a registry, registration function or plugin manager. (no registry or registration function)

all ladder · level 0

  • ✗ L1 Internal seams: a registry, registration function or plugin manager. no registry or registration function
  • ✗ L2 The docs show how to add behaviour through those seams (even in-tree). no registration functions to document
  • ✗ L3 Out-of-tree extensions are discovered (entry points, a plugin directory, configuration) without editing the package. extensions must be added inside the package
  • ✗ L4 The extension API is versioned, has lifecycle hooks, and has example extensions. the extension API isn't versioned
Observability n/a Not applicable: no service or cli or library or desktop surface.

Can an operator, or an orchestrating agent, tell whether it works and why not?

Change legibility 1 ad hoc A README and some tests.

Can an agent change it safely with limited context?

  • next: L2 CI runs the tests; applications pin dependencies (libraries and zero-dependency projects are exempt). (no lockfile (applications should pin dependencies))

all ladder · level 1

  • ✓ L1 A README and some tests. README.mdextras/src/test/java/com/google/gson/interceptors/InterceptorTest.java 142 test files
  • ✗ L2 CI runs the tests; applications pin dependencies (libraries and zero-dependency projects are exempt). no lockfile (applications should pin dependencies)
  • ✗ L3 At least 90% of modules fit 32k tokens and no file exceeds 12k; test/source token ratio at least 0.3; at least 70% of the code is typed. 89% of modules fit 32k tokens; 3 files over 12k
  • ✗ L4 No import cycles, and agent docs (AGENTS.md, CLAUDE.md, llms.txt). no agent docs (AGENTS.md, CLAUDE.md, llms.txt)

Make or buy

Make with agents

1,536,292 output + 38,407,300 input tokens on anthropic:claude-opus-5-5 ≈ $60.

17.1 agent-hours · 130.2 human days (16.8 steering + 113.4 rediscovering history).

$101,285 over 3 years

Buy (adopt as is)

60 min to running (via –) + 2194 min to first use (via none).

15 min/year of upgrades; price $0/year.

$2,579 over 3 years

Buying wins below $32,902 per year. How this is estimated.

Classic COCOMO vs neosloc value

Classic COCOMO (sloccount)

13.17 KSLOC → 36.0 person-months over 9.8 months.

$405k

The effort to write it by hand, as COCOMO priced it in 1981.

neosloc value (neoCOCOMO)

Reproduce with agents: 8.8 PM (×0.24 of classic; 68% of behaviour captured by tests, contract and docs).

Rediscover uncaptured history: 5.4 PM (317 fixes in 2107 commits by 202 authors).

× leverage 0.79 (integrability) × obsolescence 0.9.

$114k (10.1 PM)

What survives

28% of the classic figure

38% of the replacement cost lives only in code and history.

How the value is estimated.

History

2026-10-07: 0.332026-10-07: 0.332026-10-07: 0.332026-10-07: 0.332026-10-12: 0.33
EvaluatedCommitneoslocIndexMake or buy
2026-10-12e2292f9c9f2e0.8.00.33buy
2026-10-07845664ba1c300.8.00.33buy
2026-10-07845664ba1c300.7.40.33buy
2026-10-07845664ba1c300.7.30.33buy
2026-10-07845664ba1c300.7.20.33buy