Skip to content

docs(#9174): tighten trace-context v1 wording held back from #9084 - #9175

Merged
dhshah13 merged 2 commits into
mainfrom
agent/9174-trace-context-wording
Nov 6, 2026
Merged

dhshah13 merged 2 commits into
mainfrom
agent/9174-trace-context-wording

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Applies the wording and comment fixes held back from the last review round of #9084 to the trace-context v1 normative spec, the reference doc, and four Go comments. Nothing changes behaviour: the Go edits are comments only.

Related Issue

#9174

Changes

docs/normative/trace-context/v1/README.md

  • Fallback derivation now applies only to a resolved identity. An unresolved identity gets no derived context and dispatch is postponed (links to Admission).
  • IPv6 hosts take the "RFC 5952 section 4 form, with IPv4-mapped addresses in mixed notation", which is what netip prints.
  • Instance section: new paragraph saying normalization fixes spelling only. An IP literal and its hostname, DNS aliases, and an IPv4-mapped address and its IPv4 form are different instances.
  • Provenance fields row: every ID is nonzero, as Parse already enforces.
  • Admission: "can never forge or inject a context" replaces "alter or inject".
  • Rename and move rules: the repository-transfer claim had no source, so it is now a rule. A transfer that keeps the container's database ID keeps identity; one that changes it is a new binding.
  • Container row: a PR's container is the base repository and an MR's is the target project, never the fork.

docs/reference/trace-context.md

  • "IPv6 spelling canonicalization and zone rejection" (zones are rejected, not canonicalized).

Code comments

  • identity.go: the same RFC 5952 phrase in the NormalizeInstance doc and the inline comment.
  • envelope.go: OutcomeFallback and Admit say "decoded candidate" instead of "carrier".
  • envelope_test.go: TestAdmit_AppendedJunkForcesFallback uses the README wording ("can never forge or inject a context").
  • jira/client.go: the searchFields comment now explains that project is requested for the immutable container identity (ADR 0154). The poller does not read it, and GetIssue fetches it through its own request.

Testing

  • go test ./internal/telemetry/tracecontext/... ./internal/forge/jira/... passes.
  • go vet and gofmt are clean on the changed packages.
  • pre-commit could not fetch its remote hook repos in the sandbox (TLS certificate error). I ran the applicable hooks directly instead: gofmt, go vet, lint-broken-symlinks, lint-docs-links, lychee --offline, the whitespace and EOF checks, and scan-secrets in place of gitleaks and detect-private-key. All passed.
  • Grep confirms the old phrases are gone from docs/ and internal/.

Checklist

  • PR title follows Conventional Commits (docs, no breaking change)
  • Autonomous agent commit: no DCO sign-off, by policy

🤖 Generated with Claude Code


Closes #9174

Post-script verification

  • Branch is not main/master (agent/9174-trace-context-wording)
  • Secret scan passed (gitleaks — 6c933d7539abfe5cc21d12d66e539371bce680ea..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Final PR description secret scan passed (gitleaks — no-git)

Apply the wording and comment fixes from the last review round of
#9084. None changes behaviour; Go edits are comments only.

Normative README:
- Fallback derivation applies only to a resolved identity; an
  unresolved identity postpones dispatch (see Admission).
- IPv6 hosts take the RFC 5952 section 4 form, with IPv4-mapped
  addresses in mixed notation, matching what netip prints.
- State that normalization fixes spelling only: IP literal vs
  hostname, DNS aliases, and IPv4-mapped vs IPv4 are distinct.
- Provenance fields are nonzero, as Parse enforces.
- "forge or inject" replaces "alter or inject" beside the
  no-freshness-check statement.
- Container transfers become a rule (same database ID keeps
  identity; a changed ID is a new binding) instead of an
  unsourced claim about forge behaviour.
- A change proposal's container is the base repository / target
  project, never the fork.

Reference doc: zones are rejected, not canonicalized.

Code comments: use the same RFC 5952 phrase in identity.go; say
"decoded candidate" rather than "carrier" for OutcomeFallback and
Admit; reuse the README wording in envelope_test.go; explain why
Jira searchFields requests "project" though the poller does not
read it.

Note: pre-commit could not fetch remote hook repos (TLS error in
sandbox). Ran applicable hooks directly: gofmt, go vet,
lint-broken-symlinks, lint-docs-links, lychee, whitespace checks,
and scan-secrets in place of gitleaks/detect-private-key.

Closes #9174

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:59 PM UTC · Completed 8:09 PM UTC

Commit: df22ae9 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.35

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://9d952ad9-site.fullsend-ai.workers.dev

Commit: fe1b944b64656da68775ffc744ec64d94d991bf0

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 6, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Low-risk wording and comment cleanup authored by bot with no protected paths or behavior changes, elevated to moderate risk by high recent churn and regression history across touched trace-context and forge files.

Previous run

Risk Assessment: moderate (2/5)

Details

Low-risk wording and comment cleanup authored by bot with no protected paths or behavior changes, elevated to moderate risk by high recent churn and regression history on touched trace-context and forge files.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Looks good to me

Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOltdfQ== -->

Looks good to me

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 6, 2026
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@dhshah13

dhshah13 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/fs-fix In internal/forge/jira/client.go, "All but "project" are fields the poller consumes" is false: the poller (internal/jirapoll/poller.go:364, the only non-test caller of SearchIssues) reads only created, labels and reporter from search results, never summary, status or updated. Keep the searchFields list unchanged and replace the first five lines of its comment (from "searchFields lists" through "through its own request.") with:

// searchFields lists the issue fields SearchIssues requests. Of these,
// the poller reads only "created", "labels", and "reporter". "project"
// carries the immutable project database ID, the Jira container identity
// for trace binding (ADR 0154), so search results hold the same identity
// as issue reads; GetIssue fetches it through its own request.

@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 8:39 PM UTC · Completed 8:43 PM UTC

Commit: df22ae9 · View workflow run →

Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.16

Correct the searchFields comment in internal/forge/jira/client.go: the
poller reads only created, labels and reporter from search results, so
the previous claim that all but "project" are consumed was false.
The searchFields list itself is unchanged.

Note: pre-commit hooks were not run; pre-commit could not fetch hook
repositories (TLS verification failure). gofmt and go test for
./internal/forge/jira passed.

Addresses #9175

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (human-triggered)

Corrected the searchFields comment per the /fs-fix instruction; comment-only change, list unchanged.

Fixed (1):

  1. searchFields comment falsely claims all but "project" are consumed by the poller (internal/forge/jira/client.go): Replaced the first five comment lines with the human-supplied text stating the poller reads only created, labels and reporter; searchFields list unchanged. Verified poller.go:364 is the only non-test SearchIssues caller.

Tests: passed

CI inspections (1):

  1. behaviour (unrelated, failure): e2e TestBehaviourSuite pi-runtime subtest failed; this PR only changes a Go comment in internal/forge/jira. Recommend a rerun.

Conflict update: skipped; strategy none; forge MERGEABLE; target main

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:45 PM UTC · Completed 8:53 PM UTC

Commit: fe1b944 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.27

@fullsend-ai-review fullsend-ai-review Bot removed the ready-for-merge All reviewers approved — ready to merge label Nov 6, 2026
@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 6, 2026 20:53

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 6, 2026
@dhshah13
dhshah13 added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit b8fc2e0 Nov 6, 2026
63 checks passed
@dhshah13
dhshah13 deleted the agent/9174-trace-context-wording branch November 6, 2026 22:10

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — fe1b944b Deployed Nov 6, 2026 by github-actions[bot]
dev — fe1b944b Deployed Nov 6, 2026 by fullsend-ai-coder[bot] via behaviour #19177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge ready-for-review Triggers review agent dispatch risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tighten trace-context v1 wording held back from #9084

1 participant