Model Provenance and License Compliance: The Technical Boundaries of AI Coding Tools

    This article examines how tokenizer fingerprints, continued pretraining, and reinforcement learning can reveal a model's true base, and why modified open-source licenses impose attribution duties once commercial thresholds are crossed. It offers a layered method for tracing model lineage, a practical license audit checklist, and actionable governance advice for engineering and procurement teams.

    1. Background: How an API Debugging Session Exposed a Provenance Trail

    While debugging requests against the API of an AI coding tool, a developer noticed that the model identifier in the response body was not the name used in the product’s marketing. Instead, it was an internal identifier with a version number and a training-stage suffix. Read literally, the string decoded into “a known open-source base + a reinforcement learning stage + a sampling speed tier.” That was the first red flag: the product’s public technical narrative did not match the runtime’s self-description.

    The lead of the open-source base project then said publicly that the team had compared the product’s model tokenizer against their own. The vocabulary and merge rules were highly consistent, leading them to conclude that the product had added post-training on top of their base. The point here is not who copied whom. It is that the tokenizer has strong fingerprint value in model provenance work, because it is nearly impossible to swap out without redoing the entire pretraining run.

    The vendor’s release notes said the performance gains came from “continued pretraining of the base model for the first time, followed by reinforcement learning.” That statement does not actually conflict with “built on an open-source base”: both continued pretraining and reinforcement learning must be applied to some existing base, so the only real dispute is that the base’s origin was never disclosed. As of the time of writing, the vendor had not publicly responded.

    2. Technical View: Why a Tokenizer Works as a Fingerprint

    The tokenizer defines the mapping from text to token sequences, consisting of a vocabulary set and a merge algorithm (such as BPE-style subword splitting). Three properties make it suitable as provenance evidence:

    1. Strong path dependency: The vocabulary is a statistical artifact of large-scale corpora, and building an equivalent one from scratch costs roughly as much as redoing pretraining.
    2. Cheap to verify: You only need a set of probe texts covering multiple languages, code, and special symbols, then compare split boundaries and token frequency distributions. No model weights are required.
    3. Hard to disguise: Replacing the tokenizer breaks the alignment between existing weights and the embedding layer, so the embedding matrix must be retrained, which is extremely costly.

    Illustrative probe and comparison logic (pseudocode, conveying the idea only):

    1. probes = ["def get_token(", "日本語の文章", "🙂 emoji", " indented\ttab"]
    2. def fingerprint(tokenizer, probes):
    3. return [(p, tokenizer.encode(p)) for p in probes]
    4. a = fingerprint(tok_candidate, probes)
    5. b = fingerprint(tok_reference, probes)
    6. match = sum(1 for (_, x), (_, y) in zip(a, b) if x == y) / len(probes)
    7. print("split match rate:", match)

    A boundary worth stressing: the split match rate is strong indicative evidence, not a legal conclusion. Rigorous provenance work should layer multiple signals, including the special token set, vocabulary size, embedding dimensions, context window, default sampling parameters, and runtime side channels such as error messages and rate-limit headers.

    3. Concept Clarification: Where Continued Pretraining and RL Sit

    The dispute becomes clear once you separate the stack into layers:

    • Base pretraining: Determines the model’s capability ceiling and vocabulary shape, and is the most expensive layer.
    • Continued pretraining: Adds domain corpora (for example, code repositories or technical documentation) on top of the base, shifting the distribution rather than rebuilding capability.
    • Post-training / alignment: Supervised fine-tuning and reinforcement learning shape output preferences, format adherence, and tool-calling behavior.
    • Inference and product layer: Sampling strategy, context management, caching, and routing.

    A claim of “continued pretraining + reinforcement learning” refers to the two middle layers, which inherently require a base as input. So “no base mentioned” is a disclosure issue, not a technical contradiction. The takeaway for developers: when evaluating a model, record base origin, post-training method, and inference configuration as three separate items, so product-layer capability is not mistaken for base capability.

    4. License Compliance: The Red Lines of a Modified Open-Source License

    The base uses a modified license whose key added clause is this: when a commercial product exceeds 100 million monthly active users, or 20 million USD in monthly revenue, it must display the base model’s name prominently in the user interface. “Open-source licenses with commercial thresholds” like this are increasingly common. The compliance essentials are:

    1. Threshold determination: Revenue and user scale must be calculated in advance under the contract’s definitions, with the calculation process retained.
    2. Attribution obligation: “Prominent placement” means somewhere visible inside the product interface, not buried in documentation or a third-party page.
    3. Scope of derivatives: Whether continued pretraining, fine-tuning, or distillation outputs trigger the clause depends on how the license defines “derivative work.”
    4. Evidence retention: Training data sources, base version numbers, and post-training configurations must be traceable, forming an audit chain.

    An actionable compliance checklist for engineering use:

    1. license_audit:
    2. base_model: "<record base name and version>"
    3. license_type: "modified-open-source"
    4. thresholds:
    5. mau: 100000000
    6. monthly_revenue_usd: 20000000
    7. attribution:
    8. required: true
    9. placement: "in-product-visible"
    10. evidence:
    11. - data_manifest
    12. - training_config
    13. - eval_report

    5. Practical Recommendations for Teams

    • Maintain a model inventory: Register the base, license, post-training method, and evaluation results as governed assets, with changes subject to review.
    • Be careful with external claims: Before marketing something as “in-house” or “first,” check the base’s obligations to avoid disclosure risk.
    • Make evaluations reproducible: Fix the probe set and decoding parameters, and output comparable split and behavioral fingerprints for internal audits.
    • Isolate and log on the cloud: Using general-purpose container platforms, object storage, logging services, and monitoring and alerting capabilities, store training artifacts, configurations, and audit records in separate layers with access policies. This supports compliance evidence while reducing leakage risk.
    • Procurement perspective: When selecting an AI coding tool, enterprises can require vendors to provide base model origin and license details, and write compliance terms into contract appendices.

    6. Conclusion

    The real value of this incident is not in deciding who was right or wrong, but in exposing an engineering fact: model traceability can now be partially reconstructed with technical means, and license obligations take effect automatically as commercial scale grows. For developers and teams, recording the base, post-training, and product layers separately, and folding license thresholds into pre-release checks, is the key step from reactive handling to proactive compliance.