ClaimConflictAuditor
Pennington.Generation
IBuildAuditor that polices the artifact tier's declared URL territories: warns when a content route falls inside an ArtifactClaim (the artifact router would shadow it in dev and the build output could collide), and when two claims from different owners overlap (resolution order would silently decide the winner). Rides the audit pipeline, so the same warnings reach the dev overlay, diag warnings, and the build report. Consults claims and route discovery only — never artifact discovery, which may materialize the projection.
Properties
Codestring- Stable identifier surfaced on every diagnostic this auditor emits.
Constructors
ClaimConflictAuditor
#public ClaimConflictAuditor(IEnumerable<IContentService> contentServices, IEnumerable<IArtifactContentService> artifactServices)
Wires the auditor to the content discovery surface and the artifact tier.
Parameters
contentServicesIEnumerable<IContentService>artifactServicesIEnumerable<IArtifactContentService>
Methods
AuditAsync
#public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(BuildAuditContext context, CancellationToken cancellationToken)
Runs the auditor against context and returns its diagnostics.
Parameters
contextBuildAuditContextcancellationTokenCancellationToken
Returns
Task<IReadOnlyList<BuildDiagnostic>>Pennington.Generation.ClaimConflictAuditor
namespace Pennington.Generation;
/// IBuildAuditor that polices the artifact tier's declared URL territories: warns when a content route falls inside an ArtifactClaim (the artifact router would shadow it in dev and the build output could collide), and when two claims from different owners overlap (resolution order would silently decide the winner). Rides the audit pipeline, so the same warnings reach the dev overlay, diag warnings, and the build report. Consults claims and route discovery only — never artifact discovery, which may materialize the projection.
public class ClaimConflictAuditor
{
/// Runs the auditor against context and returns its diagnostics.
public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(BuildAuditContext context, CancellationToken cancellationToken)
;
/// Wires the auditor to the content discovery surface and the artifact tier.
public ClaimConflictAuditor(IEnumerable<IContentService> contentServices, IEnumerable<IArtifactContentService> artifactServices)
;
/// Stable identifier surfaced on every diagnostic this auditor emits.
public string Code { get; }
}