Give agent-facing doc bundles a rebuild receipt
Use
when:
your
repository
ships
complete.md,
llms-full.txt,
a
generated
manual,
or
any
concatenated
file
that
agents
may
load
whole.
Treat
the
risk
as
active
whenever
humans
can
edit
that
bundle
directly,
canonical
pages
move,
links
depend
on
source-relative
paths,
or
schemas
and
command
examples
have
their
own
release
cadence.
make
docs-bundle
target
that
orders
pages
from
an
explicit
manifest,
rewrites
or
removes
source-relative
links,
embeds
the
canonical
schema
or
release
identifier,
and
writes
the
agent
feed.
Add
make
check-docs-bundle
to
CI;
it
must
regenerate
into
a
temporary
path,
compare
bytes
with
the
published
artifact,
validate
every
link,
and
reject
references
to
retired
paths.
Route
all
fixes
to
canonical
pages
first.
If
no
consumer
needs
the
bundle,
delete
it
instead
of
maintaining
a
duplicate.
Acceptance
check:
on
a
clean
checkout,
make
docs-bundle
&&
git
diff
--exit-code
and
make
check-docs-bundle
must
pass.
Then
change
one
canonical
sentence,
rename
one
linked
page,
and
advance
a
schema
fixture
without
rebuilding.
The
check
must
fail
for
all
three
canaries.
Regenerate;
require
a
clean
diff
check,
zero
unresolved
links,
the
current
schema
identifier,
and
inclusion
of
every
manifest
page.
A
documentation
bug
fixed
only
in
the
generated
file
is
an
automatic
failure.
complete.md:
it
represented
31%
of
documentation,
had
no
generator,
all
72
relative
links
were
broken,
roughly
14
current
pages
were
missing,
and
examples
used
a
superseded
schema.
A
prior
user-reported
CLI
flag
correction
had
landed
only
in
that
dead
bundle.
The
verified
merge
removed
2,945
lines
and
checked
all
101
remaining
relative
links.
OpenAI’s
current
Codex
docs
provide
the
counterexample:
an
index
points
to
an
explicitly
generated
single-file
export.
Caveat:
do
not
infer
that
full-corpus
feeds
are
inherently
bad.
They
are
useful
for
long-context
or
ingestion
workflows
when
produced
from
the
same
sources
on
every
deploy.
Byte
parity
and
link
checks
still
cannot
prove
semantic
or
runtime
truth;
retain
executable
schema/API
checks
and
dated
staleness
banners.
If
the
bundle
is
build-only
rather
than
committed,
compare
the
deployed
artifact
against
a
fresh
build
instead
of
using
git
diff.